Changeset 5360 for trunk


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

Legend:

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

    r5359 r5360  
    3232//   substract the pedestal value.
    3333//
    34 //   If the flag fNoiseCalculation is set, the signal extractor should
    35 //   calculate the pure noise contriubtion from a fixed window in time.
    36 //
    3734//   The following variables have to be set by the derived class and
    3835//   do not have defaults:
     
    8481// Sets:
    8582// - fLoGainStartShift to fgLoGainStartShift+fgOffsetLoGain
    86 // - fNoiseCalculation to kFALSE
    8783//
    8884MExtractTimeAndCharge::MExtractTimeAndCharge(const char *name, const char *title)
     
    9288
    9389    SetLoGainStartShift();
    94     SetNoiseCalculation(kFALSE);
    9590}
    9691
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.h

    r5359 r5360  
    1616  Float_t fLoGainStartShift;      // Shift to start searching the low-gain signal obtained from the high-gain times.
    1717
    18   Bool_t  fNoiseCalculation;      // Flag if the extractor is used to determine the noise contribution from a pedestal file.
    19  
    2018protected:
    2119
     
    3331  Int_t  ReadEnv(const TEnv &env, TString prefix, Bool_t print);
    3432
    35   Bool_t IsNoiseCalculation()   {  return fNoiseCalculation;  }
    36 
    37    
    3833public:
    3934
     
    4136 
    4237  void SetLoGainStartShift( const Float_t f=fgLoGainStartShift )  { fLoGainStartShift = f + fOffsetLoGain;  }
    43   void SetNoiseCalculation( const Bool_t b=kFALSE              )  { fNoiseCalculation = b;   }
    4438   
    4539  void Print(Option_t *o) const;
  • trunk/MagicSoft/Mars/msignal/MExtractor.cc

    r5280 r5360  
    5050//      created in PreProcess and Process) are written
    5151//    - the version number is maintained!
     52//    - If the flag fNoiseCalculation is set, the signal extractor should
     53//      calculate the pure noise contriubtion from a fixed window in time.
    5254//
    5355//
     
    9698// - fSaturationLimit to fgSaturationLimit
    9799// - fNamePedestalCam to fgNamePedestalCam
     100// - fNoiseCalculation to kFALSE
    98101//
    99102// Call:
     
    113116    SetRange();
    114117    SetSaturationLimit();
     118    SetNoiseCalculation(kFALSE);
    115119}
    116120
  • trunk/MagicSoft/Mars/msignal/MExtractor.h

    r5328 r5360  
    2525
    2626  static const Float_t fgOffsetLoGain;     //! Default for fOffsetLoGain (now set to 1.51 (= 5ns)
     27 
     28  Bool_t  fNoiseCalculation;      // Flag if the extractor is used to determine the noise contribution from a pedestal file.
    2729 
    2830protected:
     
    5456  Byte_t   fSaturationLimit;               // Highest FADC slice value until being declared saturated
    5557  TString  fNamePedestalCam;              // Name of the 'MPedestalCam' container
     58
     59  Bool_t IsNoiseCalculation()   {   return fNoiseCalculation;   }
    5660 
    5761  virtual void FindSignalHiGain(Byte_t *firstused, Byte_t *lowgain, Float_t &sum, Byte_t &sat) const { }
     
    7983  void SetSaturationLimit  ( Byte_t       lim=fgSaturationLimit        ) { fSaturationLimit  = lim;  }
    8084  void SetNamePedestalCam ( const char *name=fgNamePedestalCam.Data()) { fNamePedestalCam = name; }
     85  void SetNoiseCalculation( const Bool_t b=kFALSE )   {   fNoiseCalculation = b;   }
    8186
    8287  void Print(Option_t *o="") const;
    8388
    84   ClassDef(MExtractor, 2) // Signal Extractor Base Class
     89  ClassDef(MExtractor, 3) // Signal Extractor Base Class
    8590};
    8691
Note: See TracChangeset for help on using the changeset viewer.