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 class SiPixelFedCabling;
18 
19 class ErrorChecker {
20 
21 public:
22 // typedef unsigned int Word32;
23 // typedef long long Word64;
26 
27  typedef std::vector<SiPixelRawDataError> DetErrors;
28  typedef std::map<cms_uint32_t, DetErrors> Errors;
29 
30  ErrorChecker();
31 
32  void setErrorStatus(bool ErrorStatus);
33 
34  bool checkCRC(bool& errorsInEvent, int fedId, const Word64* trailer, Errors& errors);
35 
36  bool checkHeader(bool& errorsInEvent, int fedId, const Word64* header, Errors& errors);
37 
38  bool checkTrailer(bool& errorsInEvent, int fedId, int nWords, const Word64* trailer, Errors& errors);
39 
40  bool checkROC(bool& errorsInEvent, int fedId, const SiPixelFrameConverter* converter,
41  const SiPixelFedCabling* theCablingTree,
42  Word32& errorWord, Errors& errors);
43 
44 
45 
47  int status, Word32& errorWord, Errors& errors);
48 
49 private:
50 
52 
54  int errorType, const Word32 & word) const;
55 
56 };
57 
58 #endif
cms_uint32_t Word32
Definition: ErrorChecker.h:24
std::vector< SiPixelRawDataError > DetErrors
Definition: ErrorChecker.h:27
bool checkTrailer(bool &errorsInEvent, int fedId, int nWords, const Word64 *trailer, Errors &errors)
Definition: ErrorChecker.cc:89
bool includeErrors
Definition: ErrorChecker.h:51
cms_uint64_t Word64
Definition: ErrorChecker.h:25
cms_uint32_t errorDetId(const SiPixelFrameConverter *converter, int errorType, const Word32 &word) const
bool checkROC(bool &errorsInEvent, int fedId, const SiPixelFrameConverter *converter, const SiPixelFedCabling *theCablingTree, Word32 &errorWord, Errors &errors)
std::map< cms_uint32_t, DetErrors > Errors
Definition: ErrorChecker.h:28
bool checkCRC(bool &errorsInEvent, int fedId, const Word64 *trailer, Errors &errors)
Definition: ErrorChecker.cc:58
void setErrorStatus(bool ErrorStatus)
Definition: ErrorChecker.cc:53
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:71