Changeset 5793 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 01/10/05 22:32:14 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r5790 r5793 79 79 const Int_t MExtractTimeAndChargeDigitalFilter::fgSignalStartBinLoGain = 4; 80 80 const TString MExtractTimeAndChargeDigitalFilter::fgNameWeightsFile = "msignal/cosmics_weights.dat"; 81 const Float_t MExtractTimeAndChargeDigitalFilter::fgOffsetLoGain = 1.8; // 5 ns 81 82 // -------------------------------------------------------------------------- 82 83 // … … 102 103 103 104 SetNameWeightsFile(); 105 SetOffsetLoGain(fgOffsetLoGain); 104 106 } 105 107 … … 199 201 200 202 fTimeShiftHiGain = (Float_t)fHiGainFirst + 0.5 + 1./fBinningResolutionHiGain; 201 fTimeShiftLoGain = (Float_t)fLoGainFirst +0.5 + 1./fBinningResolutionLoGain;203 fTimeShiftLoGain = 0.5 + 1./fBinningResolutionLoGain; 202 204 // 203 205 // We need here the effective number of samples which is about 2.5 in the case of a window … … 209 211 fSqrtLoGainSamples = TMath::Sqrt(fNumLoGainSamples); 210 212 213 Print("weights"); 214 211 215 return kTRUE; 212 216 } … … 539 543 return; 540 544 541 time = max_p + fTimeShiftLoGain /* this shifts the time to the start of the rising edge */545 time = max_p + fTimeShiftLoGain + (Float_t)fLoGainFirst /* this shifts the time to the start of the rising edge */ 542 546 - ((Float_t)t_iter)/fBinningResolutionLoGain - time_sum/sum; 543 547 } -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.h
r5792 r5793 32 32 static const Int_t fgSignalStartBinLoGain; //! Default for fSignalStartBinLoGain (now set to: 4) 33 33 static const TString fgNameWeightsFile; //! "cosmics_weights.dat" 34 34 static const Float_t fgOffsetLoGain; //! Default for fOffsetLoGain (now set to 1.8) 35 35 36 MArrayF fHiGainSignal; //! Need fast access to the signals in a float way 36 37 MArrayF fLoGainSignal; //! Store them in separate arrays
Note:
See TracChangeset
for help on using the changeset viewer.