CMS 3D CMS Logo

ErrorChecker.h
Go to the documentation of this file.
1 #ifndef ErrorChecker_H
2 #define ErrorChecker_H
3 
10 
12 public:
15 
16  typedef std::vector<SiPixelRawDataError> DetErrors;
17  typedef std::map<cms_uint32_t, DetErrors> Errors;
18 
19  ErrorChecker();
20 
21  void setErrorStatus(bool ErrorStatus) override;
22 
23  bool checkCRC(bool& errorsInEvent, int fedId, const Word64* trailer, Errors& errors) override;
24 
25  bool checkHeader(bool& errorsInEvent, int fedId, const Word64* header, Errors& errors) override;
26 
27  bool checkTrailer(bool& errorsInEvent, int fedId, unsigned int nWords, const Word64* trailer, Errors& errors) override;
28 
29  bool checkROC(bool& errorsInEvent,
30  int fedId,
32  const SiPixelFedCabling* theCablingTree,
33  Word32& errorWord,
34  Errors& errors) override;
35 
36  void conversionError(
37  int fedId, const SiPixelFrameConverter* converter, int status, Word32& errorWord, Errors& errors) override;
38 
39 private:
41 
42  cms_uint32_t errorDetId(const SiPixelFrameConverter* converter, int errorType, const Word32& word) const override;
43 };
44 
45 #endif
cms_uint32_t Word32
Definition: ErrorChecker.h:13
std::vector< SiPixelRawDataError > DetErrors
Definition: ErrorChecker.h:16
bool includeErrors
Definition: ErrorChecker.h:40
cms_uint64_t Word64
Definition: ErrorChecker.h:14
std::map< cms_uint32_t, DetErrors > Errors
Definition: ErrorChecker.h:17
uint64_t word
unsigned int cms_uint32_t
Definition: typedefs.h:15
bool checkROC(bool &errorsInEvent, int fedId, const SiPixelFrameConverter *converter, const SiPixelFedCabling *theCablingTree, Word32 &errorWord, Errors &errors) override
bool checkCRC(bool &errorsInEvent, int fedId, const Word64 *trailer, Errors &errors) override
Definition: ErrorChecker.cc:50
bool checkHeader(bool &errorsInEvent, int fedId, const Word64 *header, Errors &errors) override
Definition: ErrorChecker.cc:63
cms_uint32_t errorDetId(const SiPixelFrameConverter *converter, int errorType, const Word32 &word) const override
Definition: errors.py:1
bool checkTrailer(bool &errorsInEvent, int fedId, unsigned int nWords, const Word64 *trailer, Errors &errors) override
Definition: ErrorChecker.cc:80
unsigned long long cms_uint64_t
Definition: typedefs.h:17
void setErrorStatus(bool ErrorStatus) override
Definition: ErrorChecker.cc:48
void conversionError(int fedId, const SiPixelFrameConverter *converter, int status, Word32 &errorWord, Errors &errors) override