Changeset 5527 for trunk/MagicSoft/Mars
- Timestamp:
- 11/30/04 19:40:18 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r5526 r5527 205 205 Bool_t MExtractTimeAndChargeDigitalFilter::InitArrays() 206 206 { 207 207 208 Int_t range = (Int_t)(fHiGainLast - fHiGainFirst + 1 + fHiLoLast); 209 208 210 fHiGainSignal.Set(range); 209 211 range = (Int_t)(fLoGainLast - fLoGainFirst + 1); 212 210 213 fLoGainSignal.Set(range); 211 214 … … 1017 1020 void MExtractTimeAndChargeDigitalFilter::Print(Option_t *o) const 1018 1021 { 1019 *fLog << all; 1020 *fLog << GetDescriptor() << ":" << endl; 1021 1022 MExtractTimeAndCharge::Print(o); 1023 *fLog << " Time Shift HiGain: " << fTimeShiftHiGain << endl; 1024 *fLog << " Time Shift LoGain: " << fTimeShiftLoGain << endl; 1025 *fLog << " Window Size HiGain: " << fWindowSizeHiGain << endl; 1026 *fLog << " Window Size LoGain: " << fWindowSizeLoGain << endl; 1027 *fLog << " Binning Res HiGain: " << fBinningResolutionHiGain << endl; 1028 *fLog << " Binning Res LoGain: " << fBinningResolutionHiGain << endl; 1029 *fLog << " Weights File: " << fNameWeightsFile.Data << endl; 1030 1031 TString opt(o); 1032 if (!opt.Contains("weights")) 1033 return; 1034 1035 *fLog << endl; 1036 *fLog << inf << "Using the following weights: " << endl; 1037 *fLog << "Hi-Gain:" << endl; 1038 for (Int_t i=0; i<fBinningResolutionHiGain*fWindowSizeHiGain; i++) 1039 *fLog << " " << fAmpWeightsHiGain[i] << " \t " << fTimeWeightsHiGain[i] << endl; 1040 1041 *fLog << "Lo-Gain:" << endl; 1042 for (Int_t i=0; i<fBinningResolutionLoGain*fWindowSizeLoGain; i++) 1043 *fLog << " " << fAmpWeightsLoGain[i] << " \t " << fTimeWeightsLoGain[i] << endl; 1044 1022 1023 *fLog << all; 1024 *fLog << GetDescriptor() << ":" << endl; 1025 1026 MExtractTimeAndCharge::Print(o); 1027 *fLog << " Time Shift HiGain: " << fTimeShiftHiGain << endl; 1028 *fLog << " Time Shift LoGain: " << fTimeShiftLoGain << endl; 1029 *fLog << " Window Size HiGain: " << fWindowSizeHiGain << endl; 1030 *fLog << " Window Size LoGain: " << fWindowSizeLoGain << endl; 1031 *fLog << " Binning Res HiGain: " << fBinningResolutionHiGain << endl; 1032 *fLog << " Binning Res LoGain: " << fBinningResolutionHiGain << endl; 1033 *fLog << " Weights File: " << fNameWeightsFile.Data() << endl; 1034 1035 TString opt(o); 1036 if (!opt.Contains("weights")) 1037 return; 1038 1039 *fLog << endl; 1040 *fLog << inf << "Using the following weights: " << endl; 1041 *fLog << "Hi-Gain:" << endl; 1042 for (Int_t i=0; i<fBinningResolutionHiGain*fWindowSizeHiGain; i++) 1043 *fLog << " " << fAmpWeightsHiGain[i] << " \t " << fTimeWeightsHiGain[i] << endl; 1044 1045 *fLog << "Lo-Gain:" << endl; 1046 for (Int_t i=0; i<fBinningResolutionLoGain*fWindowSizeLoGain; i++) 1047 *fLog << " " << fAmpWeightsLoGain[i] << " \t " << fTimeWeightsLoGain[i] << endl; 1048 1045 1049 }
Note:
See TracChangeset
for help on using the changeset viewer.