CMS 3D CMS Logo

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

Pixel error – collection of errors and error information. More...

#include <SiPixelRawDataError.h>

Public Member Functions

int getFedId () const
 
std::string getMessage () const
 
int getType () const
 
cms_uint32_t getWord32 () const
 
cms_uint64_t getWord64 () const
 
void setFedId (int fedId)
 
void setMessage ()
 
void setType (int errorType)
 
void setWord32 (cms_uint32_t errorWord32)
 
void setWord64 (cms_uint64_t errorWord64)
 
 SiPixelRawDataError ()
 Default constructor. More...
 
 SiPixelRawDataError (cms_uint32_t errorWord32, const int errorType, int fedId)
 Constructor for 32-bit error word. More...
 
 SiPixelRawDataError (cms_uint64_t errorWord64, const int errorType, int fedId)
 Constructor with 64-bit error word and type included (header or trailer word) More...
 
 ~SiPixelRawDataError ()
 Destructor. More...
 

Private Attributes

std::string errorMessage_
 
int errorType_
 
cms_uint32_t errorWord32_
 
cms_uint64_t errorWord64_
 
int fedId_
 

Detailed Description

Pixel error – collection of errors and error information.

Class to contain and store all information about errors

Author
Andrew York, University of Tennessee

Definition at line 19 of file SiPixelRawDataError.h.

Constructor & Destructor Documentation

◆ SiPixelRawDataError() [1/3]

SiPixelRawDataError::SiPixelRawDataError ( )

Default constructor.

Definition at line 15 of file SiPixelRawDataError.cc.

15 {}

◆ SiPixelRawDataError() [2/3]

SiPixelRawDataError::SiPixelRawDataError ( cms_uint32_t  errorWord32,
const int  errorType,
int  fedId 
)

Constructor for 32-bit error word.

Definition at line 17 of file SiPixelRawDataError.cc.

18  : errorWord32_(errorWord32), errorType_(errorType), fedId_(fedId) {
19  setMessage();
20 }

References setMessage().

◆ SiPixelRawDataError() [3/3]

SiPixelRawDataError::SiPixelRawDataError ( cms_uint64_t  errorWord64,
const int  errorType,
int  fedId 
)

Constructor with 64-bit error word and type included (header or trailer word)

Definition at line 22 of file SiPixelRawDataError.cc.

23  : errorWord64_(errorWord64), errorType_(errorType), fedId_(fedId) {
24  setMessage();
25 }

References setMessage().

◆ ~SiPixelRawDataError()

SiPixelRawDataError::~SiPixelRawDataError ( )

Destructor.

Definition at line 29 of file SiPixelRawDataError.cc.

29 {}

Member Function Documentation

◆ getFedId()

int SiPixelRawDataError::getFedId ( ) const
inline

Definition at line 43 of file SiPixelRawDataError.h.

43 { return fedId_; } // the fedId where the error occured

References fedId_.

Referenced by operator<().

◆ getMessage()

std::string SiPixelRawDataError::getMessage ( ) const
inline

Definition at line 44 of file SiPixelRawDataError.h.

44 { return errorMessage_; } // the error message to be displayed with the error

References errorMessage_.

◆ getType()

int SiPixelRawDataError::getType ( ) const
inline

Definition at line 40 of file SiPixelRawDataError.h.

40  {
41  return errorType_;
42  } // the number associated with the error type (26-31 for ROC number errors, 32-33 for calibration errors)

References errorType_.

◆ getWord32()

cms_uint32_t SiPixelRawDataError::getWord32 ( ) const
inline

Definition at line 38 of file SiPixelRawDataError.h.

38 { return errorWord32_; } // the 32-bit word that contains the error information

References errorWord32_.

◆ getWord64()

cms_uint64_t SiPixelRawDataError::getWord64 ( ) const
inline

Definition at line 39 of file SiPixelRawDataError.h.

39 { return errorWord64_; } // the 64-bit word that contains the error information

References errorWord64_.

◆ setFedId()

void SiPixelRawDataError::setFedId ( int  fedId)

Definition at line 42 of file SiPixelRawDataError.cc.

42 { fedId_ = fedId; }

References l1tstage2_dqm_sourceclient-live_cfg::fedId, and fedId_.

