18 if(payload.size() != 4) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Payload size in 'Block of Counters' is different than expected"; }
21 if(
GetHexBits(payload[0], 16, 31) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Payload[0] has more than 16 bits in 'Block of Counters'"; }
22 if(
GetHexBits(payload[1], 16, 31) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Payload[1] has more than 16 bits in 'Block of Counters'"; }
23 if(
GetHexBits(payload[2], 16, 31) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Payload[2] has more than 16 bits in 'Block of Counters'"; }
24 if(
GetHexBits(payload[3], 16, 31) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Payload[3] has more than 16 bits in 'Block of Counters'"; }
26 uint16_t BCa = payload[0];
27 uint16_t BCb = payload[1];
28 uint16_t BCc = payload[2];
29 uint16_t BCd = payload[3];
32 if(
GetHexBits(BCa, 15, 15) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in BCa are incorrect"; }
33 if(
GetHexBits(BCb, 15, 15) != 1) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in BCb are incorrect"; }
34 if(
GetHexBits(BCc, 15, 15) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in BCc are incorrect"; }
35 if(
GetHexBits(BCd, 15, 15) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in BCd are incorrect"; }
55 uint16_t BCa = payload[0];
56 uint16_t BCb = payload[1];
57 uint16_t BCc = payload[2];
58 uint16_t BCd = payload[3];
64 int iOut = res->size() - 1;
69 if ( (res->at(iOut)).HasCounters() ==
true )
70 { (res->at(iOut)).add_format_error();
edm::LogError(
"L1T|EMTF") <<
"Why is there already a Counters object?";
goto write; }
79 (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
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)