CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  void conversionError(int fedId, const SiPixelFrameConverter* converter,
43  int status, Word32& errorWord, Errors& errors);
44 
45 private:
47 
49  int errorType, const Word32 & word) const;
50 
51 };
52 
53 #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:46
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)
unsigned long long cms_uint64_t
Definition: typedefs.h:17
tuple status
Definition: ntuplemaker.py:245
bool checkHeader(bool &errorsInEvent, int fedId, const Word64 *header, Errors &errors)
Definition: ErrorChecker.cc:69