◆ setMessage()

void SiPixelRawDataError::setMessage ( )

Definition at line 44 of file SiPixelRawDataError.cc.

44  {
45  switch (errorType_) {
46  case (25): {
47  errorMessage_ = "Error: Disabled FED channel (ROC=25)";
48  break;
49  }
50  case (26): {
51  errorMessage_ = "Error: Gap word";
52  break;
53  }
54  case (27): {
55  errorMessage_ = "Error: Dummy word";
56  break;
57  }
58  case (28): {
59  errorMessage_ = "Error: FIFO nearly full";
60  break;
61  }
62  case (29): {
63  errorMessage_ = "Error: Timeout";
64  break;
65  }
66  case (30): {
67  errorMessage_ = "Error: Trailer";
68  break;
69  }
70  case (31): {
71  errorMessage_ = "Error: Event number mismatch";
72  break;
73  }
74  case (32): {
75  errorMessage_ = "Error: Invalid or missing header";
76  break;
77  }
78  case (33): {
79  errorMessage_ = "Error: Invalid or missing trailer";
80  break;
81  }
82  case (34): {
83  errorMessage_ = "Error: Size mismatch";
84  break;
85  }
86  case (35): {
87  errorMessage_ = "Error: Invalid channel";
88  break;
89  }
90  case (36): {
91  errorMessage_ = "Error: Invalid ROC number";
92  break;
93  }
94  case (37): {
95  errorMessage_ = "Error: Invalid dcol/pixel address";
96  break;
97  }
98  default:
99  errorMessage_ = "Error: Unknown error type";
100  };
101 }

References errorMessage_, and errorType_.

Referenced by setType(), and SiPixelRawDataError().

◆ setType()

void SiPixelRawDataError::setType ( int  errorType)

Definition at line 37 of file SiPixelRawDataError.cc.

37  {
38  errorType_ = errorType;
39  setMessage();
40 }

References errorType_, and setMessage().

◆ setWord32()

void SiPixelRawDataError::setWord32 ( cms_uint32_t  errorWord32)

Definition at line 33 of file SiPixelRawDataError.cc.

33 { errorWord32_ = errorWord32; }

References errorWord32_.

◆ setWord64()

void SiPixelRawDataError::setWord64 ( cms_uint64_t  errorWord64)

Definition at line 35 of file SiPixelRawDataError.cc.

35 { errorWord64_ = errorWord64; }

References errorWord64_.

Member Data Documentation

◆ errorMessage_

std::string SiPixelRawDataError::errorMessage_
private

Definition at line 51 of file SiPixelRawDataError.h.

Referenced by getMessage(), and setMessage().

◆ errorType_

int SiPixelRawDataError::errorType_
private

Definition at line 49 of file SiPixelRawDataError.h.

Referenced by getType(), setMessage(), and setType().

◆ errorWord32_

cms_uint32_t SiPixelRawDataError::errorWord32_
private

Definition at line 47 of file SiPixelRawDataError.h.

Referenced by getWord32(), and setWord32().

◆ errorWord64_

cms_uint64_t SiPixelRawDataError::errorWord64_
private

Definition at line 48 of file SiPixelRawDataError.h.

Referenced by getWord64(), and setWord64().

◆ fedId_

int SiPixelRawDataError::fedId_
private

Definition at line 50 of file SiPixelRawDataError.h.

Referenced by getFedId(), and setFedId().

SiPixelRawDataError::errorWord64_
cms_uint64_t errorWord64_
Definition: SiPixelRawDataError.h:48
SiPixelRawDataError::errorWord32_
cms_uint32_t errorWord32_
Definition: SiPixelRawDataError.h:47
SiPixelRawDataError::errorMessage_
std::string errorMessage_
Definition: SiPixelRawDataError.h:51
SiPixelRawDataError::errorType_
int errorType_
Definition: SiPixelRawDataError.h:49
SiPixelRawDataError::fedId_
int fedId_
Definition: SiPixelRawDataError.h:50
SiPixelRawDataError::setMessage
void setMessage()
Definition: SiPixelRawDataError.cc:44
l1tstage2_dqm_sourceclient-live_cfg.fedId
fedId
Definition: l1tstage2_dqm_sourceclient-live_cfg.py:82