17 if(
payload.size() != 4) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Payload size in 'Block of Counters' is different than expected"; }
31 if(
GetHexBits(BCa, 15, 15) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in BCa are incorrect"; }
32 if(
GetHexBits(BCb, 15, 15) != 1) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in BCb are incorrect"; }
33 if(
GetHexBits(BCc, 15, 15) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in BCc are incorrect"; }
34 if(
GetHexBits(BCd, 15, 15) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in BCd are incorrect"; }
63 int iOut = res->size() - 1;
68 if ( (res->at(iOut)).HasCounters() ==
true )
69 { (res->at(iOut)).add_format_error();
edm::LogError(
"L1T|EMTF") <<
"Why is there already a Counters object?";
goto write; }
78 (res->at(iOut)).set_Counters(Counters_);
virtual int checkFormat(const Block &block)
void set_track_counter(int bits)
int Format_Errors() const
std::vector< uint32_t > payload() const
payload
payload postfix for testing
std::vector< EMTFDaqOut > EMTFDaqOutCollection
void set_orbit_counter(int bits)
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
#define DEFINE_L1T_UNPACKER(type)
uint16_t GetHexBits(uint16_t word, uint16_t lowBit, uint16_t highBit)