9 uint32_t wordEventOffset,
10 uint32_t expectedXtalID,
11 uint32_t expectedStripID)
13 expectedXtalID_(expectedXtalID),
14 expectedStripID_(expectedStripID) {
35 std::pair<bool, std::string> res;
40 checkErrors += res.second;
47 checkErrors += res.second;
51 if (!checkErrors.empty()) {
52 errorString_ +=
"\n ======================================================================\n";
55 errorString_ +=
"\n ======================================================================";
78 for (std::set<DCCTBDataField *, DCCTBDataFieldComparator>::iterator it =
mapperFields_->begin();
81 if ((*it)->name() ==
"XTAL ID")
91 for (std::set<DCCTBDataField *, DCCTBDataFieldComparator>::iterator it =
mapperFields_->begin();
94 if ((*it)->name() ==
"STRIP ID")
102 std::vector<int>
data;
virtual std::pair< bool, std::string > checkDataField(std::string name, uint32_t data)
virtual uint32_t getDataField(std::string name)
virtual void increment(uint32_t numb, std::string msg="")
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * mapperFields_
DCCTBDataParser * parser_
DCCTBXtalBlock(DCCTBDataParser *parser, const uint32_t *buffer, uint32_t numbBytes, uint32_t wordsToEnd, uint32_t wordEventOffset, uint32_t expectedXtalID, uint32_t expectedStripID)
std::string getDecString(uint32_t data)
std::vector< int > xtalDataSamples()
uint32_t expectedStripID_
std::map< std::string, uint32_t > errors_
uint32_t numbXtalSamples()
DCCTBDataMapper * mapper()
void increment(uint32_t numb)
char data[epos_bytes_allocation]
static std::atomic< unsigned int > counter
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * xtalFields()