- Timestamp:
- 11/28/04 18:22:38 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r5488 r5493 180 180 // -------------------------------------------------------------------------- 181 181 // 182 // PreProcess 183 // 184 // Calls: 185 // - ReadWeightsFile(fNameWeightsFile) if the weights have not yet been set. 186 // - Creates new arrays according to the extraction range 187 // 188 Int_t MExtractTimeAndChargeDigitalFilter::PreProcess(MParList *pList) 189 { 190 191 if (!fWeightsSet) 192 if (!ReadWeightsFile(fNameWeightsFile)); 193 return kFALSE; 194 195 Print(); 196 197 return MExtractTimeAndCharge::PreProcess(pList); 198 } 199 200 // -------------------------------------------------------------------------- 201 // 182 202 // ReInit 183 203 // … … 191 211 return kFALSE; 192 212 193 if (!fWeightsSet)194 if (!ReadWeightsFile(fNameWeightsFile));195 return kFALSE;196 197 213 fHiGainSignal.Set(fHiGainLast - fHiGainFirst + 1 + fHiLoLast); 198 214 fLoGainSignal.Set(fLoGainLast - fLoGainFirst + 1); … … 204 220 } 205 221 206 Int_t MExtractTimeAndChargeDigitalFilter::PreProcess(MParList *pList)207 {208 *fLog << endl;209 *fLog << inf << "Using the following weights: " << endl;210 *fLog << "Hi-Gain:" << endl;211 212 for (Int_t i=0; i<fBinningResolutionHiGain*fWindowSizeHiGain; i++)213 *fLog << " " << fAmpWeightsHiGain[i] << " \t " << fTimeWeightsHiGain[i] << endl;214 215 *fLog << "Lo-Gain:" << endl;216 217 for (Int_t i=0; i<fBinningResolutionLoGain*fWindowSizeLoGain; i++)218 *fLog << " " << fAmpWeightsLoGain[i] << " \t " << fTimeWeightsLoGain[i] << endl;219 220 return MExtractTimeAndCharge::PreProcess(pList);221 }222 222 223 223 void MExtractTimeAndChargeDigitalFilter::FindTimeAndChargeHiGain(Byte_t *ptr, Byte_t *logain, Float_t &sum, Float_t &dsum, … … 994 994 *fLog << " Binning Res LoGain: " << fBinningResolutionHiGain << endl; 995 995 996 *fLog << endl; 997 *fLog << inf << "Using the following weights: " << endl; 998 *fLog << "Hi-Gain:" << endl; 999 for (Int_t i=0; i<fBinningResolutionHiGain*fWindowSizeHiGain; i++) 1000 *fLog << " " << fAmpWeightsHiGain[i] << " \t " << fTimeWeightsHiGain[i] << endl; 1001 1002 *fLog << "Lo-Gain:" << endl; 1003 for (Int_t i=0; i<fBinningResolutionLoGain*fWindowSizeLoGain; i++) 1004 *fLog << " " << fAmpWeightsLoGain[i] << " \t " << fTimeWeightsLoGain[i] << endl; 1005 996 1006 MExtractTimeAndCharge::Print(o); 997 1007 }
Note:
See TracChangeset
for help on using the changeset viewer.