#include <CSCDDUEventData.h>
Public Member Functions | |
void | add (CSCEventData &, int dmbId, int dduInput, unsigned int format_version=2005) |
for making events. Sets the bxnum and lvl1num inside the chamber event More... | |
bool | check () const |
const std::vector< CSCEventData > & | cscData () const |
accessor to data More... | |
CSCDDUEventData (const CSCDDUHeader &) | |
CSCDDUEventData (const uint16_t *buf, CSCDCCExaminer *examiner=0) | |
CSCDCCHeader | dccHeader () const |
CSCDCCTrailer | dccTrailer () const |
void | decodeStatus (int status) const |
void | decodeStatus () const |
CSCDDUHeader | header () const |
boost::dynamic_bitset | pack () |
Alex check this 16 or 64. More... | |
int | size () const |
int | sizeInWords () const |
CSCDDUTrailer | trailer () const |
uint16_t | trailer0 () const |
~CSCDDUEventData () | |
Static Public Member Functions | |
static void | setDebug (bool value) |
static void | setErrorMask (unsigned int value) |
Public Attributes | |
long unsigned int | errorstat |
trailer info More... | |
Static Public Attributes | |
static std::atomic< bool > | debug {false} |
static std::atomic< unsigned int > | errMask {0xFFFFFFFF} |
Protected Member Functions | |
void | unpack_data (const uint16_t *buf, CSCDCCExaminer *examiner=0) |
a good test routine would be to unpack data, then pack it again. More... | |
Protected Attributes | |
std::vector< CSCEventData > | theData |
CSCDCCHeader | theDCCHeader |
CSCDCCTrailer | theDCCTrailer |
CSCDDUHeader | theDDUHeader |
CSCDDUTrailer | theDDUTrailer |
uint16_t | theDDUTrailer0 |
uint16_t | theFormatVersion |
int | theSizeInWords |
Definition at line 19 of file CSCDDUEventData.h.
|
explicit |
|
explicit |
Definition at line 26 of file CSCDDUEventData.cc.
References unpack_data().
CSCDDUEventData::~CSCDDUEventData | ( | ) |
Definition at line 28 of file CSCDDUEventData.cc.
void CSCDDUEventData::add | ( | CSCEventData & | , |
int | dmbId, | ||
int | dduInput, | ||
unsigned int | format_version = 2005 |
||
) |
for making events. Sets the bxnum and lvl1num inside the chamber event
Definition at line 30 of file CSCDDUEventData.cc.
References CSCDDUHeader::bxnum(), CSCEventData::dmbHeader(), CSCDDUHeader::lvl1num(), CSCDDUHeader::setDMBDAV(), CSCDMBHeader::setdmbID(), CSCEventData::setEventInformation(), theData, and theDDUHeader.
Referenced by dccTrailer(), counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
bool CSCDDUEventData::check | ( | ) | const |
Definition at line 289 of file CSCDDUEventData.cc.
References CSCDDUTrailer::check(), CSCDDUHeader::check(), debug, LogTrace, sizeInWords(), theDDUHeader, theDDUTrailer, and CSCDDUTrailer::wordcount().
Referenced by CSCDCCEventData::unpack_data().
|
inline |
accessor to data
Definition at line 33 of file CSCDDUEventData.h.
References theData.
Referenced by CSCDDUDataItr::CSCDDUDataItr(), CSCDDUDataItr::operator*(), and cscdqm::EventProcessor::processDDU().
|
inline |
|
inline |
void CSCDDUEventData::decodeStatus | ( | int | status | ) | const |
prints out the error associated with this status from the header or trailer
this is a mask for printing out errors
Definition at line 43 of file CSCDDUEventData.cc.
References errMask, and LogTrace.
void CSCDDUEventData::decodeStatus | ( | ) | const |
Definition at line 41 of file CSCDDUEventData.cc.
References CSCDDUTrailer::errorstat(), and theDDUTrailer.
Referenced by unpack_data().
|
inline |
Definition at line 35 of file CSCDDUEventData.h.
References theDDUHeader.
Referenced by CSCDDUEventData(), and cscdqm::EventProcessor::processDDU().
boost::dynamic_bitset CSCDDUEventData::pack | ( | ) |
Alex check this 16 or 64.
returns packed event data
Definition at line 299 of file CSCDDUEventData.cc.
References bitset_utilities::append(), CSCDDUTrailer::data(), CSCDDUHeader::data(), mps_fire::i, mps_fire::result, CSCDDUTrailer::setWordCount(), CSCDDUTrailer::sizeInWords(), CSCDDUHeader::sizeInWords(), theData, theDDUHeader, theDDUTrailer, theSizeInWords, and bitset_utilities::ushortToBitset().
Referenced by size().
|
inlinestatic |
Definition at line 29 of file CSCDDUEventData.h.
References debug, and relativeConstraints::value.
Referenced by CSCDCCUnpacker::CSCDCCUnpacker().
|
inlinestatic |
Definition at line 30 of file CSCDDUEventData.h.
References errMask, and relativeConstraints::value.
Referenced by CSCDCCUnpacker::CSCDCCUnpacker().
|
inline |
Definition at line 55 of file CSCDDUEventData.h.
References debug, errMask, pack(), and theSizeInWords.
Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), and unpack_data().
|
inline |
Definition at line 54 of file CSCDDUEventData.h.
References theSizeInWords.
Referenced by check(), cscdqm::EventProcessor::processDDU(), and CSCDCCEventData::unpack_data().
|
inline |
Definition at line 36 of file CSCDDUEventData.h.
References theDDUTrailer.
Referenced by cscdqm::EventProcessor::processDDU().
|
inline |
|
protected |
a good test routine would be to unpack data, then pack it again.
To pack trailer 0
New Data Format 2013
Older Data format before 2013
Pack Trailer 0 (to access TTS)
Definition at line 134 of file CSCDDUEventData.cc.
References CSCDDUTrailer::check(), gather_cfg::cout, CSCDCCExaminer::DDU_block(), CSCDCCExaminer::DDU_size(), debug, TauDecayModes::dec, decodeStatus(), CSCDCCExaminer::DMB_block(), errMask, CSCDCCExaminer::errorsForChamber(), CSCDDUTrailer::errorstat(), errorstat, CSCDDUHeader::format_version(), CSCDCCExaminer::getMask(), mps_fire::i, LogTrace, CSCDDUHeader::ncsc(), CSCDDUHeader::setFromBuffer(), CSCDDUTrailer::setFromBuffer(), size(), CSCDDUTrailer::sizeInWords(), CSCDDUHeader::sizeInWords(), CSCDDUHeader::source_id(), theData, theDDUHeader, theDDUTrailer, theDDUTrailer0, theFormatVersion, and theSizeInWords.
Referenced by CSCDDUEventData().
|
static |
Definition at line 64 of file CSCDDUEventData.h.
Referenced by check(), util.rrapi.RRApi::dprint(), rrapi.RRApi::dprint(), pkg.AbstractPkg::generate(), rrapi.RRApi::get(), util.rrapi.RRApi::get(), pkg.AbstractPkg::get_kwds(), runTauIdMVA.TauIDEmbedder::loadMVA_WPs_run2_2017(), runTauIdMVA.TauIDEmbedder::runTauID(), setDebug(), size(), unpack_data(), and pkg.AbstractPkg::write().
|
static |
Definition at line 65 of file CSCDDUEventData.h.
Referenced by decodeStatus(), setErrorMask(), size(), and unpack_data().
long unsigned int CSCDDUEventData::errorstat |
|
protected |
Definition at line 74 of file CSCDDUEventData.h.
Referenced by add(), cscData(), pack(), and unpack_data().
|
protected |
Definition at line 71 of file CSCDDUEventData.h.
Referenced by dccHeader().
|
protected |
Definition at line 76 of file CSCDDUEventData.h.
Referenced by dccTrailer().
|
protected |
Definition at line 72 of file CSCDDUEventData.h.
Referenced by add(), check(), CSCDDUEventData(), header(), pack(), and unpack_data().
|
protected |
Definition at line 75 of file CSCDDUEventData.h.
Referenced by check(), decodeStatus(), pack(), trailer(), and unpack_data().
|
protected |
Definition at line 77 of file CSCDDUEventData.h.
Referenced by trailer0(), and unpack_data().
|
protected |
Definition at line 79 of file CSCDDUEventData.h.
Referenced by unpack_data().
|
protected |
Definition at line 78 of file CSCDDUEventData.h.
Referenced by pack(), size(), sizeInWords(), and unpack_data().