10#ifndef HALFEMTOCONST_H_
11#define HALFEMTOCONST_H_
23 inline Double_t FmToGeV() {
return 5.06842372; }
24 inline Double_t FmToGeV(Double_t fm) {
return fm * FmToGeV(); }
26 enum class EKinematics {
34 enum class ECFType { kOneDim, kThreeDim, kSpherical, kPhiEta, kUnkown };
35 enum class EPairType {
37 kPionPlusPionPlus = 101,
38 kPionPlusPionMinus = 102,
39 kKaonPlusKaonPlus = 103,
40 kKaonPlusKaonMinus = 4,
43 kProtonAntiproton = 6,
44 kPionPlusKaonPlus = 107,
45 kPionPlusKaonMinus = 108,
47 kPionPlusProton = 109,
48 kPionPlusAntiproton = 110,
49 kKaonPlusProton = 111,
50 kKaonPlusAntiproton = 112,
54 kKaonZeroKaonZero = 15,
55 kKaonZeroKaonZeroBar = 16,
57 kNeutronNeutron = 117,
59 kPionZeroPionZero = 19,
63 kProtonSigmaPlus = 201,
64 kProtonAntiSigmaPlus = 202,
65 kProtonAntiLambda = 203,
66 kSigmaPlusSigmaPlus = 204,
68 kSigmaPlusAntiSigmaPlus = 205,
70 kNeutronXiMinus = 207,
74 kProtonSigmaZero = 210,
75 kSigmaZeroSigmaZero = 211,
76 kLambdaSigmaZero = 212,
78 kLambdaAntiLambda = 213
88 class FemtoWeightGenerator;
95 Bool_t IsPairIdentical(EPairType pt);
101 std::pair<Int_t, Int_t> PairTypeToPid(EPairType pt);
108 EPairType PidToPairType(Int_t pid1, Int_t pid2);
114 TString PairTypeToString(EPairType type);
120 EKinematics LabelToKinematics(TString label);
126 EKinematics CodeLabelToKinematics(TString label);
134 FemtoPair* MakePair(EKinematics kin, Bool_t use_fake);
140 DividedHisto1D* GetHistoFromXML(XMLNode* nod);
146 FemtoWeightGenerator* GetWeightGeneratorFromXLM(XMLNode* nod);
152 TString KinematicsToLabel(EKinematics kin);
160 TString KinematicsToAxisLabel(EKinematics kin, Int_t ax, Int_t ndim);
169 void FillRandomPair(FemtoPair& p, Int_t pid1, Int_t pid2, Double_t sigmaq = 0.1, Double_t sigmar = 1);
177 void FillRandomKinematics(FemtoPair& p,
const TVector3& sum,
const TVector3& diff, EKinematics kin);
183 ECFType GetCFType(TObject* obj);
190 Double_t fConsA = {0};
191 Double_t fConsB = {0};
209 void ReInit(Double_t a, Double_t b, Double_t c, Double_t d);
215 Double_t
Calculate(Double_t kstar)
const;
void ReInit(Double_t a, Double_t b, Double_t c, Double_t d)
CorrFitGammaCalc(Double_t a=0, Double_t b=0, Double_t c=0, Double_t d=0)
Double_t Calculate(Double_t kstar) const