14 sprintf(nameit,
"TOF barrel R=%d dT=%d",
int(
radius),
int(sigmaT));
21 mProton = 0.93827208816;
28 double theta = 2.0*atan( exp(-eta) );
32 return (tof(L,p,mKaon)-tof(L,p,mPion))/sigmaT;
36 return (tof(L,p,mProton)-tof(L,p,mKaon))/sigmaT;
38 cout <<
"tofBarrel.C: Unrecognized PID type requested." <<endl;
43 cout <<
"tofBarrel.C: Invalid (eta,p) for this detector." <<endl;
65 double theta = 2.0*atan( exp(-eta) );
68 double a =
c/L * numSigma * sigmaT;
77 double num1 = a*a*b*b;
78 double num2 = 2*sqrt(a*a*(a*a*b*b*c*c + b*b*b*b -2*b*b*c*c + c*c*c*c));
79 double num3 = a*a*c*
c;
80 double denom = a*a*a*a - 4*a*a;
82 return ( sqrt( (num1-num2+num3)/denom ) );
87 cout <<
"tofBarrel.C: Invalid (eta) for this detector." <<endl;
95 double p2_m2 = p*p/(m*
m);
96 double beta = sqrt(p2_m2/(1+p2_m2));
105 cout <<
"My name is \"" << myName <<
"\" and I am described as follows:" <<endl;
106 cout <<
" I am a Time-of-Flight barrel." <<endl;
107 cout <<
" I extend from eta = " << etaLow <<
" until eta = " << etaHigh <<
" ." <<endl;
108 cout <<
" I am located at radius R= " <<
radius <<
" cm." <<endl;
109 cout <<
" I have a time resolution of " << sigmaT <<
" picoseconds." <<endl;
110 cout <<
" My calculations have assumed perfect momentum resolution and pointing." <<endl;
111 cout <<
" My calculations have assumed purely Gaussian time response." <<endl;