6 #include "../NumericalIntegration.h"
25 , fUseAcceptance(UseAcc)
35 , fReconstructionEfficiency()
46 TString work = getenv(
"VMCWORKDIR");
47 TString dir = work +
"/KF/KFModelParameters/common/";
49 sprintf(spdg,
"%d",
fPDGID);
51 dir +
"pty_acc_" + spdg +
".txt")) {
57 std::vector<double> etavec(0), y2acc(0), norm(0), norm4pi(0);
60 for (
int i = 0;; ++
i) {
61 double tmpeta = 1.e-5 + deta * (
i);
66 if (tmpeta > etamax) {
71 etavec.push_back(tmpeta);
72 y2acc.push_back(
y2Av(tmpeta));
77 fetaay2 = TSpline3(
"fetaay2acc", &y2acc[0], &etavec[0], etavec.size());
78 fNormeta = TSpline3(
"fNormacc", &etavec[0], &norm[0], etavec.size());
79 fNormeta4pi = TSpline3(
"fNorm4pi", &etavec[0], &norm4pi[0], etavec.size());
80 for (
unsigned int i = 0;
i < etavec.size(); ++
i) {
90 double ret1 = 0., ret2 = 0.;
91 for (Int_t ie = 0; ie < 32; ie++) {
92 for (Int_t
i = 0;
i < 32;
i++) {
93 for (Int_t j = 0; j < 32; j++) {
101 * TMath::CosH(ty) * TMath::Exp(-tmt * TMath::CosH(ty) /
fT);
114 double ret1 = 0., ret2 = 0.;
115 for (Int_t j = 0; j < 32; j++) {
126 for (Int_t ie = 0; ie < 32; ie++) {
127 for (Int_t
i = 0;
i < 32;
i++) {
131 double tp = tmt * TMath::CosH(
y +
fYcm);
134 * TMath::Exp(-tmt * TMath::CosH(ty) /
fT);
150 for (Int_t ie = 0; ie < 32; ie++) {
151 for (Int_t
i = 0;
i < 32;
i++) {
152 for (Int_t j = 0; j < 32; j++) {
160 * TMath::CosH(ty) * TMath::Exp(-tmt * TMath::CosH(ty) /
fT);
178 for (Int_t ie = 0; ie < 32; ie++) {
179 for (Int_t
i = 0;
i < 32;
i++) {
180 for (Int_t j = 0; j < 32; j++) {
188 * TMath::CosH(ty) * TMath::Exp(-tmt * TMath::CosH(ty) /
fT);