52 void Femto1DMapGenerator::SetPid(Int_t pid1, Int_t pid2) {
53 TDatabasePDG* pid = TDatabasePDG::Instance();
54 TParticlePDG* p1 = pid->GetParticle(pid1);
55 TParticlePDG* p2 = pid->GetParticle(pid2);
57 Cout::PrintInfo(Form(
"Femto1DMapGenerator::SetPid cannot find PID1 = %i", pid1), EInfo::kLowWarning);
61 Cout::PrintInfo(Form(
"Femto1DMapGenerator::SetPid cannot find PID1 = %i", pid2), EInfo::kLowWarning);
66 fMass12 = p1->Mass() * p1->Mass();
67 fMass22 = p2->Mass() * p2->Mass();
70 void Femto1DMapGenerator::SetRBins(Int_t bins, Double_t rmin, Double_t rmax, Bool_t center) {
73 fRadiiBins.MakeBigger(bins + 1);
74 Double_t dr = (rmax - rmin) / (Double_t)(bins);
75 fRMin = rmin - dr * 0.5;
76 fRMax = rmax + dr * 0.5;
77 for (
int i = 0; i < fRBins; i++) {
78 fRadiiBins[i] = fRMin + dr * i + dr * 0.5;
82 fRadiiBins.MakeBigger(bins);
85 Double_t dr = (fRMax - fRMin) / (Double_t)(bins);
86 for (
int i = 0; i < fRBins; i++) {
87 fRadiiBins[i] = fRMin + dr * i + dr * 0.5;
102 Bool_t Femto1DMapGenerator::Init() {
103 fPair = Femto::MakePair(fKinematics, fUseFake);
104 fMap =
new DividedHisto2D(
"map", fKStarBins, fKStarMin, fKStarMax, fRBins, fRMin, fRMax,
'D');
105 if (fWeight ==
nullptr) {
106 Cout::PrintInfo(
"Femto1DMapGenerator::Init lack of weight", EInfo::kCriticalError);
109 if (fGenerator ==
nullptr) {
110 Cout::PrintInfo(
"Femto1DMapGenerator::Init lack of generator", EInfo::kCriticalError);
113 if (fRadiiBins.GetSize() < 1) {
114 Cout::PrintInfo(
"Femto1DMapGenerator::Init lack of rbins ! did you call SetRBins?", EInfo::kCriticalError);
117 fPair->SetPdg1(fPid1);
118 fPair->SetPdg2(fPid2);
119 if (fIgnoreSign) fPair->UseAbs();