Changeset 5280 for trunk


Ignore:
Timestamp:
10/15/04 15:56:43 (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/MExtractTime.cc

    r4775 r5280  
    7070using namespace std;
    7171
    72 const Float_t MExtractTime::fgOffsetLoGain = 1.51;   // 5 ns
    73 
    7472// --------------------------------------------------------------------------
    7573//
     
    9189    fTitle = title ? title : "Base class for signal extractors";
    9290
    93     SetOffsetLoGain();
    9491}
    9592
     
    215212}
    216213
    217 // --------------------------------------------------------------------------
    218 //
    219 // In addition to the resources of the base-class MExtractor:
    220 //   MJPedestal.MExtractor.OffsetLoGain: 1.51
    221 //
    222 Int_t MExtractTime::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
    223 {
    224     Bool_t rc = kFALSE;
    225 
    226     if (IsEnvDefined(env, prefix, "OffsetLoGain", print))
    227     {
    228         fOffsetLoGain = GetEnvValue(env, prefix, "OffsetLoGain", fOffsetLoGain);
    229         rc = kTRUE;
    230     }
    231 
    232     return MExtractor::ReadEnv(env, prefix, print) ? kTRUE : rc;
    233 }
    234 
    235214void MExtractTime::Print(Option_t *o) const
    236215{
  • trunk/MagicSoft/Mars/msignal/MExtractTime.h

    r5146 r5280  
    1111class MExtractTime : public MExtractor
    1212{
    13 private:
    14 
    15   static const Float_t fgOffsetLoGain;  // Default for fOffsetLoGain (now set to 1.51 (= 5ns)
    16 
    1713protected:
    1814 
    19   Float_t fOffsetLoGain;     // Offset of the low-gain signal w.r.t. the High-Gain slices
    20 
    2115  MArrivalTimeCam *fArrTime; //! Container with the photons arrival times
    2216 
     
    3024  Int_t  Process   ();
    3125
    32   Int_t  ReadEnv(const TEnv &env, TString prefix, Bool_t print);
     26public:
    3327
    34 public:
    3528  MExtractTime(const char *name=NULL, const char *title=NULL);
    36 
    37   void SetOffsetLoGain( const Float_t f=fgOffsetLoGain) { fOffsetLoGain = f; }
    3829
    3930  void Print(Option_t *o) const;
  • trunk/MagicSoft/Mars/msignal/MExtractor.cc

    r4896 r5280  
    8484using namespace std;
    8585
    86 const Byte_t  MExtractor::fgSaturationLimit  = 254;
     86const Byte_t  MExtractor::fgSaturationLimit = 254;
    8787const TString MExtractor::fgNamePedestalCam = "MPedestalCam";
    88 
     88const Float_t MExtractor::fgOffsetLoGain    = 1.51;   // 5 ns
    8989// --------------------------------------------------------------------------
    9090//
     
    110110
    111111    SetNamePedestalCam();
     112    SetOffsetLoGain();
    112113    SetRange();
    113114    SetSaturationLimit();
     
    380381    SetRange(hf, hl, lf, ll);
    381382
     383    if (IsEnvDefined(env, prefix, "OffsetLoGain", print))
     384    {
     385        SetOffsetLoGain(GetEnvValue(env, prefix, "OffsetLoGain", fOffsetLoGain));
     386        rc = kTRUE;
     387    }
     388
    382389    if (IsEnvDefined(env, prefix, "SaturationLimit", print))
    383390    {
  • trunk/MagicSoft/Mars/msignal/MExtractor.h

    r4723 r5280  
    2222class MExtractor : public MTask
    2323{
     24private:
     25
     26  static const Float_t fgOffsetLoGain;     //! Default for fOffsetLoGain (now set to 1.51 (= 5ns)
     27 
    2428protected:
    2529
    2630  static const Byte_t  fgSaturationLimit;  //! Default for fSaturationLimit (now set to: 254)
    27   static const TString fgNamePedestalCam; //! "MPedestalCam"
    28  
     31  static const TString fgNamePedestalCam;  //! "MPedestalCam"
     32
     33  Float_t fOffsetLoGain;                  // Offset of the low-gain signal w.r.t. the High-Gain slices
     34
    2935  MPedestalCam        *fPedestals;         //! Pedestals of all pixels in the camera
    3036  MExtractedSignalCam *fSignals;           //! Extracted signal of all pixels in the camera
     
    7076  virtual void SetRange    ( Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0 );
    7177
     78  void SetOffsetLoGain ( const Float_t f=fgOffsetLoGain) { fOffsetLoGain = f; }
    7279  void SetSaturationLimit  ( Byte_t       lim=fgSaturationLimit        ) { fSaturationLimit  = lim;  }
    7380  void SetNamePedestalCam ( const char *name=fgNamePedestalCam.Data()) { fNamePedestalCam = name; }
Note: See TracChangeset for help on using the changeset viewer.