94 |
//+++++ ADC +++++ |
//+++++ ADC +++++ |
95 |
|
|
96 |
for(Int_t i=0; i<NP; i++){ |
for(Int_t i=0; i<NP; i++){ |
97 |
if (fQevePmt_pC[i] < 800.) |
if (fQevePmt_pC[i] <= 800.) |
98 |
fADCtof[i]= (Int_t)(ADC_pC0A + ADC_pC1A*fQevePmt_pC[i] |
fADCtof[i]= (Int_t)(ADC_pC0A + ADC_pC1A*fQevePmt_pC[i] |
99 |
+ ADC_pC2A*Power(fQevePmt_pC[i],2) |
+ ADC_pC2A*Power(fQevePmt_pC[i],2) |
100 |
+ ADC_pC3A*Power(fQevePmt_pC[i],3)); |
+ ADC_pC3A*Power(fQevePmt_pC[i],3)); |
273 |
|
|
274 |
Float_t PamVMCTofDig::TimeRes(Int_t PrimaryPDG){ |
Float_t PamVMCTofDig::TimeRes(Int_t PrimaryPDG){ |
275 |
|
|
276 |
Float_t time_res[8] = {425.,210.,170.,130.,120.,120.,120.,120.}; |
Float_t time_res[8] = {425.,210.,170.,130.,120.,120.,120.,120.}; |
277 |
|
for(Int_t i=0;i<8;i++) time_res[i]/=1.4;//1.17;1.5;1.3*/ |
278 |
Int_t Z = Int_t((TDatabasePDG::Instance()->GetParticle(PrimaryPDG))->Charge()/3.); |
Int_t Z = Int_t((TDatabasePDG::Instance()->GetParticle(PrimaryPDG))->Charge()/3.); |
279 |
|
|
280 |
Float_t dt1 = 1.e-12*time_res[0]; // single PMT resolution for Z=1 (WM, Nov'07) |
Float_t dt1 = 1.e-12*time_res[0]; // single PMT resolution for Z=1 (WM, Nov'07) |