Changeset 3256


Ignore:
Timestamp:
02/21/04 03:46:36 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mcalib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.cc

    r3174 r3256  
    111111  fPixId = -1;
    112112 
    113   SetMeanTimeInFirstBin( kFALSE );
    114   SetMeanTimeInLastBin(  kFALSE ); 
    115 
    116113  MHGausEvents::Clear();
    117114  return;
     
    134131  fHAbsTime.SetName(Form("%s%d", fHAbsTime.GetName(), id));
    135132  fHAbsTime.SetTitle(Form("%s%d", fHAbsTime.GetTitle(), id));
    136 }
    137 
    138 void MHCalibrationChargePix::SetMeanTimeInFirstBin(const Bool_t b)
    139 {
    140   b ? SETBIT(fFlags,kMeanTimeInFirstBin) : CLRBIT(fFlags,kMeanTimeInFirstBin);
    141 }
    142 
    143 void MHCalibrationChargePix::SetMeanTimeInLastBin(const Bool_t b)
    144 {
    145   b ? SETBIT(fFlags,kMeanTimeInLastBin) : CLRBIT(fFlags,kMeanTimeInLastBin);
    146 }
    147 
    148 const Bool_t MHCalibrationChargePix::IsMeanTimeInFirstBin() const
    149 {
    150   return TESTBIT(fFlags,kMeanTimeInFirstBin);
    151 }
    152 
    153 const Bool_t MHCalibrationChargePix::IsMeanTimeInLastBin() const
    154 {
    155   return TESTBIT(fFlags,kMeanTimeInLastBin);
    156133}
    157134
  • trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.h

    r3174 r3256  
    3838  enum { kMeanTimeInFirstBin, kMeanTimeInLastBin }; // Bits to hold information about arrival time results
    3939 
    40   Byte_t fFlags;                    //  Byte to hold the arrival time results
    41  
    4240public:
    4341
     
    6058  void SetPulserFrequency(Float_t f=fgPulserFrequency);
    6159
    62   // Setters ONLY for MC:
    63   void  SetMeanTimeInFirstBin(const Bool_t b);
    64   void  SetMeanTimeInLastBin( const Bool_t b);
     60  // Getters
     61  TH1F *GetHAbsTime()                       { return &fHAbsTime;  }
     62  const TH1F *GetHAbsTime()           const { return &fHAbsTime;  }
    6563
    66   // Getters
    67   TH1F *GetHAbsTime()                  { return &fHAbsTime;  }
    68   const TH1F *GetHAbsTime()            const { return &fHAbsTime;  }
     64  const Float_t  GetIntegral()        const;
     65 
     66  const Float_t  GetAbsTimeMean()     const;
     67  const Float_t  GetAbsTimeRms()      const;
    6968
    70   const Float_t  GetIntegral() const;
    71  
    72   const Float_t  GetAbsTimeMean() const;
    73   const Float_t  GetAbsTimeRms() const;
    74 
    75   const Bool_t IsMeanTimeInFirstBin() const;
    76   const Bool_t IsMeanTimeInLastBin() const;
    77  
    7869  void ChangeHistId(Int_t i);
    7970 
Note: See TracChangeset for help on using the changeset viewer.