CMS 3D CMS Logo

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

◆ ROCstatus

Constructor & Destructor Documentation

◆ PixelROCStatus() [1/2]

PixelROCStatus::PixelROCStatus ( )

Definition at line 19 of file PixelROCStatus.cc.

19 : bits_(0) {}

◆ PixelROCStatus() [2/2]

PixelROCStatus::PixelROCStatus ( const std::set< ROCstatus > &  stat)

Definition at line 22 of file PixelROCStatus.cc.

References mps_fire::i.

22  {
23  std::set<ROCstatus>::const_iterator i = stat.begin();
24 
25  for (; i != stat.end(); ++i) {
26  set(*i);
27  }
28 }

◆ ~PixelROCStatus()

PixelROCStatus::~PixelROCStatus ( )
virtual

Definition at line 31 of file PixelROCStatus.cc.

31 {}

Member Function Documentation

◆ clear()

void PixelROCStatus::clear ( ROCstatus  stat)

◆ get()

bool PixelROCStatus::get ( ROCstatus  stat) const

◆ reset()

void PixelROCStatus::reset ( void  )

◆ set() [1/3]

void PixelROCStatus::set ( ROCstatus  stat)

◆ set() [2/3]

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

◆ set() [3/3]

void pos::PixelROCStatus::set ( const std::string &  statName)

◆ statusName() [1/2]

string PixelROCStatus::statusName ( ROCstatus  stat) const

Definition at line 60 of file PixelROCStatus.cc.

References cms::cuda::assert(), noAnalogSignal, noHits, noInit, and off.

60  {
61  if (stat == off)
62  return "off";
63  if (stat == noHits)
64  return "noHits";
65  if (stat == noInit)
66  return "noInit";
67  if (stat == noAnalogSignal)
68  return "noAnalogSignal";
69  assert(0);
70  return "";
71 }
assert(be >=bs)

◆ statusName() [2/2]

string PixelROCStatus::statusName ( ) const

Definition at line 75 of file PixelROCStatus.cc.

References nStatus, off, and mps_fire::result.

75  {
76  string result = "";
77  for (ROCstatus istat = off; istat != nStatus; istat = ROCstatus(istat + 1)) {
78  if (get(istat)) {
79  result += statusName(istat);
80  }
81  }
82  return result;
83 }
std::string statusName() const

Member Data Documentation

◆ bits_

uint32_t pos::PixelROCStatus::bits_
private

Definition at line 22 of file PixelROCStatus.h.

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