#include <DCCEventBlock.h>
Public Member Functions | |
virtual std::pair< bool, std::string > | compare (DCCTBBlockPrototype *block) |
std::pair< bool, std::string > | compare (DCCTBEventBlock *) |
void | dataCheck () |
DCCTBEventBlock (DCCTBDataParser *parser, const uint32_t *buffer, uint32_t numbBytes, uint32_t wordsToEnd, uint32_t wordBufferOffset=0, uint32_t wordEventOffset=0) | |
void | displayEvent (std::ostream &os=std::cout) |
std::string | eventErrorString () |
bool | eventHasErrors () |
DCCTBSRPBlock * | srpBlock () |
std::vector< DCCTBTCCBlock * > & | tccBlocks () |
std::vector< DCCTBTowerBlock * > & | towerBlocks () |
std::vector< DCCTBTowerBlock * > | towerBlocksById (uint32_t towerId) |
DCCTBTrailerBlock * | trailerBlock () |
~DCCTBEventBlock () override | |
Public Member Functions inherited from DCCTBBlockPrototype | |
bool | blockError () |
virtual std::pair< bool, std::string > | checkDataField (std::string name, uint32_t data) |
virtual std::pair< bool, std::string > | compare (DCCTBBlockPrototype *block) |
DCCTBBlockPrototype (DCCTBDataParser *parser, std::string name, const uint32_t *buffer, uint32_t numbBytes, uint32_t wordsToEndOfEvent, uint32_t wordEventOffset=0) | |
virtual void | displayData (std::ostream &os=std::cout) |
std::map< std::string, uint32_t > & | errorCounters () |
std::string & | errorString () |
virtual uint32_t | getDataField (std::string name) |
virtual uint32_t | getDataWord (uint32_t wordPosition, uint32_t bitPosition, uint32_t mask) |
DCCTBDataParser * | getParser () |
virtual void | increment (uint32_t numb, std::string msg="") |
std::string | name () |
virtual void | parseData () |
virtual void | seeIfIsPossibleToIncrement (uint32_t numb, std::string msg="") |
virtual void | setDataField (std::string name, uint32_t data) |
uint32_t | size () |
uint32_t | wOffset () |
virtual | ~DCCTBBlockPrototype () |
Protected Types | |
enum | dccFields { PHYSICTRIGGER = 1, CALIBRATIONTRIGGER = 2, TESTTRIGGER = 3, TECHNICALTRIGGER = 4, CH_ENABLED = 0, CH_DISABLED = 1, CH_TIMEOUT = 2, CH_SUPPRESS = 7, SR_NREAD = 0, BOE = 0x5, DCCERROR_EMPTYEVENT = 0x1, TOWERHEADER_SIZE = 8, TRAILER_SIZE = 8 } |
Protected Attributes | |
DCCTBTrailerBlock * | dccTrailerBlock_ |
bool | emptyEvent |
DCCTBSRPBlock * | srpBlock_ |
std::vector< DCCTBTCCBlock * > | tccBlocks_ |
std::vector< DCCTBTowerBlock * > | towerBlocks_ |
uint32_t | wordBufferOffset_ |
Protected Attributes inherited from DCCTBBlockPrototype | |
const uint32_t * | beginOfBuffer_ |
bool | blockError_ |
uint32_t | blockSize_ |
std::string | blockString_ |
std::map< std::string, uint32_t > | dataFields_ |
const uint32_t * | dataP_ |
std::map< std::string, uint32_t > | errors_ |
std::string | errorString_ |
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * | mapperFields_ |
std::string | name_ |
DCCTBDataParser * | parser_ |
std::string | processingString_ |
uint32_t | wordCounter_ |
uint32_t | wordEventOffset_ |
uint32_t | wordsToEndOfEvent_ |
Additional Inherited Members | |
Protected Member Functions inherited from DCCTBBlockPrototype | |
std::string | formatString (std::string myString, uint32_t minPositions) |
Definition at line 16 of file DCCEventBlock.h.
|
protected |
Enumerator | |
---|---|
PHYSICTRIGGER | |
CALIBRATIONTRIGGER | |
TESTTRIGGER | |
TECHNICALTRIGGER | |
CH_ENABLED | |
CH_DISABLED | |
CH_TIMEOUT | |
CH_SUPPRESS | |
SR_NREAD | |
BOE | |
DCCERROR_EMPTYEVENT | |
TOWERHEADER_SIZE | |
TRAILER_SIZE |
Definition at line 42 of file DCCEventBlock.h.
DCCTBEventBlock::DCCTBEventBlock | ( | DCCTBDataParser * | parser, |
const uint32_t * | buffer, | ||
uint32_t | numbBytes, | ||
uint32_t | wordsToEnd, | ||
uint32_t | wordBufferOffset = 0 , |
||
uint32_t | wordEventOffset = 0 |
||
) |
Definition at line 15 of file DCCEventBlock.cc.
References a, DCCTBBlockPrototype::blockError_, DCCTBBlockPrototype::blockSize_, CALIBRATIONTRIGGER, CH_DISABLED, CH_SUPPRESS, CH_TIMEOUT, dataCheck(), DCCTBBlockPrototype::dataP_, DCCERROR_EMPTYEVENT, DCCTBDataMapper::dccFields(), dccTrailerBlock_, DCCTBDataParser::debug(), MillePedeFileConverter_cfg::e, emptyEvent, DCCTBDataMapper::emptyEventFields(), DCCTBDataParser::EMPTYEVENTSIZE, relativeConstraints::error, DCCTBBlockPrototype::errors_, DCCTBBlockPrototype::errorString_, DCCTBBlockPrototype::getDataField(), DCCTBDataParser::getDecString(), mps_fire::i, DCCTBBlockPrototype::increment(), DCCTBDataParser::mapper(), DCCTBBlockPrototype::mapperFields_, DCCTBBlockPrototype::parseData(), DCCTBBlockPrototype::parser_, DCCTBTowerBlock::parseXtalData(), PHYSICTRIGGER, SR_NREAD, srpBlock_, DCCTBDataParser::srpBlockSize(), AlCaHLTBitMon_QueryRunRegistry::string, suppress, DCCTBDataParser::tcc1Id(), DCCTBDataParser::tcc2Id(), DCCTBDataParser::tcc3Id(), DCCTBDataParser::tcc4Id(), tccBlocks_, DCCTBDataParser::tccBlockSize(), ecaldqm::tccId(), towerBlocks_, TOWERHEADER_SIZE, TRAILER_SIZE, HLT_2024v12_cff::triggerType, and DCCTBBlockPrototype::wordCounter_.
|
override |
Definition at line 191 of file DCCEventBlock.cc.
References dccTrailerBlock_, srpBlock_, tccBlocks_, and towerBlocks_.
std::pair< bool, std::string > DCCTBBlockPrototype::compare |
Definition at line 233 of file DCCBlockPrototype.cc.
std::pair< bool, std::string > DCCTBEventBlock::compare | ( | DCCTBEventBlock * | block | ) |
Definition at line 307 of file DCCEventBlock.cc.
References groupFilesInBlocks::block, DCCTBBlockPrototype::compare(), mps_fire::end, MillePedeFileConverter_cfg::out, runTheMatrix::ret, srpBlock_, tccBlocks_, groupFilesInBlocks::temp, towerBlocks_, and trailerBlock().
void DCCTBEventBlock::dataCheck | ( | ) |
Definition at line 212 of file DCCEventBlock.cc.
References DCCTBBlockPrototype::blockError_, DCCTBBlockPrototype::blockSize_, BOE, DCCTBBlockPrototype::checkDataField(), emptyEvent, DCCTBBlockPrototype::errors_, DCCTBBlockPrototype::errorString_, DCCTBDataParser::getDecString(), RecoTauValidation_cfi::header, mps_fire::i, DCCTBBlockPrototype::name_, DCCTBBlockPrototype::parser_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by DCCTBEventBlock().
void DCCTBEventBlock::displayEvent | ( | std::ostream & | os = std::cout | ) |
Definition at line 268 of file DCCEventBlock.cc.
References dccTrailerBlock_, TauDecayModes::dec, DCCTBBlockPrototype::displayData(), srpBlock_, tccBlocks_, towerBlocks_, and wordBufferOffset_.
std::string DCCTBEventBlock::eventErrorString | ( | ) |
Definition at line 462 of file DCCEventBlock.cc.
References dccTrailerBlock_, DCCTBBlockPrototype::errorString(), eventHasErrors(), DCCTBBlockPrototype::getDataField(), DCCTBDataParser::getDecString(), DCCTBBlockPrototype::parser_, runTheMatrix::ret, srpBlock_, AlCaHLTBitMon_QueryRunRegistry::string, tccBlocks_, groupFilesInBlocks::temp, and towerBlocks_.
bool DCCTBEventBlock::eventHasErrors | ( | ) |
Definition at line 421 of file DCCEventBlock.cc.
References DCCTBBlockPrototype::blockError(), dccTrailerBlock_, runTheMatrix::ret, srpBlock_, tccBlocks_, and towerBlocks_.
Referenced by eventErrorString().
|
inline |
|
inline |
|
inline |
Definition at line 73 of file DCCEventBlock.h.
References towerBlocks_.
std::vector< DCCTBTowerBlock * > DCCTBEventBlock::towerBlocksById | ( | uint32_t | towerId | ) |
Definition at line 521 of file DCCEventBlock.cc.
References MillePedeFileConverter_cfg::e, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, towerBlocks_, and ecaldqm::towerId().
|
inline |
Definition at line 76 of file DCCEventBlock.h.
References dccTrailerBlock_.
Referenced by compare().
|
protected |
Definition at line 67 of file DCCEventBlock.h.
Referenced by DCCTBEventBlock(), displayEvent(), eventErrorString(), eventHasErrors(), trailerBlock(), and ~DCCTBEventBlock().
|
protected |
Definition at line 70 of file DCCEventBlock.h.
Referenced by dataCheck(), and DCCTBEventBlock().
|
protected |
Definition at line 68 of file DCCEventBlock.h.
Referenced by compare(), DCCTBEventBlock(), displayEvent(), eventErrorString(), eventHasErrors(), srpBlock(), and ~DCCTBEventBlock().
|
protected |
Definition at line 66 of file DCCEventBlock.h.
Referenced by compare(), DCCTBEventBlock(), displayEvent(), eventErrorString(), eventHasErrors(), tccBlocks(), and ~DCCTBEventBlock().
|
protected |
Definition at line 65 of file DCCEventBlock.h.
Referenced by compare(), DCCTBEventBlock(), displayEvent(), eventErrorString(), eventHasErrors(), towerBlocks(), towerBlocksById(), and ~DCCTBEventBlock().
|
protected |
Definition at line 69 of file DCCEventBlock.h.
Referenced by displayEvent().