| 88 |
// |
// |
| 89 |
}; |
}; |
| 90 |
|
|
| 91 |
|
void ToFLevel2::Set(){//ELENA |
| 92 |
|
if(!PMT)PMT = new TClonesArray("ToFPMT",12); //ELENA |
| 93 |
|
if(!ToFTrk)ToFTrk = new TClonesArray("ToFTrkVar",2); //ELENA |
| 94 |
|
}//ELENA |
| 95 |
|
|
| 96 |
void ToFLevel2::Clear(){ |
void ToFLevel2::Clear(){ |
| 97 |
// |
// |
| 98 |
if(ToFTrk)ToFTrk->Delete(); //ELENA |
if(ToFTrk)ToFTrk->Delete(); //ELENA |
| 222 |
// |
// |
| 223 |
pl = GetPlaneIndex(pmt_id); |
pl = GetPlaneIndex(pmt_id); |
| 224 |
// |
// |
| 225 |
if ( pl == ip ){ |
if ( pl == ip ) dedx += (trk->dedx).At(i); |
|
// // --- patch --- |
|
|
// bool ISNULL=false; |
|
|
// for(Int_t im=0; im< this->npmt(); im++){ |
|
|
// if(this->GetToFPMT(im)->pmt_id == pmt_id && this->GetToFPMT(im)->adc == 4095){ |
|
|
// cout << " ToFLevel2::GetdEdx(Int_t,Int_t) --> **warning** ADC(PMT="<<pmt_id<<") = 4095"<<endl; |
|
|
// ISNULL=true; |
|
|
// } |
|
|
// } |
|
|
// // --- patch --- |
|
|
// dedx += (trk->dedx).At(i)*(Int_t)(!ISNULL); |
|
|
dedx += (trk->dedx).At(i); |
|
|
} |
|
| 226 |
// |
// |
| 227 |
}; |
}; |
| 228 |
// |
// |