CMS 3D CMS Logo

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