10#include "FemtoCorrFuncAzimuthalKt.h"
14#include "DividedHisto.h"
20#include "ObjectMatrix.h"
26#include <initializer_list>
57 fPhiCorrection[0] = fRangeY[0];
58 fPhiCorrection[1] = fPhiCorrection[0] + TMath::TwoPi();
62 FemtoCorrFuncAzimuthalKt::~FemtoCorrFuncAzimuthalKt() {
66 FemtoCorrFuncAzimuthalKt::FemtoCorrFuncAzimuthalKt(
const DividedHisto1D& h,
67 const std::initializer_list<double>& init,
70 FemtoCorrFunc2D(h,
"k_{T} [GeV/c]",
"#phi_{pair}", init.size() - 1, phi) {
71 fPhiCorrection[0] = 0;
72 fPhiCorrection[1] = TMath::TwoPi();
74 if (fRangeX.
GetSize() != (Int_t) init.size()) {
75 Cout::PrintInfo(Form(
"Wrong size of array during call SetKtBins %i %i", fRangeX.
GetSize(), (
int) init.size()),
79 std::initializer_list<double>::iterator it;
81 for (it = init.begin(); it != init.end(); ++it) {
84 Double_t width = TMath::TwoPi() / ((Double_t) phi);
85 for (
int i = 0; i <= phi; i++) {
86 fRangeY[i] = width * double(i) - width * 0.5;
90 std::pair<double, double> FemtoCorrFuncAzimuthalKt::GetPairValNum(
Hal::FemtoPair* pair)
const {
93 Double_t phi = TMath::ATan2(tpy, tpx);
94 phi -= (fPhiCorrection[0]);
96 while (phi < fPhiCorrection[0])
97 phi += TMath::TwoPi();
98 while (phi > fPhiCorrection[1])
99 phi -= TMath::TwoPi();
100 Double_t kt = TMath::Sqrt(tpx * tpx + tpy * tpy) * 0.5;
101 std::pair<double, double> res;
107 std::pair<double, double> FemtoCorrFuncAzimuthalKt::GetPairValDenRot(
Hal::FemtoPair* pair)
const {
110 Double_t phi = TMath::ATan2(tpy, tpx);
111 phi -= fPhiCorrection[0];
113 while (phi < fPhiCorrection[0])
114 phi += TMath::TwoPi();
115 while (phi > fPhiCorrection[1])
116 phi -= TMath::TwoPi();
117 Double_t kt = TMath::Sqrt(tpx * tpx + tpy * tpy) * 0.5;
118 std::pair<double, double> res;
124 std::pair<double, double> FemtoCorrFuncAzimuthalKt::GetPairValDenHemi(
Hal::FemtoPair* pair)
const {
125 return GetPairValDenRot(pair);
128 Bool_t FemtoCorrFuncAzimuthalKt::Angle(Char_t opt)
const {
129 if (opt ==
'y')
return kTRUE;
static void PrintInfo(TString text, Hal::EInfo status)
Track * GetTrack1() const