#include <interface/PixelROCStatus.h>
Public Types | |
enum | ROCstatus { off = 0, noHits, noInit, nStatus } |
Public Member Functions | |
void | clear (ROCstatus stat) |
bool | get (ROCstatus stat) const |
PixelROCStatus (const std::set< ROCstatus > &stat) | |
PixelROCStatus () | |
void | reset (void) |
void | set (const std::string &statName) |
void | set (ROCstatus stat, bool mode) |
void | set (ROCstatus stat) |
std::string | statusName () const |
std::string | statusName (ROCstatus stat) const |
virtual | ~PixelROCStatus () |
Private Attributes | |
uint32_t | bits_ |
A longer explanation will be placed here later
Definition at line 20 of file PixelROCStatus.h.
PixelROCStatus::PixelROCStatus | ( | ) |
PixelROCStatus::PixelROCStatus | ( | const std::set< ROCstatus > & | stat | ) |
Definition at line 24 of file PixelROCStatus.cc.
References i.
00024 { 00025 00026 std::set<ROCstatus>::const_iterator i=stat.begin(); 00027 00028 for(;i!=stat.end();++i){ 00029 set(*i); 00030 } 00031 00032 }
PixelROCStatus::~PixelROCStatus | ( | ) | [virtual] |
Definition at line 66 of file PixelROCStatus.cc.
References bits_.
Referenced by pos::PixelDetectorConfig::PixelDetectorConfig().
00066 { 00067 return bits_&(1<<stat); 00068 }
Definition at line 50 of file PixelROCStatus.cc.
References bits_.
Referenced by pos::PixelDetectorConfig::addROC(), and set().
00050 { 00051 bits_=0; 00052 }
void pos::PixelROCStatus::set | ( | const std::string & | statName | ) |
Definition at line 38 of file PixelROCStatus.cc.
References bits_, and reset().
Referenced by pos::PixelDetectorConfig::PixelDetectorConfig(), and pos::PixelDetectorConfig::removeROC().
string PixelROCStatus::statusName | ( | ) | const |
Definition at line 81 of file PixelROCStatus.cc.
References nStatus, off, and HLT_VtxMuL3::result.
00081 { 00082 string result = "" ; 00083 for (ROCstatus istat=off; istat!=nStatus; istat=ROCstatus(istat+1)) 00084 { 00085 if (get(istat)) 00086 { 00087 result += statusName(istat) ; 00088 } 00089 } 00090 return result ; 00091 }
string PixelROCStatus::statusName | ( | ROCstatus | stat | ) | const |
uint32_t pos::PixelROCStatus::bits_ [private] |