CMS 3D CMS Logo

ErrorCheckerBase.h
Go to the documentation of this file.
1 #ifndef EventFilter_SiPixelRawToDigi_interface_ErrorCheckerBase_h
2 #define EventFilter_SiPixelRawToDigi_interface_ErrorCheckerBase_h
3 
10 
12 class SiPixelFedCabling;
13 
15 public:
17 
18  virtual ~ErrorCheckerBase() = default;
19 
20  void setErrorStatus(bool ErrorStatus);
21 
22  bool checkCRC(bool& errorsInEvent, int fedId, const Word64* trailer, SiPixelFormatterErrors& errors) const;
23 
24  bool checkHeader(bool& errorsInEvent, int fedId, const Word64* header, SiPixelFormatterErrors& errors) const;
25 
26  bool checkTrailer(
27  bool& errorsInEvent, int fedId, unsigned int nWords, const Word64* trailer, SiPixelFormatterErrors& errors) const;
28 
29  void conversionError(int fedId,
31  int status,
32  Word32& errorWord,
34 
35  virtual bool checkROC(bool& errorsInEvent,
36  int fedId,
38  const SiPixelFedCabling* theCablingTree,
39  Word32& errorWord,
40  SiPixelFormatterErrors& errors) const = 0;
41 
42 protected:
45  void addErrorToCollectionDummy(int errorType, int fedId, Word64 word, SiPixelFormatterErrors& errors) const;
46  virtual cms_uint32_t errorDetId(const SiPixelFrameConverter* converter, int errorType, const Word32& word) const = 0;
47 };
48 
49 #endif // EventFilter_SiPixelRawToDigi_interface_ErrorCheckerBase_h
cms_uint32_t
unsigned int cms_uint32_t
Definition: typedefs.h:15
ErrorCheckerBase::includeErrors_
bool includeErrors_
Definition: ErrorCheckerBase.h:43
ErrorCheckerBase::addErrorToCollectionDummy
void addErrorToCollectionDummy(int errorType, int fedId, Word64 word, SiPixelFormatterErrors &errors) const
Definition: ErrorCheckerBase.cc:25
SiPixelFormatterErrors.h
mps_update.status
status
Definition: mps_update.py:68
converter
Definition: CandidateProducer.h:25
ErrorCheckerBase::setErrorStatus
void setErrorStatus(bool ErrorStatus)
Definition: ErrorCheckerBase.cc:23
SiPixelFedCabling
Definition: SiPixelFedCabling.h:10
word
uint64_t word
Definition: CTPPSTotemDataFormatter.cc:29
ErrorCheckerBase::checkTrailer
bool checkTrailer(bool &errorsInEvent, int fedId, unsigned int nWords, const Word64 *trailer, SiPixelFormatterErrors &errors) const
Definition: ErrorCheckerBase.cc:64
errors
Definition: errors.py:1
Word64
cms_uint64_t Word64
Definition: SiPixelDigiConstants.h:7
ErrorCheckerBase::errorDetId
virtual cms_uint32_t errorDetId(const SiPixelFrameConverter *converter, int errorType, const Word32 &word) const =0
ErrorCheckerBase::getConversionErrorTypeAndIssueLogMessage
int getConversionErrorTypeAndIssueLogMessage(int status, int fedId) const
Definition: ErrorCheckerBase.cc:97
ErrorCheckerBase::checkHeader
bool checkHeader(bool &errorsInEvent, int fedId, const Word64 *header, SiPixelFormatterErrors &errors) const
Definition: ErrorCheckerBase.cc:47
ErrorCheckerBase
Definition: ErrorCheckerBase.h:14
ErrorCheckerBase::conversionError
void conversionError(int fedId, const SiPixelFrameConverter *converter, int status, Word32 &errorWord, SiPixelFormatterErrors &errors) const
Definition: ErrorCheckerBase.cc:83
ErrorCheckerBase::~ErrorCheckerBase
virtual ~ErrorCheckerBase()=default
ErrorCheckerBase::checkROC
virtual bool checkROC(bool &errorsInEvent, int fedId, const SiPixelFrameConverter *converter, const SiPixelFedCabling *theCablingTree, Word32 &errorWord, SiPixelFormatterErrors &errors) const =0
ErrorCheckerBase::ErrorCheckerBase
ErrorCheckerBase()
Definition: ErrorCheckerBase.cc:21
SiPixelFrameConverter
Definition: SiPixelFrameConverter.h:15
l1tstage2_dqm_sourceclient-live_cfg.fedId
fedId
Definition: l1tstage2_dqm_sourceclient-live_cfg.py:89
Word32
cms_uint32_t Word32
Definition: SiPixelDigiConstants.h:8
SiPixelDigiConstants.h
SiPixelFormatterErrors
std::map< cms_uint32_t, std::vector< SiPixelRawDataError > > SiPixelFormatterErrors
Definition: SiPixelFormatterErrors.h:10
RecoTauValidation_cfi.header
header
Definition: RecoTauValidation_cfi.py:291
ErrorCheckerBase::checkCRC
bool checkCRC(bool &errorsInEvent, int fedId, const Word64 *trailer, SiPixelFormatterErrors &errors) const
Definition: ErrorCheckerBase.cc:35