CMS 3D CMS Logo

PixelROCStatus.h

Go to the documentation of this file.
00001 #ifndef PixelROCStatus_h
00002 #define PixelROCStatus_h
00003 
00009 #include <stdint.h>
00010 #include <set>
00011 #include <string>
00012 
00013 namespace pos{
00014 
00020   class PixelROCStatus {
00021 
00022 
00023   private:
00024 
00025     uint32_t bits_;
00026 
00027   public:
00028 
00029     //Insert new status before nStatus
00030     enum ROCstatus {off=0, noHits, noInit, nStatus};
00031 
00032     PixelROCStatus();
00033     PixelROCStatus(const std::set<ROCstatus>& stat);
00034     virtual ~PixelROCStatus();
00035 
00036     std::string statusName(ROCstatus stat) const;
00037     std::string statusName() const;
00038 
00039     void set(ROCstatus stat);
00040     void clear(ROCstatus stat);
00041     void set(ROCstatus stat, bool mode);
00042     void set(const std::string& statName);
00043     bool get(ROCstatus stat) const ;
00044 
00045     // Added by Dario (March 4th 2008)
00046     void reset(void) ;
00047  
00048   };
00049 }
00050 #endif

Generated on Tue Jun 9 17:25:24 2009 for CMSSW by  doxygen 1.5.4