35 return (this->
errorCode() >> (16 + 4 * component)) & 0xf;
58 return ( this->
errorCode(component) == 0);
64 std::stringstream status;
66 status <<
"ErrorCode: " << this->
errorCode() << std::endl
67 <<
"Bit 0: NoDataBit: " <<
noData() << std::endl
68 <<
"Bit 1: BadDataBit: " <<
badData() << std::endl
69 <<
"Bit 2: BadResultBit: " <<
badResult() << std::endl
70 <<
"Bit 3: Not defined: " <<
bitIsSet(4) << std::endl;
72 status <<
"Bit 4: DacScanBadSlopeBit: " <<
dacScanBadSlope() << std::endl
77 <<
"Bit 9: PedRunBadMeanBit: " <<
pedRunBadMean() << std::endl
82 else if (spec ==
CPM) {
84 else if (spec ==
JEM) {
87 <<
"Bit 7: ExceededDelayBit: " <<
exceededDelay() << std::endl
90 else if (spec ==
CMM) {
97 output <<
r.errorCode();
std::ostream & operator<<(std::ostream &output, const ChanCalibErrorCode &r)
bool bitIsSet(unsigned int number) const
AbstractErrorCode(unsigned int errorCode)
bool chanValid() const
Checks if channel is valid, ie.
bool dacScanBadSlope() const
std::string printStatus(ChanErrorSet spec) const
bool pedRunBadMean() const
bool dacScanBadCorrCoeff() const
bool dacScanBadAdcDistrib() const
bool pedRunBadSigma() const
bool exceededDelay() const
unsigned int errorCode() const
bool totalWindowSizeUndercut() const
bool dacScanBadOffset() const
unsigned int errorCode(ChanErrorComponent component) const
bool distToErrorRegionUndercut() const
bool pedRunBadAdcDistrib() const
ChanCalibErrorCode & operator=(const ChanCalibErrorCode &e)
bool exceededDelayAfterCorr() const
ChanCalibErrorCode & operator|=(const ChanCalibErrorCode &e)