#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 (unsigned short *buf, CSCDCCExaminer *examiner=NULL) | |
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 (unsigned short *buf, CSCDCCExaminer *examiner=NULL) |
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 |
CSCDDUEventData::~CSCDDUEventData | ( | ) |
Definition at line 37 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 42 of file CSCDDUEventData.cc.
References CSCDDUHeader::bxnum(), CSCEventData::dmbHeader(), CSCDDUHeader::lvl1num(), CSCDDUHeader::setDMBDAV(), CSCDMBHeader::setdmbID(), CSCEventData::setEventInformation(), theData, and theDDUHeader.
Referenced by counter.Counter::register().
bool CSCDDUEventData::check | ( | ) | const |
Definition at line 335 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 34 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 59 of file CSCDDUEventData.cc.
References errMask, and LogTrace.
void CSCDDUEventData::decodeStatus | ( | ) | const |
Definition at line 54 of file CSCDDUEventData.cc.
References CSCDDUTrailer::errorstat(), and theDDUTrailer.
Referenced by unpack_data().
|
inline |
Definition at line 36 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 347 of file CSCDDUEventData.cc.
References bitset_utilities::append(), CSCDDUTrailer::data(), CSCDDUHeader::data(), i, mps_fire::result, CSCDDUTrailer::setWordCount(), CSCDDUTrailer::sizeInWords(), CSCDDUHeader::sizeInWords(), theData, theDDUHeader, theDDUTrailer, theSizeInWords, and bitset_utilities::ushortToBitset().
Referenced by pyrootRender.interactiveRender::draw().
|
inlinestatic |
Definition at line 30 of file CSCDDUEventData.h.
References debug, and relativeConstraints::value.
Referenced by CSCDCCUnpacker::CSCDCCUnpacker().
|
inlinestatic |
Definition at line 31 of file CSCDDUEventData.h.
References errMask, and relativeConstraints::value.
Referenced by CSCDCCUnpacker::CSCDCCUnpacker().
|
inline |
Definition at line 57 of file CSCDDUEventData.h.
References theSizeInWords.
Referenced by ntuple._Collection::__iter__(), ntuple._Collection::__len__(), and unpack_data().
|
inline |
Definition at line 56 of file CSCDDUEventData.h.
References theSizeInWords.
Referenced by check(), cscdqm::EventProcessor::processDDU(), and CSCDCCEventData::unpack_data().
|
inline |
Definition at line 37 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 160 of file CSCDDUEventData.cc.
References CSCDDUTrailer::check(), gather_cfg::cout, CSCDCCExaminer::DDU_block(), CSCDCCExaminer::DDU_size(), debug, TauDecayModes::dec, decodeStatus(), CSCDCCExaminer::DMB_block(), errMask, benchmark_cfg::errors, CSCDCCExaminer::errorsForChamber(), CSCDDUTrailer::errorstat(), errorstat, CSCDDUHeader::format_version(), CSCDCCExaminer::getMask(), i, LogTrace, CSCDDUHeader::ncsc(), NULL, size(), CSCDDUTrailer::sizeInWords(), CSCDDUHeader::sizeInWords(), CSCDDUHeader::source_id(), theData, theDDUHeader, theDDUTrailer, theDDUTrailer0, theFormatVersion, and theSizeInWords.
|
static |
Definition at line 66 of file CSCDDUEventData.h.
Referenced by check(), util.rrapi.RRApi::dprint(), rrapi.RRApi::dprint(), pkg.AbstractPkg::generate(), util.rrapi.RRApi::get(), rrapi.RRApi::get(), pkg.AbstractPkg::get_kwds(), setDebug(), unpack_data(), and pkg.AbstractPkg::write().
|
static |
Definition at line 67 of file CSCDDUEventData.h.
Referenced by decodeStatus(), setErrorMask(), and unpack_data().
long unsigned int CSCDDUEventData::errorstat |
|
protected |
Definition at line 76 of file CSCDDUEventData.h.
Referenced by add(), cscData(), pack(), and unpack_data().
|
protected |
Definition at line 73 of file CSCDDUEventData.h.
Referenced by dccHeader().
|
protected |
Definition at line 78 of file CSCDDUEventData.h.
Referenced by dccTrailer().
|
protected |
Definition at line 74 of file CSCDDUEventData.h.
Referenced by add(), check(), CSCDDUEventData(), header(), pack(), and unpack_data().
|
protected |
Definition at line 77 of file CSCDDUEventData.h.
Referenced by check(), decodeStatus(), pack(), trailer(), and unpack_data().
|
protected |
Definition at line 79 of file CSCDDUEventData.h.
Referenced by trailer0(), and unpack_data().
|
protected |
Definition at line 81 of file CSCDDUEventData.h.
Referenced by unpack_data().
|
protected |
Definition at line 80 of file CSCDDUEventData.h.
Referenced by pack(), size(), sizeInWords(), and unpack_data().