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);
153 std::map<DDUIdType, std::map<CSCIdType, const uint16_t*> >
dmbBuffers;
155 std::map<DDUIdType, std::map<CSCIdType, uint32_t> >
dmbOffsets;
157 std::map<DDUIdType, std::map<CSCIdType, uint32_t> >
dmbSize;
163 OStream&
output2(
void) {
return CERR; }
166 int32_t
check(
const uint16_t*&
buffer, int32_t length);
230 return std::set<int>();
236 return std::set<int>();
292 std::vector<DDUIdType> DDUs;
293 std::map<DDUIdType, ExaminerStatusType>::const_iterator
item =
bDDU_ERR.begin();
295 DDUs.push_back(
item->first);
325 std::map<DDUIdType, std::map<CSCIdType, uint32_t> >
DMB_size(
void)
const {
return dmbSize; }
uint32_t DDU_WordsSinceLastHeader
const uint16_t * buffer_start
std::map< CSCIdType, ExaminerStatusType > statusDetailed(void) const
std::map< CSCIdType, ExaminerStatusType > bCHAMB_ERR
void crcCFEB(bool enable)
std::map< DDUIdType, ExaminerStatusType > bDDU_ERR
uint32_t CFEB_SampleWordCount
std::map< DDUIdType, std::map< CSCIdType, uint32_t > > DMB_ptrOffsets(void) const
std::map< DDUIdType, ExaminerStatusType > bDDU_WRN
std::set< CSCIdType > fCHAMB_ERR[29]
std::map< DDUIdType, uint32_t > dduOffsets
std::map< DDUIdType, uint32_t > dduSize
std::map< DDUIdType, uint32_t > DDU_ptrOffsets(void) const
const char * statusName(int num) const
std::set< CSCIdType > chambersWithError(int num) const
int scanbuf(const uint16_t *&buf, int32_t length, uint16_t sig, uint16_t mask=0xFFFF)
ExaminerStatusType errorsForChamber(CSCIdType chamber) const
void modeDDU(bool enable)
uint32_t ALCT_WordsSinceLastHeader
ExaminerStatusType bSUM_WARNING
ExaminerStatusType warningsForChamber(CSCIdType chamber) const
ExaminerStatusType warningsForDDU(DDUIdType dduSourceID) const
ExaminerStatusType errorsForDDU(DDUIdType dduSourceID) const
ExaminerMaskType getMask() const
std::vector< DDUIdType > listOfDDUs(void) const
const char * payloadName(int num) const
ExaminerStatusType statusForChamber(CSCIdType chamber) const
bool warning(int num) const
uint32_t DDU_WordsSinceLastTrailer
DDUIdType dduSourceID(void)
std::map< CSCIdType, ExaminerStatusType > bCHAMB_PAYLOAD
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
std::ostream & operator<<(std::ostream &out, const ALILine &li)
void crcALCT(bool enable)
uint32_t ALCT_WordsExpected
std::vector< const char * > sERROR
std::map< DDUIdType, std::map< CSCIdType, const uint16_t * > > DMB_block(void) const
std::map< DDUIdType, const uint16_t * > dduBuffers
uint32_t TMB_Firmware_Revision
uint32_t nWG_round_up
check zero suppression mode
std::map< CSCIdType, uint32_t > cntCHAMB_Trailers
std::map< DDUIdType, std::map< CSCIdType, uint32_t > > dmbSize
std::vector< const char * > sDMBExpectedPayload
std::vector< const char * > sWARNING_
std::set< CSCIdType > fCHAMB_WRN[5]
uint32_t ALCT_ZSE
number of ALCT words before anode raw data
uint32_t DDU_WordMismatch_Occurrences
std::map< CSCIdType, ExaminerStatusType > payloadDetailed(void) const
uint32_t CFEB_SampleCount
std::map< DDUIdType, std::map< CSCIdType, uint32_t > > DMB_size(void) const
std::set< CSCIdType > chambersWithWarning(int num) const
ExaminerStatusType bSUM_ERROR
std::map< CSCIdType, ExaminerStatusType > bCHAMB_WRN
const char * errName(int num) const
uint32_t TMB_WordsExpected
uint32_t CFEB_BSampleCount
std::map< DDUIdType, std::map< CSCIdType, uint32_t > > dmbOffsets
uint32_t TMB_WordsSinceLastHeader
to decode if zero suppression enabled
ExaminerStatusType bERROR
CSCDCCExaminer(ExaminerMaskType mask=0x1)
uint32_t DDU_Firmware_Revision
std::map< DDUIdType, uint32_t > DDU_size(void) const
void checkTriggerHeadersAndTrailers()
const char * warningName(int num) const
std::map< DDUIdType, const uint16_t * > DDU_block(void) const
std::vector< const char * > sWARNING
std::map< CSCIdType, ExaminerStatusType > errorsDetailed(void) const
const char * wrnName(int num) const
uint32_t ALCT_WordsSinceLastHeaderZeroSuppressed
int32_t check(const uint16_t *&buffer, int32_t length)
std::map< CSCIdType, ExaminerStatusType > bCHAMB_STATUS
ExaminerMaskType examinerMask
uint32_t ALCT_WordsBeforeRaw
ExaminerStatusType errors(void) const
void checkDAVs()
checks DAV_ALCT, DAV_TMB, and DAV_CFEB
ExaminerStatusType bWARNING
bool error(int num) const
ExaminerStatusType warnings(void) const
std::map< DDUIdType, ExaminerStatusType > errorsDetailedDDU(void) const
std::vector< const char * > sDMBEventStaus
std::map< CSCIdType, ExaminerStatusType > warningsDetailed(void) const
std::map< DDUIdType, std::map< CSCIdType, const uint16_t * > > dmbBuffers
void setMask(ExaminerMaskType mask)
ExaminerStatusType payloadForChamber(CSCIdType chamber) const
std::vector< const char * > sERROR_
std::map< CSCIdType, uint32_t > cntCHAMB_Headers
const char * errorName(int num) const