Changeset 5511 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 11/30/04 11:15:57 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
r5504 r5511 139 139 fLoGainFirst, fLoGainLast, fNumLoGainSamples); 140 140 141 InitArrays(); 141 142 if (!InitArrays()) 143 return kFALSE; 144 142 145 Print(); 143 146 -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.h
r5504 r5511 40 40 fWindowSizeLoGain = windowl; } 41 41 42 virtual void InitArrays() {}42 virtual Bool_t InitArrays() { return kTRUE; } 43 43 44 44 virtual void FindTimeAndChargeHiGain(Byte_t *firstused, Byte_t *logain, Float_t &sum, Float_t &dsum, -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r5505 r5511 180 180 // -------------------------------------------------------------------------- 181 181 // 182 // PreProcess183 //184 // Calls:185 // - ReadWeightsFile(fNameWeightsFile) if the weights have not yet been set.186 // - Creates new arrays according to the extraction range187 //188 Int_t MExtractTimeAndChargeDigitalFilter::PreProcess(MParList *pList)189 {190 if (!fWeightsSet)191 if (!ReadWeightsFile(fNameWeightsFile))192 return kFALSE;193 194 return MExtractTimeAndCharge::PreProcess(pList);195 }196 197 // --------------------------------------------------------------------------198 //199 182 // ReInit 200 183 // … … 220 203 // Gets called in the ReInit() and initialized the arrays 221 204 // 222 voidMExtractTimeAndChargeDigitalFilter::InitArrays()205 Bool_t MExtractTimeAndChargeDigitalFilter::InitArrays() 223 206 { 224 207 Int_t range = (Int_t)(fHiGainLast - fHiGainFirst + 1 + fHiLoLast); … … 226 209 range = (Int_t)(fLoGainLast - fLoGainFirst + 1); 227 210 fLoGainSignal.Set(range); 211 212 if (!fWeightsSet) 213 if (!ReadWeightsFile(fNameWeightsFile)) 214 return kFALSE; 215 228 216 } 229 217 -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.h
r5505 r5511 53 53 54 54 Bool_t ReInit(MParList *pList); 55 Int_t PreProcess(MParList *pList);56 55 57 voidInitArrays();56 Bool_t InitArrays(); 58 57 59 58 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSlidingWindow.cc
r5505 r5511 185 185 // Gets called in the ReInit() and initialized the arrays 186 186 // 187 voidMExtractTimeAndChargeSlidingWindow::InitArrays()187 Bool_t MExtractTimeAndChargeSlidingWindow::InitArrays() 188 188 { 189 189 Int_t range = (Int_t)(fHiGainLast - fHiGainFirst + 1 + fHiLoLast); … … 191 191 range = (Int_t)(fLoGainLast - fLoGainFirst + 1); 192 192 fLoGainSignal.Set(range); 193 194 return kTRUE; 195 193 196 } 194 197 -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSlidingWindow.h
r5504 r5511 29 29 MArrayF fLoGainSignal; //! Store them in separate arrays 30 30 31 voidInitArrays();31 Bool_t InitArrays(); 32 32 33 33 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.cc
r5504 r5511 293 293 // Gets called in the ReInit() and initialized the arrays 294 294 // 295 voidMExtractTimeAndChargeSpline::InitArrays()295 Bool_t MExtractTimeAndChargeSpline::InitArrays() 296 296 { 297 297 … … 315 315 fLoGainFirstDeriv .Reset(); 316 316 fLoGainSecondDeriv.Reset(); 317 318 return kTRUE; 317 319 318 320 } -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.h
r5504 r5511 43 43 Bool_t ReInit( MParList *pList ); 44 44 45 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);45 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); 46 46 47 voidInitArrays();47 Bool_t InitArrays(); 48 48 49 49 void CalcIntegralHiGain(Float_t &sum, Int_t startslice, Int_t lastslice);
Note:
See TracChangeset
for help on using the changeset viewer.