#include <CalibTracker/SiStripAPVAnalysis/interface/TkStateMachine.h>
Public Types | |
enum | StatusType { ready = 1, calibrating = 2, updating = 3, stuck = 4 } |
Public Member Functions | |
bool | alreadyCalibrated () const |
bool | isCalibrating () const |
bool | isReady () const |
bool | isStuck () const |
bool | isUpdating () const |
void | setCalibrating () |
void | setReady () |
void | setStatus (StatusType in) |
void | setStuck () |
void | setUpdating () |
StatusType | status () const |
std::string | statusName () |
Public Attributes | |
StatusType | myStatus |
Each of the ApvAnalysis component can be
Definition at line 12 of file TkStateMachine.h.
bool TkStateMachine::alreadyCalibrated | ( | ) | const [inline] |
bool TkStateMachine::isCalibrating | ( | ) | const [inline] |
Definition at line 30 of file TkStateMachine.h.
References calibrating, and myStatus.
Referenced by TT6NoiseCalculator::updateNoise(), SimpleNoiseCalculator::updateNoise(), SimplePedestalCalculator::updatePedestal(), TT6PedestalCalculator::updatePedestal(), SimplePedestalCalculator::updateStatus(), TT6NoiseCalculator::updateStatus(), TT6PedestalCalculator::updateStatus(), and SimpleNoiseCalculator::updateStatus().
00030 {return myStatus==calibrating;}
bool TkStateMachine::isReady | ( | ) | const [inline] |
bool TkStateMachine::isStuck | ( | ) | const [inline] |
bool TkStateMachine::isUpdating | ( | ) | const [inline] |
Definition at line 29 of file TkStateMachine.h.
References myStatus, and updating.
Referenced by ApvAnalysis::updateCalibration(), TT6NoiseCalculator::updateNoise(), SimpleNoiseCalculator::updateNoise(), SimplePedestalCalculator::updatePedestal(), and TT6PedestalCalculator::updatePedestal().
void TkStateMachine::setCalibrating | ( | ) | [inline] |
Definition at line 22 of file TkStateMachine.h.
References calibrating, and myStatus.
Referenced by TT6NoiseCalculator::init(), TT6PedestalCalculator::init(), and SimplePedestalCalculator::init().
00022 {myStatus = calibrating;}
void TkStateMachine::setReady | ( | ) | [inline] |
void TkStateMachine::setStatus | ( | StatusType | in | ) | [inline] |
void TkStateMachine::setStuck | ( | ) | [inline] |
void TkStateMachine::setUpdating | ( | ) | [inline] |
Definition at line 21 of file TkStateMachine.h.
References myStatus, and updating.
Referenced by TT6NTPedestalCalculator::TT6NTPedestalCalculator(), SimplePedestalCalculator::updateStatus(), TT6NoiseCalculator::updateStatus(), TT6PedestalCalculator::updateStatus(), and SimpleNoiseCalculator::updateStatus().
StatusType TkStateMachine::status | ( | ) | const [inline] |
std::string TkStateMachine::statusName | ( | ) | [inline] |
Definition at line 33 of file TkStateMachine.h.
References calibrating, myStatus, ready, stuck, and updating.
00033 { 00034 if (myStatus == ready) return "Ready"; 00035 if (myStatus == calibrating) return "Calibrating"; 00036 if (myStatus == updating) return "Updating"; 00037 if (myStatus == stuck) return "Stuck"; 00038 return "Unknown Status"; 00039 }
Definition at line 44 of file TkStateMachine.h.
Referenced by alreadyCalibrated(), isCalibrating(), isReady(), isStuck(), isUpdating(), setCalibrating(), setReady(), setStatus(), setStuck(), setUpdating(), status(), and statusName().