01/20/05 A.Tumanov More...
#include <CSCDCCEventData.h>
Public Member Functions | |
void | addChamber (CSCEventData &chamber, int dduID, int dduSlot, int dduInput, int dmbID, uint16_t format_version=2005) |
bool | check () const |
for making events. Sets the bxnum and lvl1num inside the chamber event More... | |
CSCDCCEventData (int sourceId, int nDDUs, int bx, int l1a) | |
CSCDCCEventData (unsigned short *buf, CSCDCCExaminer *examiner=NULL) | |
CSCDCCHeader | dccHeader () const |
CSCDCCTrailer | dccTrailer () const |
const std::vector< CSCDDUEventData > & | dduData () const |
accessor to dduData More... | |
std::vector< CSCDDUEventData > & | dduData () |
boost::dynamic_bitset | pack () |
packs data into bits More... | |
int | sizeInWords () const |
~CSCDCCEventData () | |
Static Public Member Functions | |
static void | setDebug (bool value) |
Static Public Attributes | |
static std::atomic< bool > | debug {false} |
Protected Member Functions | |
void | unpack_data (unsigned short *buf, CSCDCCExaminer *examiner=NULL) |
Protected Attributes | |
CSCDCCHeader | theDCCHeader |
CSCDCCTrailer | theDCCTrailer |
std::vector< CSCDDUEventData > | theDDUData |
int | theSizeInWords |
01/20/05 A.Tumanov
Definition at line 13 of file CSCDCCEventData.h.
CSCDCCEventData::CSCDCCEventData | ( | int | sourceId, |
int | nDDUs, | ||
int | bx, | ||
int | l1a | ||
) |
Definition at line 22 of file CSCDCCEventData.cc.
References theDDUData.
|
explicit |
buf may need to stay pinned in memory as long as this data is used. Not sure
Definition at line 28 of file CSCDCCEventData.cc.
References unpack_data().
CSCDCCEventData::~CSCDCCEventData | ( | ) |
Definition at line 33 of file CSCDCCEventData.cc.
void CSCDCCEventData::addChamber | ( | CSCEventData & | chamber, |
int | dduID, | ||
int | dduSlot, | ||
int | dduInput, | ||
int | dmbID, | ||
uint16_t | format_version = 2005 |
||
) |
Set DDU format_version field in header depending on desired format version
2013 Format
Definition at line 112 of file CSCDCCEventData.cc.
References dccHeader(), RecoTauValidation_cfi::header, i, CSCDCCHeader::setDAV(), and theDDUData.
Referenced by sizeInWords().
bool CSCDCCEventData::check | ( | ) | const |
for making events. Sets the bxnum and lvl1num inside the chamber event
Definition at line 100 of file CSCDCCEventData.cc.
References CSCDCCHeader::check(), CSCDCCTrailer::check(), debug, TauDecayModes::dec, LogTrace, sizeInWords(), theDCCHeader, and theDCCTrailer.
Referenced by dccTrailer().
|
inline |
Definition at line 28 of file CSCDCCEventData.h.
References theDCCHeader.
Referenced by addChamber(), and cscdqm::EventProcessor::preProcessEvent().
|
inline |
Definition at line 29 of file CSCDCCEventData.h.
References check(), and theDCCTrailer.
Referenced by pack().
|
inline |
accessor to dduData
Definition at line 25 of file CSCDCCEventData.h.
References theDDUData.
Referenced by CSCChamberDataItr::CSCChamberDataItr(), CSCOfflineMonitor::doBXMonitor(), CSCValidation::doTimeMonitoring(), CSCChamberDataItr::next(), and cscdqm::EventProcessor::preProcessEvent().
|
inline |
Definition at line 26 of file CSCDCCEventData.h.
References theDDUData.
boost::dynamic_bitset CSCDCCEventData::pack | ( | ) |
packs data into bits
Definition at line 140 of file CSCDCCEventData.cc.
References bitset_utilities::append(), CSCDCCHeader::data(), CSCDCCTrailer::data(), dccTrailer(), i, mps_fire::result, CSCDCCHeader::sizeInWords(), CSCDCCTrailer::sizeInWords(), theDCCHeader, theDCCTrailer, theDDUData, and bitset_utilities::ushortToBitset().
Referenced by pyrootRender.interactiveRender::draw(), and sizeInWords().
|
inlinestatic |
Definition at line 22 of file CSCDCCEventData.h.
References debug, and relativeConstraints::value.
Referenced by CSCDCCUnpacker::CSCDCCUnpacker().
|
inline |
prints out the error associated with this status from the header or trailer
Definition at line 39 of file CSCDCCEventData.h.
References addChamber(), relativeConstraints::chamber, debug, pack(), and theSizeInWords.
Referenced by check().
|
protected |
loop over DDUEventDatas
Definition at line 38 of file CSCDCCEventData.cc.
References CSCDCCTrailer::check(), CSCDDUEventData::check(), debug, LogTrace, CSCDCCHeader::sizeInWords(), CSCDCCTrailer::sizeInWords(), CSCDDUEventData::sizeInWords(), theDCCHeader, theDCCTrailer, and theDDUData.
Referenced by CSCDCCEventData().
|
static |
Definition at line 49 of file CSCDCCEventData.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(), setDebug(), sizeInWords(), unpack_data(), and pkg.AbstractPkg::write().
|
protected |
Definition at line 55 of file CSCDCCEventData.h.
Referenced by check(), dccHeader(), pack(), and unpack_data().
|
protected |
Definition at line 58 of file CSCDCCEventData.h.
Referenced by check(), dccTrailer(), pack(), and unpack_data().
|
protected |
Definition at line 57 of file CSCDCCEventData.h.
Referenced by addChamber(), CSCDCCEventData(), dduData(), pack(), and unpack_data().
|
protected |
Definition at line 59 of file CSCDCCEventData.h.
Referenced by sizeInWords().