#include <DCCEventBlock.h>
Public Member Functions | |
std::pair< bool, std::string > | compare (DCCTBEventBlock *) |
void | dataCheck () |
DCCTBEventBlock (DCCTBDataParser *parser, 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 () | |
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, 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 | |
uint32_t * | beginOfBuffer_ |
bool | blockError_ |
uint32_t | blockSize_ |
std::string | blockString_ |
std::map< std::string, uint32_t > | dataFields_ |
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 17 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 47 of file DCCEventBlock.h.
DCCTBEventBlock::DCCTBEventBlock | ( | DCCTBDataParser * | parser, |
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(), alignCSCRings::e, emptyEvent, DCCTBDataMapper::emptyEventFields(), DCCTBDataParser::EMPTYEVENTSIZE, relativeConstraints::error, DCCTBBlockPrototype::errors_, DCCTBBlockPrototype::errorString_, DCCTBBlockPrototype::getDataField(), DCCTBDataParser::getDecString(), 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_FULL_cff::triggerType, ECALTBParserBlockException::what(), and DCCTBBlockPrototype::wordCounter_.
DCCTBEventBlock::~DCCTBEventBlock | ( | ) |
Definition at line 197 of file DCCEventBlock.cc.
References dccTrailerBlock_, srpBlock_, tccBlocks_, and towerBlocks_.
std::pair< bool, std::string > DCCTBEventBlock::compare | ( | DCCTBEventBlock * | block | ) |
Definition at line 307 of file DCCEventBlock.cc.
References begin, DCCTBBlockPrototype::compare(), end, GenerateHcalLaserBadRunList::out, runTheMatrix::ret, srpBlock(), srpBlock_, tccBlocks(), tccBlocks_, groupFilesInBlocks::temp, towerBlocks(), towerBlocks_, and trailerBlock().
void DCCTBEventBlock::dataCheck | ( | ) |
Definition at line 214 of file DCCEventBlock.cc.
References DCCTBBlockPrototype::blockError_, DCCTBBlockPrototype::blockSize_, BOE, DCCTBBlockPrototype::checkDataField(), emptyEvent, DCCTBBlockPrototype::errors_, DCCTBBlockPrototype::errorString_, DCCTBDataParser::getDecString(), i, DCCTBBlockPrototype::name_, DCCTBBlockPrototype::parser_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by DCCTBEventBlock().
void DCCTBEventBlock::displayEvent | ( | std::ostream & | os = std::cout | ) |
Definition at line 267 of file DCCEventBlock.cc.
References dccTrailerBlock_, TauDecayModes::dec, DCCTBBlockPrototype::displayData(), srpBlock_, tccBlocks_, towerBlocks_, and wordBufferOffset_.
std::string DCCTBEventBlock::eventErrorString | ( | ) |
Definition at line 481 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 436 of file DCCEventBlock.cc.
References DCCTBBlockPrototype::blockError(), dccTrailerBlock_, runTheMatrix::ret, srpBlock_, tccBlocks_, and towerBlocks_.
Referenced by eventErrorString().
|
inline |
|
inline |
|
inline |
Definition at line 81 of file DCCEventBlock.h.
References towerBlocks_.
Referenced by compare().
std::vector< DCCTBTowerBlock * > DCCTBEventBlock::towerBlocksById | ( | uint32_t | towerId | ) |
Definition at line 548 of file DCCEventBlock.cc.
References alignCSCRings::e, and towerBlocks_.
|
inline |
Definition at line 84 of file DCCEventBlock.h.
References dccTrailerBlock_.
Referenced by compare().
|
protected |
Definition at line 74 of file DCCEventBlock.h.
Referenced by DCCTBEventBlock(), displayEvent(), eventErrorString(), eventHasErrors(), trailerBlock(), and ~DCCTBEventBlock().
|
protected |
Definition at line 77 of file DCCEventBlock.h.
Referenced by dataCheck(), and DCCTBEventBlock().
|
protected |
Definition at line 75 of file DCCEventBlock.h.
Referenced by compare(), DCCTBEventBlock(), displayEvent(), eventErrorString(), eventHasErrors(), srpBlock(), and ~DCCTBEventBlock().
|
protected |
Definition at line 73 of file DCCEventBlock.h.
Referenced by compare(), DCCTBEventBlock(), displayEvent(), eventErrorString(), eventHasErrors(), tccBlocks(), and ~DCCTBEventBlock().
|
protected |
Definition at line 72 of file DCCEventBlock.h.
Referenced by compare(), DCCTBEventBlock(), displayEvent(), eventErrorString(), eventHasErrors(), towerBlocks(), towerBlocksById(), and ~DCCTBEventBlock().
|
protected |
Definition at line 76 of file DCCEventBlock.h.
Referenced by displayEvent().