#include <EcalChannelStatusCode.h>
Public Member Functions | |
EcalChannelStatusCode () | |
EcalChannelStatusCode (const EcalChannelStatusCode &codeStatus) | |
EcalChannelStatusCode (const uint16_t &encodedStatus) | |
uint16_t | getDecodedStatusCode () const |
Return the decoded status, i.e. the value giving the status code. | |
uint16_t | getStatusCode () const |
bool | isHVon () const |
bool | isLVon () const |
EcalChannelStatusCode & | operator= (const EcalChannelStatusCode &rhs) |
void | print (std::ostream &s) const |
~EcalChannelStatusCode () | |
Static Public Attributes | |
static const int | chStatusMask = 0x1F |
static const int | HVbitMask = 0x1<<5 |
static const int | LVbitMask = 0x1<<6 |
Private Attributes | |
uint16_t | status_ |
Author: Paolo Meridiani Created: 14 Nov 2006
Definition at line 18 of file EcalChannelStatusCode.h.
EcalChannelStatusCode::EcalChannelStatusCode | ( | ) |
Author: Paolo Meridiani Created: 14 Nov 2006
Definition at line 9 of file EcalChannelStatusCode.cc.
References status_.
{ status_ = 0; }
EcalChannelStatusCode::EcalChannelStatusCode | ( | const EcalChannelStatusCode & | codeStatus | ) |
Definition at line 13 of file EcalChannelStatusCode.cc.
References status_.
{ status_ = ratio.status_; }
EcalChannelStatusCode::EcalChannelStatusCode | ( | const uint16_t & | encodedStatus | ) | [inline] |
Definition at line 23 of file EcalChannelStatusCode.h.
: status_(encodedStatus) {};
EcalChannelStatusCode::~EcalChannelStatusCode | ( | ) |
Definition at line 17 of file EcalChannelStatusCode.cc.
{ }
uint16_t EcalChannelStatusCode::getDecodedStatusCode | ( | ) | const [inline] |
Return the decoded status, i.e. the value giving the status code.
Definition at line 34 of file EcalChannelStatusCode.h.
References chStatusMask, and status_.
{ return status_&chStatusMask; }
uint16_t EcalChannelStatusCode::getStatusCode | ( | ) | const [inline] |
Definition at line 31 of file EcalChannelStatusCode.h.
References status_.
Referenced by EESelectiveReadoutTask::analyze(), EcalTrivialObjectAnalyzer::analyze(), EcalRecHitsValidation::analyze(), EBSelectiveReadoutTask::analyze(), EcalRecHitProducer::produce(), and EcalRecHitWorkerSimple::run().
{ return status_; }
bool EcalChannelStatusCode::isHVon | ( | ) | const [inline] |
bool EcalChannelStatusCode::isLVon | ( | ) | const [inline] |
EcalChannelStatusCode & EcalChannelStatusCode::operator= | ( | const EcalChannelStatusCode & | rhs | ) |
Definition at line 20 of file EcalChannelStatusCode.cc.
References status_.
void EcalChannelStatusCode::print | ( | std::ostream & | s | ) | const [inline] |
Definition at line 28 of file EcalChannelStatusCode.h.
References status_.
const int EcalChannelStatusCode::chStatusMask = 0x1F [static] |
Definition at line 39 of file EcalChannelStatusCode.h.
Referenced by getDecodedStatusCode().
const int EcalChannelStatusCode::HVbitMask = 0x1<<5 [static] |
Definition at line 40 of file EcalChannelStatusCode.h.
Referenced by isHVon().
const int EcalChannelStatusCode::LVbitMask = 0x1<<6 [static] |
Definition at line 41 of file EcalChannelStatusCode.h.
Referenced by isLVon().
uint16_t EcalChannelStatusCode::status_ [private] |
Definition at line 68 of file EcalChannelStatusCode.h.
Referenced by EcalChannelStatusCode(), getDecodedStatusCode(), getStatusCode(), isHVon(), isLVon(), operator=(), and print().