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
cms_uint32_t
unsigned int cms_uint32_t
Definition: typedefs.h:15
ErrorCheckerBase::checkROC
virtual bool checkROC(bool &errorsInEvent, int fedId, const SiPixelFrameConverter *converter, const SiPixelFedCabling *theCablingTree, Word32 &errorWord, Errors &errors)=0
mps_update.status
status
Definition: mps_update.py:69
converter
Definition: CandidateProducer.h:25
ErrorCheckerBase::checkHeader
virtual bool checkHeader(bool &errorsInEvent, int fedId, const Word64 *header, Errors &errors)=0
SiPixelFedCabling
Definition: SiPixelFedCabling.h:10
ErrorCheckerBase::Word32
cms_uint32_t Word32
Definition: ErrorCheckerBase.h:18
word
uint64_t word
Definition: CTPPSTotemDataFormatter.cc:29
ErrorCheckerBase::setErrorStatus
virtual void setErrorStatus(bool ErrorStatus)=0
errors
Definition: errors.py:1
ErrorCheckerBase::errorDetId
virtual cms_uint32_t errorDetId(const SiPixelFrameConverter *converter, int errorType, const Word32 &word) const =0
ErrorCheckerBase::checkCRC
virtual bool checkCRC(bool &errorsInEvent, int fedId, const Word64 *trailer, Errors &errors)=0
ErrorCheckerBase
Definition: ErrorCheckerBase.h:16
Word64
uint64_t Word64
Definition: RPCUnpackingModule.cc:38
ErrorCheckerBase::checkTrailer
virtual bool checkTrailer(bool &errorsInEvent, int fedId, unsigned int nWords, const Word64 *trailer, Errors &errors)=0
cms_uint64_t
unsigned long long cms_uint64_t
Definition: typedefs.h:17
SiPixelFrameConverter
Definition: SiPixelFrameConverter.h:15
l1tstage2_dqm_sourceclient-live_cfg.fedId
fedId
Definition: l1tstage2_dqm_sourceclient-live_cfg.py:88
ErrorCheckerBase::Word64
cms_uint64_t Word64
Definition: ErrorCheckerBase.h:19
ErrorCheckerBase::DetErrors
std::vector< SiPixelRawDataError > DetErrors
Definition: ErrorCheckerBase.h:21
SiPixelRawDataError.h
ErrorCheckerBase::Errors
std::map< cms_uint32_t, DetErrors > Errors
Definition: ErrorCheckerBase.h:22
RecoTauValidation_cfi.header
header
Definition: RecoTauValidation_cfi.py:292
ErrorCheckerBase::conversionError
virtual void conversionError(int fedId, const SiPixelFrameConverter *converter, int status, Word32 &errorWord, Errors &errors)=0
ErrorCheckerBase::~ErrorCheckerBase
virtual ~ErrorCheckerBase()
Definition: ErrorCheckerBase.h:24