Changeset 7095 for trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.h
- Timestamp:
- 05/27/05 10:44:08 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhcalib/MHCalibrationCam.h
r7005 r7095 108 108 Int_t fPulserFrequency; // Light pulser frequency 109 109 110 enum { kDebug, kLoGain, kAverageing, 111 kOscillations, kSizeCheck }; // Possible global flags 110 enum { 111 kDebug, 112 kLoGain, 113 kAverageing, 114 kOscillations, 115 kSizeCheck, 116 kIsReset 117 }; // Possible global flags 112 118 113 119 Byte_t fFlags; // Bit-field to hold the global flags … … 159 165 Bool_t IsOscillations() const { return TESTBIT(fFlags,kOscillations); } 160 166 Bool_t IsSizeCheck () const { return TESTBIT(fFlags,kSizeCheck); } 167 Bool_t IsReset () const { return TESTBIT(fFlags,kIsReset); } 168 169 void ToggleFlag(Bool_t b, Byte_t flag) { b ? SETBIT(fFlags, flag) : CLRBIT(fFlags,flag); } 161 170 162 171 void Remove ( TOrdCollection *col ); … … 203 212 const MHCalibrationPix &operator() (UInt_t i) const; 204 213 205 void SetColor ( const MCalibrationCam::PulserColor_t color) { fColor = color; } 206 void SetAverageing ( const Bool_t b=kTRUE ) { b 207 ? SETBIT(fFlags,kAverageing) 208 : CLRBIT(fFlags,kAverageing); } 209 void SetDebug ( const Bool_t b=kTRUE ) { b 210 ? SETBIT(fFlags,kDebug) 211 : CLRBIT(fFlags,kDebug); } 212 void SetLoGain ( const Bool_t b=kTRUE ) { b 213 ? SETBIT(fFlags,kLoGain) 214 : CLRBIT(fFlags,kLoGain); } 215 void SetOscillations ( const Bool_t b=kTRUE ) { b 216 ? SETBIT(fFlags,kOscillations) 217 : CLRBIT(fFlags,kOscillations); } 218 void SetSizeCheck ( const Bool_t b=kTRUE ) { b 219 ? SETBIT(fFlags,kSizeCheck) 220 : CLRBIT(fFlags,kSizeCheck); } 214 void SetColor(const MCalibrationCam::PulserColor_t color) { fColor = color; } 215 216 void SetAverageing(const Bool_t b=kTRUE) { ToggleFlag(b,kAverageing); } 217 void SetDebug(const Bool_t b=kTRUE) { ToggleFlag(b,kDebug); } 218 void SetLoGain(const Bool_t b=kTRUE) { ToggleFlag(b,kLoGain); } 219 void SetOscillations(const Bool_t b=kTRUE) { ToggleFlag(b,kOscillations); } 220 void SetSizeCheck(const Bool_t b=kTRUE) { ToggleFlag(b,kSizeCheck); } 221 void SetIsReset(const Bool_t b=kTRUE) { ToggleFlag(b,kIsReset); } 222 221 223 void SetHistName ( const char *name ) { fHistName = name; } 222 224 void SetHistTitle ( const char *name ) { fHistTitle = name; }
Note:
See TracChangeset
for help on using the changeset viewer.