/[PAMELA software]/PamVMC/tof/src/PamVMCTofDig.cxx
ViewVC logotype

Diff of /PamVMC/tof/src/PamVMCTofDig.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by pam-rm2, Fri Jun 12 18:39:47 2009 UTC revision 1.6 by pizzolot, Tue Feb 23 12:09:40 2010 UTC
# Line 94  void PamVMCTofDig::DigitizeTOF(Int_t Eve Line 94  void PamVMCTofDig::DigitizeTOF(Int_t Eve
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));
# Line 273  void PamVMCTofDig::DigitizeTOF(Int_t Eve Line 273  void PamVMCTofDig::DigitizeTOF(Int_t Eve
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)

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.23