Changeset 3256
- Timestamp:
- 02/21/04 03:46:36 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.cc
r3174 r3256 111 111 fPixId = -1; 112 112 113 SetMeanTimeInFirstBin( kFALSE );114 SetMeanTimeInLastBin( kFALSE );115 116 113 MHGausEvents::Clear(); 117 114 return; … … 134 131 fHAbsTime.SetName(Form("%s%d", fHAbsTime.GetName(), id)); 135 132 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() const149 {150 return TESTBIT(fFlags,kMeanTimeInFirstBin);151 }152 153 const Bool_t MHCalibrationChargePix::IsMeanTimeInLastBin() const154 {155 return TESTBIT(fFlags,kMeanTimeInLastBin);156 133 } 157 134 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.h
r3174 r3256 38 38 enum { kMeanTimeInFirstBin, kMeanTimeInLastBin }; // Bits to hold information about arrival time results 39 39 40 Byte_t fFlags; // Byte to hold the arrival time results41 42 40 public: 43 41 … … 60 58 void SetPulserFrequency(Float_t f=fgPulserFrequency); 61 59 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; } 65 63 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; 69 68 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 78 69 void ChangeHistId(Int_t i); 79 70
Note:
See TracChangeset
for help on using the changeset viewer.