CMS 3D CMS Logo

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

This class implements.. More...

#include "interface/PixelROCStatus.h"

Public Types

enum  ROCstatus {
  off =0, noHits, noInit, noAnalogSignal,
  nStatus
}
 

Public Member Functions

void clear (ROCstatus stat)
 
bool get (ROCstatus stat) const
 
 PixelROCStatus ()
 
 PixelROCStatus (const std::set< ROCstatus > &stat)
 
void reset (void)
 
void set (ROCstatus stat)
 
void set (ROCstatus stat, bool mode)
 
void set (const std::string &statName)
 
std::string statusName (ROCstatus stat) const
 
std::string statusName () 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

Constructor & Destructor Documentation

PixelROCStatus::PixelROCStatus ( )

Definition at line 19 of file PixelROCStatus.cc.

19  :
20  bits_(0)
21 {}
PixelROCStatus::PixelROCStatus ( const std::set< ROCstatus > &  stat)

Definition at line 25 of file PixelROCStatus.cc.

References i, and set().

25  {
26 
27  std::set<ROCstatus>::const_iterator i=stat.begin();
28 
29  for(;i!=stat.end();++i){
30  set(*i);
31  }
32 
33 }
int i
Definition: DBlmapReader.cc:9
void set(ROCstatus stat)
PixelROCStatus::~PixelROCStatus ( )
virtual

Definition at line 36 of file PixelROCStatus.cc.

36 {}

Member Function Documentation

void PixelROCStatus::clear ( ROCstatus  stat)
bool PixelROCStatus::get ( ROCstatus  stat) const
void PixelROCStatus::reset ( void  )
void PixelROCStatus::set ( ROCstatus  stat)
void PixelROCStatus::set ( ROCstatus  stat,
bool  mode 
)

Definition at line 56 of file PixelROCStatus.cc.

References clear(), reset(), and set().

Referenced by betterConfigParser.BetterConfigParser::getGeneral().

56  {
57  reset() ;
58  if (mode) {
59  set(stat);
60  }
61  else{
62  clear(stat);
63  }
64 }
void set(ROCstatus stat)
void clear(ROCstatus stat)
void pos::PixelROCStatus::set ( const std::string &  statName)
string PixelROCStatus::statusName ( ROCstatus  stat) const

Definition at line 72 of file PixelROCStatus.cc.

References assert(), noAnalogSignal, noHits, noInit, and off.

72  {
73  if (stat==off) return "off";
74  if (stat==noHits) return "noHits";
75  if (stat==noInit) return "noInit";
76  if (stat==noAnalogSignal) return "noAnalogSignal";
77  assert(0);
78  return "";
79 }
assert(m_qm.get())
string PixelROCStatus::statusName ( ) const

Definition at line 83 of file PixelROCStatus.cc.

References nStatus, off, and mps_fire::result.

83  {
84  string result = "" ;
85  for (ROCstatus istat=off; istat!=nStatus; istat=ROCstatus(istat+1))
86  {
87  if (get(istat))
88  {
89  result += statusName(istat) ;
90  }
91  }
92  return result ;
93 }
tuple result
Definition: mps_fire.py:95
std::string statusName() const

Member Data Documentation

uint32_t pos::PixelROCStatus::bits_
private

Definition at line 25 of file PixelROCStatus.h.

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