CMS 3D CMS Logo

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