|
|
Go to the documentation of this file. 1 #ifndef EventFilter_CSCRawToDigi_CSCDCCExaminer_h
2 #define EventFilter_CSCRawToDigi_CSCDCCExaminer_h
34 std::map<DDUIdType, ExaminerStatusType>
bDDU_ERR;
35 std::map<DDUIdType, ExaminerStatusType>
bDDU_WRN;
38 class OStream :
public std::ostream {
40 class buffer :
public std::streambuf {};
47 void show(
void) { rdbuf(
stream); }
48 void hide(
void) { rdbuf(
null); }
50 void sign(
const char* nm) {
name = nm; }
52 void redirect(std::ostream&
str) {
61 return (*(std::ostream*)
this) <<
name <<
val;
65 OStream(std::ostream&
str) : std::ostream(
str.rdbuf()), buff(),
stream(
str.rdbuf()),
null(&buff),
name(
"") {}
110 inline int scanbuf(
const uint16_t*&
buf, int32_t length, uint16_t sig, uint16_t mask = 0xFFFF);
151 std::map<DDUIdType, std::map<CSCIdType, const uint16_t*> >
dmbBuffers;
153 std::map<DDUIdType, std::map<CSCIdType, uint32_t> >
dmbOffsets;
155 std::map<DDUIdType, std::map<CSCIdType, uint32_t> >
dmbSize;
161 OStream&
output2(
void) {
return CERR; }
164 int32_t
check(
const uint16_t*&
buffer, int32_t length);
228 return std::set<int>();
234 return std::set<int>();
290 std::vector<DDUIdType> DDUs;
291 std::map<DDUIdType, ExaminerStatusType>::const_iterator
item =
bDDU_ERR.begin();
293 DDUs.push_back(
item->first);
323 std::map<DDUIdType, std::map<CSCIdType, uint32_t> >
DMB_size(
void)
const {
return dmbSize; }
const uint16_t * buffer_start
bool error(int num) const
uint32_t DDU_WordsSinceLastTrailer
std::map< CSCIdType, ExaminerStatusType > bCHAMB_PAYLOAD
uint32_t ALCT_WordsSinceLastHeaderZeroSuppressed
std::map< DDUIdType, const uint16_t * > dduBuffers
std::map< CSCIdType, ExaminerStatusType > bCHAMB_WRN
ExaminerStatusType errors(void) const
ExaminerStatusType bSUM_WARNING
uint32_t ALCT_WordsExpected
std::set< CSCIdType > chambersWithError(int num) const
std::map< DDUIdType, ExaminerStatusType > bDDU_ERR
std::map< DDUIdType, ExaminerStatusType > bDDU_WRN
uint32_t TMB_WordsSinceLastHeader
to decode if zero suppression enabled
void checkTriggerHeadersAndTrailers()
DDUIdType dduSourceID(void)
ExaminerStatusType warningsForChamber(CSCIdType chamber) const
uint32_t nWG_round_up
check zero suppression mode
std::map< DDUIdType, std::map< CSCIdType, const uint16_t * > > DMB_block(void) const
void modeDDU(bool enable)
std::map< DDUIdType, uint32_t > dduSize
std::set< CSCIdType > chambersWithWarning(int num) const
std::vector< const char * > sDMBEventStaus
std::map< CSCIdType, ExaminerStatusType > warningsDetailed(void) const
const char * errorName(int num) const
ExaminerStatusType bWARNING
uint32_t CFEB_BSampleCount
std::vector< const char * > sDMBExpectedPayload
const char * warningName(int num) const
ExaminerStatusType statusForChamber(CSCIdType chamber) const
ExaminerStatusType errorsForDDU(DDUIdType dduSourceID) const
std::map< CSCIdType, ExaminerStatusType > errorsDetailed(void) const
uint32_t CFEB_SampleCount
std::map< DDUIdType, uint32_t > dduOffsets
uint32_t TMB_WordsExpected
uint32_t DDU_WordMismatch_Occurrences
ExaminerMaskType getMask() const
std::vector< const char * > sWARNING_
std::map< CSCIdType, ExaminerStatusType > bCHAMB_STATUS
std::map< DDUIdType, std::map< CSCIdType, uint32_t > > dmbSize
const char * payloadName(int num) const
void checkDAVs()
checks DAV_ALCT, DAV_TMB, and DAV_CFEB
uint32_t TMB_Firmware_Revision
uint32_t CFEB_SampleWordCount
std::ostream & operator<<(std::ostream &out, const ALILine &li)
void setMask(ExaminerMaskType mask)
std::vector< DDUIdType > listOfDDUs(void) const
std::map< DDUIdType, uint32_t > DDU_ptrOffsets(void) const
int32_t check(const uint16_t *&buffer, int32_t length)
std::map< CSCIdType, uint32_t > cntCHAMB_Headers
std::map< CSCIdType, ExaminerStatusType > bCHAMB_ERR
CSCDCCExaminer(ExaminerMaskType mask=0x1)
std::map< DDUIdType, const uint16_t * > DDU_block(void) const
int scanbuf(const uint16_t *&buf, int32_t length, uint16_t sig, uint16_t mask=0xFFFF)
ExaminerMaskType examinerMask
uint32_t DDU_Firmware_Revision
std::map< CSCIdType, uint32_t > cntCHAMB_Trailers
ExaminerStatusType warnings(void) const
std::map< DDUIdType, uint32_t > DDU_size(void) const
std::map< CSCIdType, ExaminerStatusType > payloadDetailed(void) const
const char * statusName(int num) const
void crcALCT(bool enable)
uint32_t DDU_WordsSinceLastHeader
std::set< CSCIdType > fCHAMB_ERR[29]
std::set< CSCIdType > fCHAMB_WRN[5]
std::vector< const char * > sERROR_
std::map< DDUIdType, std::map< CSCIdType, uint32_t > > DMB_ptrOffsets(void) const
ExaminerStatusType bSUM_ERROR
std::map< CSCIdType, ExaminerStatusType > statusDetailed(void) const
void crcCFEB(bool enable)
ExaminerStatusType errorsForChamber(CSCIdType chamber) const
ExaminerStatusType warningsForDDU(DDUIdType dduSourceID) const
bool warning(int num) const
std::map< DDUIdType, ExaminerStatusType > errorsDetailedDDU(void) const
std::map< DDUIdType, std::map< CSCIdType, uint32_t > > DMB_size(void) const
const char * errName(int num) const
uint32_t ALCT_WordsSinceLastHeader
std::map< DDUIdType, std::map< CSCIdType, uint32_t > > dmbOffsets
const char * wrnName(int num) const
std::map< DDUIdType, std::map< CSCIdType, const uint16_t * > > dmbBuffers
std::vector< const char * > sWARNING
std::vector< const char * > sERROR
ExaminerStatusType payloadForChamber(CSCIdType chamber) const
ExaminerStatusType bERROR