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 (const uint16_t *buf, CSCDCCExaminer *examiner=nullptr) | |
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 (const uint16_t *buf, CSCDCCExaminer *examiner=nullptr) |
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 26 of file CSCDCCEventData.cc.
References visDQMUpload::buf, and unpack_data().
CSCDCCEventData::~CSCDCCEventData | ( | ) |
Definition at line 28 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 95 of file CSCDCCEventData.cc.
References relativeConstraints::chamber, dccHeader(), RecoTauValidation_cfi::header, mps_fire::i, CSCDCCHeader::setDAV(), and theDDUData.
bool CSCDCCEventData::check | ( | ) | const |
for making events. Sets the bxnum and lvl1num inside the chamber event
Definition at line 86 of file CSCDCCEventData.cc.
References CSCDCCHeader::check(), CSCDCCTrailer::check(), debug, TauDecayModes::dec, LogTrace, sizeInWords(), theDCCHeader, and theDCCTrailer.
|
inline |
Definition at line 28 of file CSCDCCEventData.h.
References theDCCHeader.
Referenced by addChamber().
|
inline |
|
inline |
accessor to dduData
Definition at line 25 of file CSCDCCEventData.h.
References theDDUData.
Referenced by CSCChamberDataItr::CSCChamberDataItr(), CSCOfflineMonitor::doBXMonitor(), CSCValidation::doTimeMonitoring(), and CSCChamberDataItr::next().
|
inline |
Definition at line 26 of file CSCDCCEventData.h.
References theDDUData.
boost::dynamic_bitset CSCDCCEventData::pack | ( | ) |
packs data into bits
Definition at line 121 of file CSCDCCEventData.cc.
References bitset_utilities::append(), CSCDCCHeader::data(), CSCDCCTrailer::data(), dccTrailer(), mps_fire::i, mps_fire::result, CSCDCCHeader::sizeInWords(), CSCDCCTrailer::sizeInWords(), theDCCHeader, theDCCTrailer, theDDUData, and bitset_utilities::ushortToBitset().
|
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 38 of file CSCDCCEventData.h.
References theSizeInWords.
Referenced by check().
|
protected |
loop over DDUEventDatas
Definition at line 30 of file CSCDCCEventData.cc.
References visDQMUpload::buf, CSCDDUEventData::check(), CSCDCCTrailer::check(), debug, LogTrace, CSCDCCHeader::setFromBuffer(), CSCDCCTrailer::setFromBuffer(), CSCDCCHeader::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(), util.rrapi.RRApi::get(), rrapi.RRApi::get(), pkg.AbstractPkg::get_kwds(), runTauIdMVA.TauIDEmbedder::loadMVA_WPs_run2_2017(), runTauIdMVA.TauIDEmbedder::runTauID(), setDebug(), unpack_data(), and pkg.AbstractPkg::write().
|
protected |
Definition at line 54 of file CSCDCCEventData.h.
Referenced by check(), dccHeader(), pack(), and unpack_data().
|
protected |
Definition at line 57 of file CSCDCCEventData.h.
Referenced by check(), dccTrailer(), pack(), and unpack_data().
|
protected |
Definition at line 56 of file CSCDCCEventData.h.
Referenced by addChamber(), CSCDCCEventData(), dduData(), pack(), and unpack_data().
|
protected |
Definition at line 58 of file CSCDCCEventData.h.
Referenced by sizeInWords().