CMS 3D CMS Logo

Public Member Functions | Private Attributes

SiPixelRawDataError Class Reference

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

#include <SiPixelRawDataError.h>

List of all members.

Public Member Functions

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

Private Attributes

std::string errorMessage_
int errorType_
uint32_t errorWord32_
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 17 of file SiPixelRawDataError.h.


Constructor & Destructor Documentation

SiPixelRawDataError::SiPixelRawDataError ( )

Default constructor.

Definition at line 15 of file SiPixelRawDataError.cc.

{}
SiPixelRawDataError::SiPixelRawDataError ( uint32_t  errorWord32,
const int  errorType,
int  fedId 
)

Constructor for 32-bit error word.

Definition at line 17 of file SiPixelRawDataError.cc.

References setMessage().

                                                                                             : 
  errorWord32_(errorWord32),
  errorType_(errorType),
  fedId_(fedId)
  {
    setMessage();
  }
SiPixelRawDataError::SiPixelRawDataError ( uint64_t  errorWord64,
const int  errorType,
int  fedId 
)

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

Definition at line 25 of file SiPixelRawDataError.cc.

References setMessage().

                                                                                             : 
  errorWord64_(errorWord64),
  errorType_(errorType),
  fedId_(fedId)
  {
    setMessage();
  }
SiPixelRawDataError::~SiPixelRawDataError ( )

Destructor.

Definition at line 35 of file SiPixelRawDataError.cc.

{}

Member Function Documentation

int SiPixelRawDataError::getFedId ( ) const [inline]

Definition at line 38 of file SiPixelRawDataError.h.

References fedId_.

Referenced by operator<().

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

Definition at line 39 of file SiPixelRawDataError.h.

References errorMessage_.

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

Definition at line 37 of file SiPixelRawDataError.h.

References errorType_.

{return errorType_;}             // the number associated with the error type (26-31 for ROC number errors, 32-33 for calibration errors)
uint32_t SiPixelRawDataError::getWord32 ( ) const [inline]

Definition at line 35 of file SiPixelRawDataError.h.

References errorWord32_.

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

Definition at line 36 of file SiPixelRawDataError.h.

References errorWord64_.

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

Definition at line 52 of file SiPixelRawDataError.cc.

References fedId_.

                                            {
fedId_ = fedId; 
} 
void SiPixelRawDataError::setMessage ( )

Definition at line 56 of file SiPixelRawDataError.cc.

References errorMessage_, and errorType_.

Referenced by setType(), and SiPixelRawDataError().

                                     {
  switch (errorType_) {
    case(25) : {
     errorMessage_ = "Error: ROC=25";
     break;
   }
   case(26) : {
     errorMessage_ = "Error: Gap word";
     break;
   }
   case(27) : {
     errorMessage_ = "Error: Dummy word";
     break;
   }
   case(28) : {
     errorMessage_ = "Error: FIFO nearly full";
     break;
   }
   case(29) : {
     errorMessage_ = "Error: Timeout";
     break;
   }
   case(30) : {
     errorMessage_ = "Error: Trailer";
     break;
   }
   case(31) : {
     errorMessage_ = "Error: Event number mismatch";
     break;
   }
   case(32) : {
     errorMessage_ = "Error: Invalid or missing header";
     break;
   }
   case(33) : {
     errorMessage_ = "Error: Invalid or missing trailer";
     break;
   }
   case(34) : {
     errorMessage_ = "Error: Size mismatch";
     break;
   }
   case(35) : {
     errorMessage_ = "Error: Invalid channel";
     break;
   }
   case(36) : {
     errorMessage_ = "Error: Invalid ROC number";
     break;
   }
   case(37) : {
     errorMessage_ = "Error: Invalid dcol/pixel address";
     break;
   }
   default: errorMessage_ = "Error: Unknown error type";
  };
} 
void SiPixelRawDataError::setType ( int  errorType)

Definition at line 47 of file SiPixelRawDataError.cc.

References errorType_, and setMessage().

                                               {
errorType_ = errorType; 
setMessage();
} 
void SiPixelRawDataError::setWord32 ( uint32_t  errorWord32)

Definition at line 39 of file SiPixelRawDataError.cc.

References errorWord32_.

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

Definition at line 43 of file SiPixelRawDataError.cc.

References errorWord64_.

                                                        {
  errorWord64_ = errorWord64;
}

Member Data Documentation

std::string SiPixelRawDataError::errorMessage_ [private]

Definition at line 47 of file SiPixelRawDataError.h.

Referenced by getMessage(), and setMessage().

Definition at line 45 of file SiPixelRawDataError.h.

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

Definition at line 43 of file SiPixelRawDataError.h.

Referenced by getWord32(), and setWord32().

Definition at line 44 of file SiPixelRawDataError.h.

Referenced by getWord64(), and setWord64().

Definition at line 46 of file SiPixelRawDataError.h.

Referenced by getFedId(), and setFedId().