Changeset 5529 for trunk/MagicSoft
- Timestamp:
- 11/30/04 20:23:31 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r5528 r5529 180 180 // -------------------------------------------------------------------------- 181 181 // 182 // ReInit183 //184 // Calls:185 // - MExtractor::ReInit(pList);186 // - Creates new arrays according to the extraction range187 //188 Bool_t MExtractTimeAndChargeDigitalFilter::ReInit(MParList *pList)189 {190 if (!MExtractTimeAndCharge::ReInit(pList))191 return kFALSE;192 193 fTimeShiftHiGain = (Float_t)fHiGainFirst + 0.5 + 1./fBinningResolutionHiGain;194 fTimeShiftLoGain = (Float_t)fLoGainFirst + 0.5 + 1./fBinningResolutionLoGain;195 196 return kTRUE;197 }198 199 // --------------------------------------------------------------------------200 //201 182 // InitArrays 202 183 // … … 218 199 return kFALSE; 219 200 201 fTimeShiftHiGain = (Float_t)fHiGainFirst + 0.5 + 1./fBinningResolutionHiGain; 202 fTimeShiftLoGain = (Float_t)fLoGainFirst + 0.5 + 1./fBinningResolutionLoGain; 203 220 204 return kTRUE; 221 205 } … … 384 368 const Int_t idx = fBinningResolutionHiGain*sample + fBinningResolutionHalfHiGain + t_iter; 385 369 const Int_t ids = max_p + sample; 386 387 370 const Float_t pex = ids < 0 ? 0. : ( ids >= range ? 0. : fHiGainSignal[ids]); 388 371 sum += fAmpWeightsHiGain [idx]*pex; -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.h
r5528 r5529 52 52 UInt_t fRandomIter; // Counter used to randomize weights for noise calculation 53 53 54 Bool_t ReInit(MParList *pList);54 Bool_t InitArrays(); 55 55 56 Bool_t InitArrays(); 57 58 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); 56 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); 59 57 60 58 public:
Note:
See TracChangeset
for help on using the changeset viewer.