Ignore:
Timestamp:
01/10/05 23:24:03 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.h

    r5747 r5794  
    2121  static const Byte_t  fgLoGainLast;     //! Default for fLoGainLast   (now set to: 14)
    2222  static const Float_t fgResolution;     //! Default for fResolution   (now set to: 0.003)
    23   static const Float_t fgRiseTime;       //! Default for fRiseTime     (now set to: 1.5)
    24   static const Float_t fgFallTime;       //! Default for fFallTime     (now set to: 4.5)
    25 
     23  static const Float_t fgRiseTimeHiGain; //! Default for fRiseTime     (now set to: 1.5)
     24  static const Float_t fgFallTimeHiGain; //! Default for fFallTime     (now set to: 4.5)
     25  static const Float_t fgLoGainStretch;  //! Default for fLoGainStretch (now set to: 1.5)
     26  static const Float_t fgOffsetLoGain;   //! Default for fOffsetLoGain (now set to 1.2)
     27 
    2628  MArrayF fHiGainSignal;                //! Need fast access to the signals in a float way
    2729  MArrayF fLoGainSignal;                //! Store them in separate arrays
     
    3133  MArrayF fLoGainSecondDeriv;           //! Low-gain discretized second derivatives
    3234
    33   Float_t fAbMax;                        //! Current maximum of the spline
    34   Float_t fAbMaxPos;                     //! Current position of the maximum of the spline
    35   Float_t fHalfMax;                      //! Current half maximum of the spline
     35  Float_t fAbMax;                       //! Current maximum of the spline
     36  Float_t fAbMaxPos;                    //! Current position of the maximum of the spline
     37  Float_t fHalfMax;                     //! Current half maximum of the spline
    3638
    37   Float_t fResolution;                   // The time resolution in FADC units
    38   Float_t fRiseTime;                     // The usual rise time of the pulse
    39   Float_t fFallTime;                     // The usual fall time of the pulse
     39  Float_t fResolution;                  // The time resolution in FADC units
    4040
    41   Int_t   fRandomIter;                   // Counter used to randomize weights for noise calculation
     41  Float_t fRiseTimeHiGain;              // The usual rise time of the pulse in the high-gain
     42  Float_t fFallTimeHiGain;              // The usual fall time of the pulse in the high-gain
     43  Float_t fRiseTimeLoGain;              //! The usual rise time of the pulse in the low-gain
     44  Float_t fFallTimeLoGain;              //! The usual fall time of the pulse in the low-gain
     45
     46  Float_t fLoGainStretch;               // The stretch of the low-gain w.r.t. the high-gain pulse
     47
     48  Int_t   fRandomIter;                  // Counter used to randomize weights for noise calculation
    4249 
    43   Byte_t  fFlags;                        // Bit-field to hold the time extraction types
     50  Byte_t  fFlags;                       // Bit-field to hold the time extraction types
    4451 
    4552  Int_t  ReadEnv(const TEnv &env, TString prefix, Bool_t print);
     
    6471  ~MExtractTimeAndChargeSpline() {}
    6572
    66   Float_t GetRiseTime() const { return fRiseTime; }
    67   Float_t GetFallTime() const { return fFallTime; }
     73  Float_t GetRiseTimeHiGain() const { return fRiseTimeHiGain; }
     74  Float_t GetFallTimeHiGain() const { return fFallTimeHiGain; }
    6875
    6976  void SetRange      ( Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0 ); 
    7077  void SetResolution ( const Float_t f=fgResolution  )  { fResolution  = f;  }
    71   void SetRiseTime   ( const Float_t f=fgRiseTime    )  { fRiseTime    = f;  }
    72   void SetFallTime   ( const Float_t f=fgFallTime    )  { fFallTime    = f;  }
    73 
     78  void SetRiseTimeHiGain( const Float_t f=fgRiseTimeHiGain    )  { fRiseTimeHiGain = f;  }
     79  void SetFallTimeHiGain( const Float_t f=fgFallTimeHiGain    )  { fFallTimeHiGain = f;  }
     80  void SetLoGainStretch ( const Float_t f=fgLoGainStretch    )  { fLoGainStretch = f;   }
     81 
    7482  void SetChargeType ( const ExtractionType_t typ=kAmplitude);
    7583 
     
    8189                               Byte_t &sat, const MPedestalPix &ped, const Bool_t abflag);
    8290
    83   ClassDef(MExtractTimeAndChargeSpline, 1)   // Task to Extract Arrival Times and Charges using a Fast Cubic Spline
     91  ClassDef(MExtractTimeAndChargeSpline, 2)   // Task to Extract Arrival Times and Charges using a Fast Cubic Spline
    8492};
    8593
Note: See TracChangeset for help on using the changeset viewer.