Changeset 5359


Ignore:
Timestamp:
11/09/04 18:02:22 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msignal
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc

    r5307 r5359  
    3030//   and the signal at the same time. Uses the functions
    3131//   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.
    3336//
    3437//   The following variables have to be set by the derived class and
     
    8184// Sets:
    8285// - fLoGainStartShift to fgLoGainStartShift+fgOffsetLoGain
     86// - fNoiseCalculation to kFALSE
    8387//
    8488MExtractTimeAndCharge::MExtractTimeAndCharge(const char *name, const char *title)
     
    8892
    8993    SetLoGainStartShift();
     94    SetNoiseCalculation(kFALSE);
    9095}
    9196
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.h

    r5307 r5359  
    1515  Byte_t  fLoGainFirstSave;       //! Temporary variable to store the original position of low-gain start slice
    1616  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.
    1719 
    1820protected:
     
    3032
    3133  Int_t  ReadEnv(const TEnv &env, TString prefix, Bool_t print);
    32  
     34
     35  Bool_t IsNoiseCalculation()   {  return fNoiseCalculation;  }
     36
     37   
    3338public:
    3439
     
    3641 
    3742  void SetLoGainStartShift( const Float_t f=fgLoGainStartShift )  { fLoGainStartShift = f + fOffsetLoGain;  }
    38 
     43  void SetNoiseCalculation( const Bool_t b=kFALSE              )  { fNoiseCalculation = b;   }
     44   
    3945  void Print(Option_t *o) const;
    4046 
Note: See TracChangeset for help on using the changeset viewer.