CMS 3D CMS Logo

pos::PixelROCStatus Class Reference

This class implements.. More...

#include <interface/PixelROCStatus.h>

List of all members.

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_


Detailed Description

This class implements..

A longer explanation will be placed here later

Definition at line 20 of file PixelROCStatus.h.


Member Enumeration Documentation

enum pos::PixelROCStatus::ROCstatus

Enumerator:
off 
noHits 
noInit 
nStatus 

Definition at line 30 of file PixelROCStatus.h.

00030 {off=0, noHits, noInit, nStatus};


Constructor & Destructor Documentation

PixelROCStatus::PixelROCStatus (  ) 

Definition at line 18 of file PixelROCStatus.cc.

00018                               :
00019   bits_(0)
00020 {}

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 35 of file PixelROCStatus.cc.

00035 {}


Member Function Documentation

void PixelROCStatus::clear ( ROCstatus  stat  ) 

Definition at line 44 of file PixelROCStatus.cc.

References bits_.

Referenced by set().

00044                                         {
00045   bits_=bits_&(0<<stat);
00046 }

bool PixelROCStatus::get ( ROCstatus  stat  )  const

Definition at line 66 of file PixelROCStatus.cc.

References bits_.

Referenced by pos::PixelDetectorConfig::PixelDetectorConfig().

00066                                             {
00067   return bits_&(1<<stat);
00068 }

void PixelROCStatus::reset ( void   ) 

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  ) 

void PixelROCStatus::set ( ROCstatus  stat,
bool  mode 
)

Definition at line 55 of file PixelROCStatus.cc.

References clear(), and reset().

00055                                                  {
00056   reset() ;
00057   if (mode) {
00058     set(stat);
00059   }
00060   else{
00061     clear(stat);
00062   }
00063 }

void PixelROCStatus::set ( ROCstatus  stat  ) 

Definition at line 38 of file PixelROCStatus.cc.

References bits_, and reset().

Referenced by pos::PixelDetectorConfig::PixelDetectorConfig(), and pos::PixelDetectorConfig::removeROC().

00038                                       {
00039   reset() ;
00040   bits_=bits_|(1<<stat);
00041 }

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

Definition at line 71 of file PixelROCStatus.cc.

References noHits, noInit, and off.

00071                                                      {
00072   if (stat==off) return "off";
00073   if (stat==noHits) return "noHits";
00074   if (stat==noInit) return "noInit";
00075   assert(0);
00076   return "";
00077 }


Member Data Documentation

uint32_t pos::PixelROCStatus::bits_ [private]

Definition at line 25 of file PixelROCStatus.h.

Referenced by clear(), get(), reset(), and set().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:50:37 2009 for CMSSW by  doxygen 1.5.4