CMS 3D CMS Logo

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,
31  int status,
32  Word32& errorWord,
34 
35  virtual bool checkROC(bool& errorsInEvent,
36  int fedId,
38  const SiPixelFedCabling* theCablingTree,
39  Word32& errorWord,
40  SiPixelFormatterErrors& errors) const = 0;
41 
42 protected:
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
void conversionError(int fedId, const SiPixelFrameConverter *converter, int status, Word32 &errorWord, SiPixelFormatterErrors &errors) const
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
uint64_t word
void setErrorStatus(bool ErrorStatus)
cms_uint32_t Word32
bool checkHeader(bool &errorsInEvent, int fedId, const Word64 *header, SiPixelFormatterErrors &errors) const
bool checkTrailer(bool &errorsInEvent, int fedId, unsigned int nWords, const Word64 *trailer, SiPixelFormatterErrors &errors) const
virtual ~ErrorCheckerBase()=default
unsigned int cms_uint32_t
Definition: typedefs.h:15
bool checkCRC(bool &errorsInEvent, int fedId, const Word64 *trailer, SiPixelFormatterErrors &errors) const
int getConversionErrorTypeAndIssueLogMessage(int status, int fedId) const
Definition: errors.py:1
std::map< cms_uint32_t, std::vector< SiPixelRawDataError > > SiPixelFormatterErrors
cms_uint64_t Word64
void addErrorToCollectionDummy(int errorType, int fedId, Word64 word, SiPixelFormatterErrors &errors) const