CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
SiPixelCalibDigiError Class Reference

#include <SiPixelCalibDigiError.h>

Public Member Functions

uint16_t getCol () const
 
uint16_t getErrorType () const
 
uint16_t getRow () const
 
std::string printError () const
 
void setCol (const uint16_t &in)
 
void setErrorType (const uint16_t &in)
 
void setRow (const uint16_t &in)
 
 SiPixelCalibDigiError ()
 
 SiPixelCalibDigiError (uint16_t row, uint16_t col)
 
 SiPixelCalibDigiError (uint16_t row, uint16_t col, uint16_t error)
 
virtual ~SiPixelCalibDigiError ()
 

Private Attributes

uint16_t fCol
 
uint8_t fErrorType
 
uint16_t fRow
 

Detailed Description

Definition at line 16 of file SiPixelCalibDigiError.h.

Constructor & Destructor Documentation

◆ SiPixelCalibDigiError() [1/3]

SiPixelCalibDigiError::SiPixelCalibDigiError ( )
inline

Definition at line 23 of file SiPixelCalibDigiError.h.

23 : fRow(0), fCol(0), fErrorType(0) { ; }

◆ SiPixelCalibDigiError() [2/3]

SiPixelCalibDigiError::SiPixelCalibDigiError ( uint16_t  row,
uint16_t  col 
)
inline

Definition at line 25 of file SiPixelCalibDigiError.h.

25 : fRow(row), fCol(col), fErrorType(0) { ; }

◆ SiPixelCalibDigiError() [3/3]

SiPixelCalibDigiError::SiPixelCalibDigiError ( uint16_t  row,
uint16_t  col,
uint16_t  error 
)
inline

Definition at line 26 of file SiPixelCalibDigiError.h.

26 : fRow(row), fCol(col), fErrorType(error) { ; }

◆ ~SiPixelCalibDigiError()

virtual SiPixelCalibDigiError::~SiPixelCalibDigiError ( )
inlinevirtual

Definition at line 28 of file SiPixelCalibDigiError.h.

28 { ; }

Member Function Documentation

◆ getCol()

uint16_t SiPixelCalibDigiError::getCol ( ) const
inline

Definition at line 37 of file SiPixelCalibDigiError.h.

37 { return fCol; }

References fCol.

◆ getErrorType()

uint16_t SiPixelCalibDigiError::getErrorType ( ) const
inline

Definition at line 40 of file SiPixelCalibDigiError.h.

40 { return fErrorType; }

References fErrorType.

◆ getRow()

uint16_t SiPixelCalibDigiError::getRow ( ) const
inline

Definition at line 34 of file SiPixelCalibDigiError.h.

34 { return fRow; }

References fRow.

◆ printError()

std::string SiPixelCalibDigiError::printError ( ) const

Definition at line 3 of file SiPixelCalibDigiError.cc.

3  {
4  std::string result = "unknown error";
5  switch (fErrorType) {
6  case (1): {
7  result = "arrived at unexpected pattern.";
8  break;
9  }
10  case (2): {
11  result = "pixel is not in pattern at all.";
12  break;
13  }
14  }
15 
16  return result;
17 }

References fErrorType, mps_fire::result, and AlCaHLTBitMon_QueryRunRegistry::string.

◆ setCol()

void SiPixelCalibDigiError::setCol ( const uint16_t &  in)
inline

Definition at line 38 of file SiPixelCalibDigiError.h.

38 { fCol = in; }

References fCol, and recoMuon::in.

◆ setErrorType()

void SiPixelCalibDigiError::setErrorType ( const uint16_t &  in)
inline

Definition at line 41 of file SiPixelCalibDigiError.h.

41 { fErrorType = in; }

References fErrorType, and recoMuon::in.

◆ setRow()

void SiPixelCalibDigiError::setRow ( const uint16_t &  in)
inline

Definition at line 35 of file SiPixelCalibDigiError.h.

35 { fRow = in; }

References fRow, and recoMuon::in.

Member Data Documentation

◆ fCol

uint16_t SiPixelCalibDigiError::fCol
private

Definition at line 19 of file SiPixelCalibDigiError.h.

Referenced by getCol(), and setCol().

◆ fErrorType

uint8_t SiPixelCalibDigiError::fErrorType
private

Definition at line 20 of file SiPixelCalibDigiError.h.

Referenced by getErrorType(), printError(), and setErrorType().

◆ fRow

uint16_t SiPixelCalibDigiError::fRow
private

Definition at line 18 of file SiPixelCalibDigiError.h.

Referenced by getRow(), and setRow().

SiPixelCalibDigiError::fCol
uint16_t fCol
Definition: SiPixelCalibDigiError.h:19
cuy.col
col
Definition: cuy.py:1010
relativeConstraints.error
error
Definition: relativeConstraints.py:53
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
recoMuon::in
Definition: RecoMuonEnumerators.h:6
SiPixelCalibDigiError::fErrorType
uint8_t fErrorType
Definition: SiPixelCalibDigiError.h:20
mps_fire.result
result
Definition: mps_fire.py:311
SiPixelCalibDigiError::fRow
uint16_t fRow
Definition: SiPixelCalibDigiError.h:18