Ignore:
Timestamp:
08/12/04 16:41:37 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mpedestal/MPedCalcFromLoGain.h

    r4565 r4601  
    1919class MPedCalcFromLoGain : public MExtractor
    2020{
    21   static const Byte_t fgHiGainFirst;      // First FADC slice Hi-Gain (currently set to: 3)
    22   static const Byte_t fgHiGainLast;       // Last FADC slice Hi-Gain (currently set to: 14)
    23   static const Byte_t fgLoGainFirst;      // First FADC slice Lo-Gain (currently set to: 3)
    24   static const Byte_t fgLoGainLast;       // Last FADC slice Lo-Gain (currently set to: 14)
    25   static const Byte_t fgHiGainWindowSize; // The extraction window Hi-Gain
    26   static const Byte_t fgLoGainWindowSize; // The extraction window Lo-Gain
    27   static const Byte_t fgMaxHiGainVar;     // The maximum difference between the highest and lowest slice
    28                                           // in the high gain window allowed in order to use low gain
     21    static const Byte_t fgHiGainFirst;      // First FADC slice Hi-Gain (currently set to: 3)
     22    static const Byte_t fgHiGainLast;       // Last FADC slice Hi-Gain (currently set to: 14)
     23    static const Byte_t fgLoGainFirst;      // First FADC slice Lo-Gain (currently set to: 3)
     24    static const Byte_t fgLoGainLast;       // Last FADC slice Lo-Gain (currently set to: 14)
     25    static const Byte_t fgHiGainWindowSize; // The extraction window Hi-Gain
     26    static const Byte_t fgLoGainWindowSize; // The extraction window Lo-Gain
     27    static const Byte_t fgMaxHiGainVar;     // The maximum difference between the highest and lowest slice
    2928
    30   Int_t   fNumEventsDump;    // Number of event after which MPedestalCam gets updated
     29    Int_t   fNumEventsDump;      // Number of event after which MPedestalCam gets updated
    3130
    32   Byte_t  fMaxHiGainVar;
    33   Byte_t  fWindowSizeHiGain; // Number of Hi Gain slices in window
    34   Byte_t  fWindowSizeLoGain; // Number of Lo Gain slices in window
     31    Byte_t  fMaxHiGainVar;
     32    Byte_t  fWindowSizeHiGain;  // Number of Hi Gain slices in window
     33    Byte_t  fWindowSizeLoGain;  // Number of Lo Gain slices in window
    3534
    36   Bool_t  fPedestalUpdate;
     35    Bool_t  fPedestalUpdate;
    3736
    38   MGeomCam     *fGeom;       // Camera geometry
    39   TString fPedContainerName; // name of the 'MPedestalCam' container
    40  
    41   TArrayI fNumEventsUsed;    // Number of events used for pedestal calc for each pixel
    42   TArrayI fTotalCounter;     // Counter for dumping values to Pedestal Container
    43   TArrayD fSumx;             // sum of values
    44   TArrayD fSumx2;            // sum of squared values
    45   TArrayD fSumAB0;           // sum of ABFlag=0 slices
    46   TArrayD fSumAB1;           // sum of ABFlag=1 slices
     37    MGeomCam *fGeom;             // Camera geometry
     38    TString   fPedContainerName; // name of the 'MPedestalCam' container
    4739
    48  
    49   Int_t  PreProcess (MParList *pList);
    50   Bool_t ReInit     (MParList *pList);
    51   Int_t  Process    ();
    52   Int_t  PostProcess();
    53  
     40    TArrayI fNumEventsUsed;      // Number of events used for pedestal calc for each pixel
     41    TArrayI fTotalCounter;       // Counter for dumping values to Pedestal Container
     42    TArrayD fSumx;               // sum of values
     43    TArrayD fSumx2;              // sum of squared values
     44    TArrayD fSumAB0;             // sum of ABFlag=0 slices
     45    TArrayD fSumAB1;             // sum of ABFlag=1 slices
     46
     47    // MParContainer
     48    Int_t  PreProcess (MParList *pList);
     49    Bool_t ReInit     (MParList *pList);
     50    Int_t  Process    ();
     51    Int_t  PostProcess();
     52    Int_t  ReadEnv(const TEnv &env, TString prefix, Bool_t print);
     53
     54    // Calculation
     55    void Calc(ULong_t n, UInt_t idx);
     56
    5457public:
    55   MPedCalcFromLoGain(const char *name=NULL, const char *title=NULL);
    56  
    57   void Clear(const Option_t *o="");
    58   void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0);
    59   void SetWindowSize(Byte_t windowh=0, Byte_t windowl=0);
    60   void SetMaxHiGainVar(Byte_t maxvar=0);
    61   void SetDumpEvents(UInt_t dumpevents = 0) {fNumEventsDump = dumpevents;}
    62   void SetPedestalUpdate(Bool_t pedupdate)  {fPedestalUpdate = pedupdate;}
    63  
    64   void SetPedContainerName(const char *name)    { fPedContainerName = name; }
     58    MPedCalcFromLoGain(const char *name=NULL, const char *title=NULL);
    6559
    66   TArrayI *GetNumEventsUsed() {return &fNumEventsUsed;};
    67  
    68   ClassDef(MPedCalcFromLoGain, 0)   // Task to calculate pedestals from pedestal runs raw data
     60    // TObject
     61    void Clear(const Option_t *o="");
     62
     63    // Setter
     64    void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0);
     65    void SetWindowSize(Byte_t windowh=0, Byte_t windowl=0);
     66    void SetMaxHiGainVar(Byte_t maxvar=0);
     67    void SetDumpEvents(UInt_t dumpevents = 0) {fNumEventsDump = dumpevents;}
     68    void SetPedestalUpdate(Bool_t pedupdate)  {fPedestalUpdate = pedupdate;}
     69
     70    void SetPedContainerName(const char *name) { fPedContainerName = name; }
     71
     72    // Getter
     73    TArrayI *GetNumEventsUsed() { return &fNumEventsUsed; }
     74
     75    ClassDef(MPedCalcFromLoGain, 0)   // Task to calculate pedestals from pedestal runs raw data
    6976};
    7077
Note: See TracChangeset for help on using the changeset viewer.