81 switch(abs(t->
pdt())) {
82 case 2212:part=
proton;
break;
83 case 321: part=
kaon;
break;
84 case 211: part=
pion;
break;
85 case 13: part=
muon;
break;
119 double theta = t->
p4().Theta();
120 double p_t=t->
p4().Vect().Perp(TVector3(0.,0.,1.));
121 double charge=t->
charge();
130 o <<
"Parameters for detector <"<<
detName()<<
">"<<endl;
131 o <<
" _thtMin = "<<
_thtMin<<endl;
132 o <<
" _thtMax = "<<
_thtMax<<endl;
133 o <<
" _ptmin = "<<
_ptmin<<endl;
158 if (name ==
"thtMin")
161 if (name ==
"thtMax")
167 if (name ==
"dEdxResMulti")
170 if (name ==
"efficiency")
182 static float eb=0.14e-6;
184 static float c=2.99792458e8;
186 static float Mass[
nPidType]={ 0.511e-3, 0.1058, 0.1396, 0.4937, 0.9383 };
188 double sqrBeta=1/(1+pow(Mass[part]/
_momentum,2));
189 return 4.9312e-05 * (
log(2*Mass[
electron]*c*c/eb*sqrBeta/(1-sqrBeta))-sqrBeta)/sqrBeta;
198 return TMath::Gaus(s_mpv, 0, widthtwo,
true);
199 else if (widthtwo<=0)
200 return TMath::Landau(s_mpv, 0, widthone,
true);
202 static double x[12] = { 0.96028985649753623, 0.79666647741362674,
203 0.52553240991632899, 0.18343464249564980,
204 0.98940093499164993, 0.94457502307323258,
205 0.86563120238783174, 0.75540440835500303,
206 0.61787624440264375, 0.45801677765722739,
207 0.28160355077925891, 0.09501250983763744};
209 static double w[12] = { 0.10122853629037626, 0.22238103445337447,
210 0.31370664587788729, 0.36268378337836198,
211 0.02715245941175409, 0.06225352393864789,
212 0.09515851168249278, 0.12462897125553387,
213 0.14959598881657673, 0.16915651939500254,
214 0.18260341504492359, 0.18945061045506850};
216 double h, bb, aa,
c1,
c2, u, s8, s16,
f1,
f2;
233 f1 = TMath::Landau(s_mpv+xx, 0, widthone,
true)*TMath::Gaus(xx, 0, widthtwo,
true);
235 f2 = TMath::Landau(s_mpv+xx, 0, widthone,
true)*TMath::Gaus(xx, 0, widthtwo,
true);
242 f1 = TMath::Landau(s_mpv+xx, 0, widthone,
true)*TMath::Gaus(xx, 0, widthtwo,
true);
244 f2 = TMath::Landau(s_mpv+xx, 0, widthone,
true)*TMath::Gaus(xx, 0, widthtwo,
true);
245 s16+= w[
i]*(f1 +
f2);
248 if (
TMath::Abs(s16-c2*s8) <= 1e-12*(s16+1) ) {
251 if (bb>=5*widthtwo) {
324 return c0+c1*(x1-
x0)+d1*(x-x1);
328 return c0+c1*(x-
x0)+pow(x0-x,3)*(a3+(x0-
x)*(a4+(x0-x)*a5));
336 return +3.81174e-04+x*(-2.25108e-04+x*+5.45154e-05);
338 return -5.28145e-05+x*(+8.29883e-04+x*-5.35972e-04);
342 return +2.61134e-04+x*(-1.30818e-04+x*+3.44165e-05);
344 return +3.41858e-04+x*(-3.21115e-04+x*+1.37459e-04);
348 return +1.88718e-04+x*(-6.38948e-05+x*+1.78590e-05);
350 return +1.82872e-04+x*(-1.28373e-04+x*+8.01459e-05);
354 return +1.06142e-04+x*(+3.68777e-05+x*-1.00190e-05);
356 return +1.89374e-04+x*(-1.46441e-04+x*+9.10813e-05);
361 return +1.27955e-04+x*(-3.15732e-06+x*+9.64736e-06);
372 return +6.41067e-04+x*(-3.82507e-04+x*+9.03732e-05);
374 return +6.40328e-04-3.21725e-04*x+3.17708e-05*pow(x,-3);
378 return +2.22504e-04+x*(-6.40051e-06+x*+2.14434e-06);
380 return +3.86684e-04-1.61873e-04*x+7.76586e-06*pow(x,-3);
384 return +1.32999e-04+x*(+1.19714e-04+x*-3.53302e-05);
386 return +2.21603e-04-3.21357e-06*x+4.64793e-06*pow(x,-2);
390 return +7.84582e-05+x*(+1.88988e-04+x*-5.49637e-05);
392 return +1.67388e-04+5.67991e-05*x+3.42702e-06*pow(x,-2);
397 return +4.08849e-04-3.56548e-05*x+1.84825e-08*pow(x,-3);
double LandauGaus(double s_mpv, double width1, double width2)
void setLHElectron(double val)
void setLHProton(double val)
std::list< std::string > ArgList
bool detected(PndFsmTrack *t) const
double width1(PidType particle)
void setLHMuon(double val)
void print(std::ostream &o)
friend F32vec4 log(const F32vec4 &a)
void parseParameterList(ArgList &par)
double width2(PidType particle)
double mpv(PidType particle)
double Likelihood(PidType particle)
basic_ostream< char, char_traits< char > > ostream
void setDetector(PndFsmAbsDet *detector)
const std::string & detName()
void setLHKaon(double val)
friend F32vec4 fabs(const F32vec4 &a)
virtual PndFsmResponse * respond(PndFsmTrack *t)
double MeanEnergyLoss(PidType particle)
void setDetected(bool isdet)
bool setParameter(std::string &name, double value)
void setMvddEdx(double val, double err=0)
void setLHPion(double val)