6 #include "../NumericalIntegration.h"
23 , fUseAcceptance(UseAcc)
29 , fReconstructionEfficiency()
40 TString work = getenv(
"VMCWORKDIR");
42 work +
"/KF/KFModelParameters/common/";
44 sprintf(spdg,
"%d",
fPDGID);
46 dir +
"pty_acc_" + spdg +
".txt")) {
53 std::vector<double> Tvec(0), mtacc(0), norm(0), norm4pi(0);
57 for (
int i = 0;; ++
i) {
58 double tmpT = 0.01 + dT * (0.5 +
i);
59 if (tmpT > Tmax)
break;
61 mtacc.push_back(
mtAv(tmpT));
66 fTamt = TSpline3(
"fTamtacc", &mtacc[0], &Tvec[0], Tvec.size());
67 fNormT = TSpline3(
"fNormacc", &Tvec[0], &norm[0], Tvec.size());
68 fNormT4pi = TSpline3(
"fNorm4pi", &Tvec[0], &norm4pi[0], Tvec.size());
77 double ret1 = 0., ret2 = 0.;
78 for (Int_t
i = 0;
i < 32;
i++) {
79 for (Int_t j = 0; j < 32; j++) {
102 for (Int_t
i = 0;
i < 32;
i++) {
112 return TMath::Exp((
fMass - mt) / T) * mt / T / (
fMass + T);
116 for (Int_t j = 0; j < 32; j++) {
118 double tp = mt * TMath::CosH(
xleg32[j] +
fYcm);
120 tmpf =
wleg32[j] * tpt * TMath::Exp(-mt / T)
126 return ret * mt / tpt /
fNormT.Eval(T);
133 for (Int_t
i = 0;
i < 32;
i++) {
134 for (Int_t j = 0; j < 32; j++) {
154 for (Int_t
i = 0;
i < 32;
i++) {
155 for (Int_t j = 0; j < 32; j++) {