Changeset 5570 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 12/08/04 18:02:12 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
r5558 r5570 245 245 void MExtractTimeAndCharge::Print(Option_t *o) const 246 246 { 247 if (IsA()== MExtractTimeAndCharge::Class())247 if (IsA()==Class()) 248 248 *fLog << GetDescriptor() << ":" << endl; 249 250 *fLog << dec << endl;251 *fLog << " Taking " << fNumHiGainSamples249 250 *fLog << dec; 251 *fLog << " Taking " << fNumHiGainSamples 252 252 << " HiGain samples from slice " << (Int_t)fHiGainFirst 253 253 << " to " << (Int_t)(fHiGainLast+fHiLoLast) << " incl" << endl; 254 *fLog << inf << "Taking " << fNumLoGainSamples254 *fLog << " Taking " << fNumLoGainSamples 255 255 << " LoGain samples from slice " << (Int_t)fLoGainFirst 256 256 << " to " << (Int_t)fLoGainLast << " incl" << endl; -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc
r5558 r5570 234 234 const Float_t pedes = ped.GetPedestal(); 235 235 const Float_t ABoffs = ped.GetPedestalABoffset(); 236 236 237 237 Float_t pedmean[2]; 238 238 pedmean[0] = pedes + ABoffs; … … 260 260 sat++; 261 261 } 262 262 263 263 if (fHiLoLast != 0) 264 264 { … … 284 284 } 285 285 } 286 286 287 287 // 288 288 // allow one saturated slice … … 300 300 fRandomIter = 0; 301 301 for (Int_t ids=0; ids < fWindowSizeHiGain; ids++) 302 302 { 303 303 const Int_t idx = fBinningResolutionHiGain*ids + fRandomIter; 304 304 sum += fAmpWeightsHiGain [idx]*fHiGainSignal[ids]; … … 364 364 } 365 365 } 366 366 367 367 sum = 0.; 368 368 time_sum = 0.; … … 1012 1012 void MExtractTimeAndChargeDigitalFilter::Print(Option_t *o) const 1013 1013 { 1014 if (IsA()==Class()) 1015 *fLog << GetDescriptor() << ":" << endl; 1016 1014 1017 MExtractTimeAndCharge::Print(o); 1015 1018 *fLog << " Time Shift HiGain: " << fTimeShiftHiGain << " LoGain: " << fTimeShiftLoGain << endl; 1016 1019 *fLog << " Window Size HiGain: " << fWindowSizeHiGain << " LoGain: " << fWindowSizeLoGain << endl; 1017 1020 *fLog << " Binning Res HiGain: " << fBinningResolutionHiGain << " LoGain: " << fBinningResolutionHiGain << endl; 1018 *fLog << " Weights File: " << fNameWeightsFile .Data()<< endl;1021 *fLog << " Weights File: " << fNameWeightsFile << endl; 1019 1022 1020 1023 TString opt(o); -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.h
r5529 r5570 48 48 MArrayF fTimeWeightsLoGain; //! Time weights Low-Gain (from weights file) 49 49 50 TString fNameWeightsFile; // Name of the weights file51 Bool_t fWeightsSet; // Flag if weights have alreayd been set52 UInt_t fRandomIter; // Counter used to randomize weights for noise calculation50 TString fNameWeightsFile; //! Name of the weights file 51 Bool_t fWeightsSet; //! Flag if weights have alreayd been set 52 UInt_t fRandomIter; //! Counter used to randomize weights for noise calculation 53 53 54 54 Bool_t InitArrays();
Note:
See TracChangeset
for help on using the changeset viewer.