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::SiPixelRawDataError ( )

Default constructor.

Definition at line 15 of file SiPixelRawDataError.cc.

15 {}
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.

References setMessage().

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.

References setMessage().

SiPixelRawDataError::~SiPixelRawDataError ( )

Destructor.

Definition at line 29 of file SiPixelRawDataError.cc.

29 {}

Member Function Documentation

int SiPixelRawDataError::getFedId ( ) const
inline

Definition at line 43 of file SiPixelRawDataError.h.

References fedId_.

Referenced by operator<().

43 { return fedId_; } // the fedId where the error occured
std::string SiPixelRawDataError::getMessage ( ) const
inline

Definition at line 44 of file SiPixelRawDataError.h.

References errorMessage_.

44 { return errorMessage_; } // the error message to be displayed with the error
int SiPixelRawDataError::getType ( ) const
inline
cms_uint32_t SiPixelRawDataError::getWord32 ( ) const
inline

Definition at line 38 of file SiPixelRawDataError.h.

References errorWord32_.

38 { return errorWord32_; } // the 32-bit word that contains the error information
cms_uint64_t SiPixelRawDataError::getWord64 ( ) const
inline

Definition at line 39 of file SiPixelRawDataError.h.

References errorWord64_.

39 { return errorWord64_; } // the 64-bit word that contains the error information
void SiPixelRawDataError::setFedId ( int  fedId)
void SiPixelRawDataError::setMessage ( )

Definition at line 44 of file SiPixelRawDataError.cc.

References errorMessage_, and errorType_.

Referenced by setType(), and SiPixelRawDataError().

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 }
void SiPixelRawDataError::setType ( int  errorType)

Definition at line 37 of file SiPixelRawDataError.cc.

References errorType_, and setMessage().

37  {
38  errorType_ = errorType;
39  setMessage();
40 }
void SiPixelRawDataError::setWord32 ( cms_uint32_t  errorWord32)

Definition at line 33 of file SiPixelRawDataError.cc.

References errorWord32_.

33 { errorWord32_ = errorWord32; }
void SiPixelRawDataError::setWord64 ( cms_uint64_t  errorWord64)

Definition at line 35 of file SiPixelRawDataError.cc.

References errorWord64_.

35 { errorWord64_ = errorWord64; }

Member Data Documentation

std::string SiPixelRawDataError::errorMessage_
private

Definition at line 51 of file SiPixelRawDataError.h.

Referenced by getMessage(), and setMessage().

int SiPixelRawDataError::errorType_
private

Definition at line 49 of file SiPixelRawDataError.h.

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

cms_uint32_t SiPixelRawDataError::errorWord32_
private

Definition at line 47 of file SiPixelRawDataError.h.

Referenced by getWord32(), and setWord32().

cms_uint64_t SiPixelRawDataError::errorWord64_
private

Definition at line 48 of file SiPixelRawDataError.h.

Referenced by getWord64(), and setWord64().

int SiPixelRawDataError::fedId_
private

Definition at line 50 of file SiPixelRawDataError.h.

Referenced by getFedId(), and setFedId().