|
| 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 |
|
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 () |
|
Definition at line 19 of file DCCTowerBlock.h.
void DCCTBTowerBlock::parseXtalData |
( |
| ) |
|
Definition at line 31 of file DCCTowerBlock.cc.
38 uint32_t numbOfXtalBlocks = 0;
41 numbOfXtalBlocks = (length - 1) / numbDWInXtalBlock;
43 uint32_t xtalBlockSize = numbDWInXtalBlock * 8;
52 if (!zs && numbOfXtalBlocks != 25) {
53 (
errors_[
"FE::BLOCK LENGTH"])++;
54 errorString_ +=
"\n ======================================================================\n";
61 errorString_ +=
"\n ======================================================================";
64 if (numbOfXtalBlocks > 25) {
65 if (
errors_[
"FE::BLOCK LENGTH"] == 0)
66 (
errors_[
"FE::BLOCK LENGTH"])++;
67 errorString_ +=
"\n ======================================================================\n";
72 errorString_ +=
"\n Action -> data after the xtal 25 is ignored... ";
73 errorString_ +=
"\n ======================================================================";
81 uint32_t stripID, xtalID;
83 for (uint32_t numbXtal = 1; numbXtal <= numbOfXtalBlocks && numbXtal <= 25; numbXtal++) {
86 stripID = (numbXtal - 1) / 5 + 1;
87 xtalID = numbXtal - (stripID - 1) * 5;
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().