#include <DCCTowerBlock.h>
Public Member Functions | |
DCCTBTowerBlock (DCCTBEventBlock *dccBlock, DCCTBDataParser *parser, const uint32_t *buffer, uint32_t numbBytes, uint32_t wordsToEnd, uint32_t wordEventOffset, uint32_t expectedTowerID) | |
void | parseXtalData () |
int | towerID () |
std::vector< DCCTBXtalBlock * > & | xtalBlocks () |
std::vector< DCCTBXtalBlock * > | xtalBlocksById (uint32_t stripId, uint32_t xtalId) |
~DCCTBTowerBlock () 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 | towerFields { BXMASK = 0xFFF, L1MASK = 0xFFF } |
Protected Member Functions | |
void | dataCheck () |
Protected Member Functions inherited from DCCTBBlockPrototype | |
std::string | formatString (std::string myString, uint32_t minPositions) |
Protected Attributes | |
DCCTBEventBlock * | dccBlock_ |
uint32_t | expectedTowerID_ |
std::vector< DCCTBXtalBlock * > | xtalBlocks_ |
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_ |
Definition at line 19 of file DCCTowerBlock.h.
|
protected |
Enumerator | |
---|---|
BXMASK | |
L1MASK |
Definition at line 41 of file DCCTowerBlock.h.
DCCTBTowerBlock::DCCTBTowerBlock | ( | DCCTBEventBlock * | dccBlock, |
DCCTBDataParser * | parser, | ||
const uint32_t * | buffer, | ||
uint32_t | numbBytes, | ||
uint32_t | wordsToEnd, | ||
uint32_t | wordEventOffset, | ||
uint32_t | expectedTowerID | ||
) |
Definition at line 9 of file DCCTowerBlock.cc.
References DCCTBBlockPrototype::errors_, DCCTBDataParser::mapper(), DCCTBBlockPrototype::mapperFields_, DCCTBBlockPrototype::parseData(), DCCTBBlockPrototype::parser_, and DCCTBDataMapper::towerFields().
|
override |
Definition at line 108 of file DCCTowerBlock.cc.
References xtalBlocks_.
|
protected |
Definition at line 116 of file DCCTowerBlock.cc.
References DCCTBBlockPrototype::blockError_, DCCTBBlockPrototype::checkDataField(), dccBlock_, DCCTBBlockPrototype::errors_, DCCTBBlockPrototype::errorString_, expectedTowerID_, DCCTBBlockPrototype::getDataField(), DCCTBDataParser::getDecString(), L1MASK, DCCTBBlockPrototype::name_, DCCTBBlockPrototype::parser_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by parseXtalData().
void DCCTBTowerBlock::parseXtalData | ( | ) |
Definition at line 31 of file DCCTowerBlock.cc.
References DCCTBBlockPrototype::blockError_, DCCTBBlockPrototype::blockSize_, dataCheck(), DCCTBBlockPrototype::dataP_, dccBlock_, DCCTBDataParser::debug(), DCCTBBlockPrototype::errors_, DCCTBBlockPrototype::errorString_, DCCTBBlockPrototype::getDataField(), DCCTBDataParser::getDecString(), DCCTBBlockPrototype::increment(), DCCTBBlockPrototype::name_, DCCTBDataParser::numbXtalSamples(), DCCTBBlockPrototype::parser_, AlCaHLTBitMon_QueryRunRegistry::string, DCCTBBlockPrototype::wordCounter_, DCCTBBlockPrototype::wordEventOffset_, DCCTBBlockPrototype::wordsToEndOfEvent_, and xtalBlocks_.
Referenced by DCCTBEventBlock::DCCTBEventBlock().
int DCCTBTowerBlock::towerID | ( | ) |
Definition at line 174 of file DCCTowerBlock.cc.
References DCCTBBlockPrototype::getDataField(), DCCTBBlockPrototype::mapperFields_, and mps_fire::result.
Referenced by EcalTBDaqFormatter::DecodeMEM(), and EcalTB07DaqFormatter::DecodeMEM().
|
inline |
Definition at line 48 of file DCCTowerBlock.h.
References xtalBlocks_.
Referenced by EcalTBDaqFormatter::DecodeMEM(), and EcalTB07DaqFormatter::DecodeMEM().
std::vector< DCCTBXtalBlock * > DCCTBTowerBlock::xtalBlocksById | ( | uint32_t | stripId, |
uint32_t | xtalId | ||
) |
Definition at line 154 of file DCCTowerBlock.cc.
References MillePedeFileConverter_cfg::e, and xtalBlocks_.
|
protected |
Definition at line 44 of file DCCTowerBlock.h.
Referenced by dataCheck(), and parseXtalData().
|
protected |
Definition at line 45 of file DCCTowerBlock.h.
Referenced by dataCheck().
|
protected |
Definition at line 43 of file DCCTowerBlock.h.
Referenced by parseXtalData(), xtalBlocks(), xtalBlocksById(), and ~DCCTBTowerBlock().