CMS 3D CMS Logo

ErrorCheckerBase.h
Go to the documentation of this file.
1 #ifndef ErrorCheckerBase_H
2 #define ErrorCheckerBase_H
3 
9 
10 #include <vector>
11 #include <map>
12 
14 class SiPixelFedCabling;
15 
17 public:
20 
21  typedef std::vector<SiPixelRawDataError> DetErrors;
22  typedef std::map<cms_uint32_t, DetErrors> Errors;
23 
24  virtual ~ErrorCheckerBase(){};
25 
26  virtual void setErrorStatus(bool ErrorStatus) = 0;
27 
28  virtual bool checkCRC(bool& errorsInEvent, int fedId, const Word64* trailer, Errors& errors) = 0;
29 
30  virtual bool checkHeader(bool& errorsInEvent, int fedId, const Word64* header, Errors& errors) = 0;
31 
32  virtual bool checkTrailer(
33  bool& errorsInEvent, int fedId, unsigned int nWords, const Word64* trailer, Errors& errors) = 0;
34 
35  virtual bool checkROC(bool& errorsInEvent,
36  int fedId,
38  const SiPixelFedCabling* theCablingTree,
39  Word32& errorWord,
40  Errors& errors) = 0;
41 
42  virtual void conversionError(
43  int fedId, const SiPixelFrameConverter* converter, int status, Word32& errorWord, Errors& errors) = 0;
44 
45 private:
46  virtual cms_uint32_t errorDetId(const SiPixelFrameConverter* converter, int errorType, const Word32& word) const = 0;
47 };
48 
49 #endif
virtual cms_uint32_t errorDetId(const SiPixelFrameConverter *converter, int errorType, const Word32 &word) const =0
virtual ~ErrorCheckerBase()
uint64_t word
virtual void setErrorStatus(bool ErrorStatus)=0
virtual bool checkTrailer(bool &errorsInEvent, int fedId, unsigned int nWords, const Word64 *trailer, Errors &errors)=0
cms_uint32_t Word32
unsigned int cms_uint32_t
Definition: typedefs.h:15
virtual bool checkCRC(bool &errorsInEvent, int fedId, const Word64 *trailer, Errors &errors)=0
std::map< cms_uint32_t, DetErrors > Errors
cms_uint64_t Word64
std::vector< SiPixelRawDataError > DetErrors
virtual bool checkROC(bool &errorsInEvent, int fedId, const SiPixelFrameConverter *converter, const SiPixelFedCabling *theCablingTree, Word32 &errorWord, Errors &errors)=0
virtual bool checkHeader(bool &errorsInEvent, int fedId, const Word64 *header, Errors &errors)=0
virtual void conversionError(int fedId, const SiPixelFrameConverter *converter, int status, Word32 &errorWord, Errors &errors)=0
Definition: errors.py:1
unsigned long long cms_uint64_t
Definition: typedefs.h:17