Ignore:
Timestamp:
08/10/04 10:35:48 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r4404 r4556  
    99{
    1010private:
     11    Float_t fPedestal;         // mean value of pedestal (PMT offset)
     12    Float_t fPedestalRms;      // root mean square / sigma  / standard deviation of pedestal
     13    Float_t fPedestalABoffset; // the difference between odd slice pedestal mean and total mean
     14    UInt_t  fNumEvents;        // number of times, the Process was executed (to estimate the error of pedestal)
    1115
    12   Float_t fPedestal;     // mean value of pedestal (PMT offset)
    13   Float_t fPedestalRms;  // root mean square / sigma  / standard deviation of pedestal
    14   Float_t fPedestalABoffset; // the difference between odd slice pedestal mean and the
    15                              // total pedestal mean (fPedestal). For even slices pedestal
    16                              // use -fPedestalABoffset.
    17   UInt_t fNumEvents; // number of times, the Process was executed (to estimate the error of pedestal)
    18   Bool_t fValid;   // flag to set pixel valid
    19  
    2016public:
    21   MPedestalPix();
    22  
    23   void Clear(Option_t *o="");
    24  
    25   // Using histograms
    26   void InitUseHists();
    27  
     17    MPedestalPix();
     18
     19    void Clear(Option_t *o="");
     20
     21    // Using histograms
     22    void InitUseHists();
     23
    2824    // Setters
    29   void SetPedestal(const Float_t f)         { fPedestal = f; }
    30   void SetPedestalRms(const Float_t f)      { fPedestalRms = f; }
    31   void SetPedestalABoffset(const Float_t f) { fPedestalABoffset = f; }
    32   void SetNumEvents(const UInt_t n)         { fNumEvents = n; }
     25    void SetPedestal(const Float_t f)         { fPedestal = f; }
     26    void SetPedestalRms(const Float_t f)      { fPedestalRms = f; }
     27    void SetPedestalABoffset(const Float_t f) { fPedestalABoffset = f; }
     28    void SetNumEvents(const UInt_t n)         { fNumEvents = n; }
    3329
    34   void Set(const Float_t m, const Float_t r, const Float_t offs=0, const UInt_t n=0);
    35   void SetValid(const Bool_t b=kTRUE)    { fValid = b;  }
    36  
    37   // Getters
    38   Float_t GetPedestal()    const { return fPedestal; }
    39   Float_t GetPedestalRms() const { return fPedestalRms; }
    40   Float_t GetPedestalABoffset() const { return fPedestalABoffset; }
    41   Float_t GetPedestalError()    const { return fNumEvents>0 ? fPedestalRms/TMath::Sqrt((Float_t)fNumEvents)   : 0; }
    42   Float_t GetPedestalRmsError() const { return fNumEvents>0 ? fPedestalRms/TMath::Sqrt((Float_t)fNumEvents/2) : 0; }
    43  
    44   Bool_t IsValid()         const;
     30    void Set(const Float_t m, const Float_t r, const Float_t offs=0, const UInt_t n=0);
    4531
    46   ClassDef(MPedestalPix, 2)     // Storage Container for Pedestal information of one pixel
     32    // Getters
     33    Float_t GetPedestal()    const { return fPedestal; }
     34    Float_t GetPedestalRms() const { return fPedestalRms; }
     35    Float_t GetPedestalABoffset() const { return fPedestalABoffset; }
     36    Float_t GetPedestalError()    const { return fNumEvents>0 ? fPedestalRms/TMath::Sqrt((Float_t)fNumEvents)   : 0; }
     37    Float_t GetPedestalRmsError() const { return fNumEvents>0 ? fPedestalRms/TMath::Sqrt((Float_t)fNumEvents/2) : 0; }
     38
     39    Bool_t IsValid() const;
     40
     41    ClassDef(MPedestalPix, 3) // Storage Container for Pedestal information of one pixel
    4742};
    4843
    4944#endif
    50 
Note: See TracChangeset for help on using the changeset viewer.