Changeset 5359
- Timestamp:
- 11/09/04 18:02:22 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc
r5307 r5359 30 30 // and the signal at the same time. Uses the functions 31 31 // FindTimeAndChargeHiGain() and FindTimeAndChargeLoGain() to extract the signal and 32 // substract the pedestal value 32 // substract the pedestal value. 33 // 34 // If the flag fNoiseCalculation is set, the signal extractor should 35 // calculate the pure noise contriubtion from a fixed window in time. 33 36 // 34 37 // The following variables have to be set by the derived class and … … 81 84 // Sets: 82 85 // - fLoGainStartShift to fgLoGainStartShift+fgOffsetLoGain 86 // - fNoiseCalculation to kFALSE 83 87 // 84 88 MExtractTimeAndCharge::MExtractTimeAndCharge(const char *name, const char *title) … … 88 92 89 93 SetLoGainStartShift(); 94 SetNoiseCalculation(kFALSE); 90 95 } 91 96 -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.h
r5307 r5359 15 15 Byte_t fLoGainFirstSave; //! Temporary variable to store the original position of low-gain start slice 16 16 Float_t fLoGainStartShift; // Shift to start searching the low-gain signal obtained from the high-gain times. 17 18 Bool_t fNoiseCalculation; // Flag if the extractor is used to determine the noise contribution from a pedestal file. 17 19 18 20 protected: … … 30 32 31 33 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); 32 34 35 Bool_t IsNoiseCalculation() { return fNoiseCalculation; } 36 37 33 38 public: 34 39 … … 36 41 37 42 void SetLoGainStartShift( const Float_t f=fgLoGainStartShift ) { fLoGainStartShift = f + fOffsetLoGain; } 38 43 void SetNoiseCalculation( const Bool_t b=kFALSE ) { fNoiseCalculation = b; } 44 39 45 void Print(Option_t *o) const; 40 46
Note:
See TracChangeset
for help on using the changeset viewer.