CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Attributes | Private Attributes
EcalChannelStatusCode Class Reference

#include <EcalChannelStatusCode.h>

Public Member Functions

 EcalChannelStatusCode ()
 
 EcalChannelStatusCode (const uint16_t &encodedStatus)
 
uint16_t getDecodedStatusCode () const
 Return the decoded status, i.e. the value giving the status code. More...
 
uint16_t getStatusCode () const
 
bool isHVon () const
 
bool isLVon () const
 
void print (std::ostream &s) const
 

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_
 

Detailed Description

Author: Paolo Meridiani Created: 14 Nov 2006

Id:
EcalChannelStatusCode.h,v 1.3 2011/05/17 08:40:07 argiro Exp

Definition at line 18 of file EcalChannelStatusCode.h.

Constructor & Destructor Documentation

EcalChannelStatusCode::EcalChannelStatusCode ( )
inline

Definition at line 21 of file EcalChannelStatusCode.h.

21 : status_(0){}
EcalChannelStatusCode::EcalChannelStatusCode ( const uint16_t &  encodedStatus)
inline

Definition at line 22 of file EcalChannelStatusCode.h.

22 : status_(encodedStatus) {};

Member Function Documentation

uint16_t EcalChannelStatusCode::getDecodedStatusCode ( ) const
inline

Return the decoded status, i.e. the value giving the status code.

Definition at line 31 of file EcalChannelStatusCode.h.

References chStatusMask, and status_.

uint16_t EcalChannelStatusCode::getStatusCode ( ) const
inline
bool EcalChannelStatusCode::isHVon ( ) const
inline

Definition at line 33 of file EcalChannelStatusCode.h.

References HVbitMask, and status_.

bool EcalChannelStatusCode::isLVon ( ) const
inline

Definition at line 34 of file EcalChannelStatusCode.h.

References LVbitMask, and status_.

void EcalChannelStatusCode::print ( std::ostream &  s) const
inline

Definition at line 26 of file EcalChannelStatusCode.h.

References status_.

26 { s << "status is: " << status_; }

Member Data Documentation

const int EcalChannelStatusCode::chStatusMask = 0x1F
static

Definition at line 36 of file EcalChannelStatusCode.h.

Referenced by getDecodedStatusCode().

const int EcalChannelStatusCode::HVbitMask = 0x1<<5
static

Definition at line 37 of file EcalChannelStatusCode.h.

Referenced by isHVon().

const int EcalChannelStatusCode::LVbitMask = 0x1<<6
static

Definition at line 38 of file EcalChannelStatusCode.h.

Referenced by isLVon().

uint16_t EcalChannelStatusCode::status_
private

Definition at line 65 of file EcalChannelStatusCode.h.

Referenced by getDecodedStatusCode(), getStatusCode(), isHVon(), isLVon(), and print().