#include <CastorChannelStatus.h>
Public Types | |
enum | StatusBit { UNKNOWN = 0, BAD = 1, GOOD = 2, HOT = 3, DEAD = 4, END = 5 } |
Public Member Functions | |
CastorChannelStatus () | |
CastorChannelStatus (unsigned long fid, uint32_t status) | |
CastorChannelStatus (unsigned long fid, std::string status) | |
uint32_t | getValue () const |
bool | isBitSet (unsigned int bitnumber) const |
uint32_t | rawId () const |
void | setBit (unsigned int bitnumber) |
void | setValue (uint32_t value) |
void | unsetBit (unsigned int bitnumber) |
Private Attributes | |
uint32_t | mId |
uint32_t | mStatus |
Definition at line 13 of file CastorChannelStatus.h.
CastorChannelStatus::CastorChannelStatus | ( | ) | [inline] |
Definition at line 35 of file CastorChannelStatus.h.
CastorChannelStatus::CastorChannelStatus | ( | unsigned long | fid, |
uint32_t | status | ||
) | [inline] |
CastorChannelStatus::CastorChannelStatus | ( | unsigned long | fid, |
std::string | status | ||
) | [inline] |
Definition at line 37 of file CastorChannelStatus.h.
uint32_t CastorChannelStatus::getValue | ( | ) | const [inline] |
Definition at line 72 of file CastorChannelStatus.h.
References mStatus.
Referenced by RecHitCorrector::produce().
{return mStatus;}
bool CastorChannelStatus::isBitSet | ( | unsigned int | bitnumber | ) | const [inline] |
Definition at line 64 of file CastorChannelStatus.h.
References mStatus.
{ uint32_t statadd = 0x1<<(bitnumber); return (mStatus&statadd)?(true):(false); }
uint32_t CastorChannelStatus::rawId | ( | ) | const [inline] |
void CastorChannelStatus::setBit | ( | unsigned int | bitnumber | ) | [inline] |
Definition at line 52 of file CastorChannelStatus.h.
References mStatus.
void CastorChannelStatus::setValue | ( | uint32_t | value | ) | [inline] |
Definition at line 48 of file CastorChannelStatus.h.
References mStatus, and relativeConstraints::value.
void CastorChannelStatus::unsetBit | ( | unsigned int | bitnumber | ) | [inline] |
Definition at line 57 of file CastorChannelStatus.h.
References mStatus.
uint32_t CastorChannelStatus::mId [private] |
Definition at line 75 of file CastorChannelStatus.h.
Referenced by rawId().
uint32_t CastorChannelStatus::mStatus [private] |
Definition at line 76 of file CastorChannelStatus.h.
Referenced by CastorChannelStatus(), getValue(), isBitSet(), setBit(), setValue(), and unsetBit().