CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ErrorCheckerBase.h
Go to the documentation of this file.
1 #ifndef EventFilter_SiPixelRawToDigi_interface_ErrorCheckerBase_h
2 #define EventFilter_SiPixelRawToDigi_interface_ErrorCheckerBase_h
3 
10 
12 class SiPixelFedCabling;
13 
15 public:
17 
18  virtual ~ErrorCheckerBase() = default;
19 
20  void setErrorStatus(bool ErrorStatus);
21 
22  bool checkCRC(bool& errorsInEvent, int fedId, const Word64* trailer, SiPixelFormatterErrors& errors) const;
23 
24  bool checkHeader(bool& errorsInEvent, int fedId, const Word64* header, SiPixelFormatterErrors& errors) const;
25 
26  bool checkTrailer(
27  bool& errorsInEvent, int fedId, unsigned int nWords, const Word64* trailer, SiPixelFormatterErrors& errors) const;
28 
29  void conversionError(int fedId,
30  const SiPixelFrameConverter* converter,
31  int status,
32  Word32& errorWord,
33  SiPixelFormatterErrors& errors) const;
34 
35  virtual bool checkROC(bool& errorsInEvent,
36  int fedId,
37  const SiPixelFrameConverter* converter,
38  const SiPixelFedCabling* theCablingTree,
39  Word32& errorWord,
40  SiPixelFormatterErrors& errors) const = 0;
41 
42 protected:
44  int getConversionErrorTypeAndIssueLogMessage(int status, int fedId) const;
45  void addErrorToCollectionDummy(int errorType, int fedId, Word64 word, SiPixelFormatterErrors& errors) const;
46  virtual cms_uint32_t errorDetId(const SiPixelFrameConverter* converter, int errorType, const Word32& word) const = 0;
47 };
48 
49 #endif // EventFilter_SiPixelRawToDigi_interface_ErrorCheckerBase_h
list status
Definition: mps_update.py:107
virtual cms_uint32_t errorDetId(const SiPixelFrameConverter *converter, int errorType, const Word32 &word) const =0
virtual bool checkROC(bool &errorsInEvent, int fedId, const SiPixelFrameConverter *converter, const SiPixelFedCabling *theCablingTree, Word32 &errorWord, SiPixelFormatterErrors &errors) const =0
bool checkHeader(bool &errorsInEvent, int fedId, const Word64 *header, SiPixelFormatterErrors &errors) const
uint64_t word
void setErrorStatus(bool ErrorStatus)
std::map< cms_uint32_t, std::vector< SiPixelRawDataError >> SiPixelFormatterErrors
cms_uint32_t Word32
virtual ~ErrorCheckerBase()=default
unsigned int cms_uint32_t
Definition: typedefs.h:15
void conversionError(int fedId, const SiPixelFrameConverter *converter, int status, Word32 &errorWord, SiPixelFormatterErrors &errors) const
bool checkCRC(bool &errorsInEvent, int fedId, const Word64 *trailer, SiPixelFormatterErrors &errors) const
int getConversionErrorTypeAndIssueLogMessage(int status, int fedId) const
void addErrorToCollectionDummy(int errorType, int fedId, Word64 word, SiPixelFormatterErrors &errors) const
bool checkTrailer(bool &errorsInEvent, int fedId, unsigned int nWords, const Word64 *trailer, SiPixelFormatterErrors &errors) const
cms_uint64_t Word64