11 uint32_t wordEventOffset,
12 uint32_t expectedXtalID,
13 uint32_t expectedStripID
15 expectedXtalID_(expectedXtalID), expectedStripID_(expectedStripID){
40 std::pair <bool,std::string>
res;
45 if(!res.first){ checkErrors += res.second; (
errors_[
"XTAL::HEADER"])++; }
49 if(!res.first){ checkErrors += res.second; (
errors_[
"XTAL::HEADER"])++; }
52 errorString_ +=
"\n ======================================================================\n";
55 errorString_ +=
"\n ======================================================================";
80 for( std::set<DCCTBDataField *,DCCTBDataFieldComparator>::iterator
83 if ( (*it)->name() ==
"XTAL ID" )
97 for(std::set<DCCTBDataField *,DCCTBDataFieldComparator>::iterator it =
mapperFields_->begin(); it!=
mapperFields_->end(); it++){
98 if ( (*it)->name() ==
"STRIP ID" )
110 std::vector<int>
data;
virtual std::pair< bool, std::string > checkDataField(std::string name, uint32_t data)
virtual uint32_t getDataField(std::string name)
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * mapperFields_
virtual void increment(uint32_t numb, std::string msg="")
DCCTBDataParser * parser_
std::string getDecString(uint32_t data)
std::vector< int > xtalDataSamples()
uint32_t expectedStripID_
DCCTBXtalBlock(DCCTBDataParser *parser, uint32_t *buffer, uint32_t numbBytes, uint32_t wordsToEnd, uint32_t wordEventOffset, uint32_t expectedXtalID, uint32_t expectedStripID)
uint32_t numbXtalSamples()
DCCTBDataMapper * mapper()
std::map< std::string, uint32_t > errors_
void increment(uint32_t numb)
char data[epos_bytes_allocation]
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * xtalFields()