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 
13 
15 class SiPixelFedCabling;
16 
18 
19 public:
22 
23  typedef std::vector<SiPixelRawDataError> DetErrors;
24  typedef std::map<cms_uint32_t, DetErrors> Errors;
25 
26  virtual ~ErrorCheckerBase() {};
27 
28  virtual void setErrorStatus(bool ErrorStatus)=0;
29 
30  virtual bool checkCRC(bool& errorsInEvent, int fedId, const Word64* trailer, Errors& errors)=0;
31 
32  virtual bool checkHeader(bool& errorsInEvent, int fedId, const Word64* header, Errors& errors)=0;
33 
34  virtual bool checkTrailer(bool& errorsInEvent, int fedId, unsigned int nWords, const Word64* trailer, Errors& errors)=0;
35 
36  virtual bool checkROC(bool& errorsInEvent, int fedId, const SiPixelFrameConverter* converter,
37  const SiPixelFedCabling* theCablingTree,
38  Word32& errorWord, Errors& errors)=0;
39 
40 
41 
42  virtual void conversionError(int fedId, const SiPixelFrameConverter* converter,
43  int status, Word32& errorWord, Errors& errors)=0;
44 
45 private:
46 
47  virtual cms_uint32_t errorDetId(const SiPixelFrameConverter* converter,
48  int errorType, const Word32 & word) const =0;
49 
50 };
51 
52 #endif
virtual cms_uint32_t errorDetId(const SiPixelFrameConverter *converter, int errorType, const Word32 &word) const =0
virtual ~ErrorCheckerBase()
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