38 if(payload.size() != 4) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Payload size in 'Block of Counters' is different than expected"; }
41 if(
GetHexBits(payload[0], 16, 31) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Payload[0] has more than 16 bits in 'Block of Counters'"; }
42 if(
GetHexBits(payload[1], 16, 31) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Payload[1] has more than 16 bits in 'Block of Counters'"; }
43 if(
GetHexBits(payload[2], 16, 31) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Payload[2] has more than 16 bits in 'Block of Counters'"; }
44 if(
GetHexBits(payload[3], 16, 31) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Payload[3] has more than 16 bits in 'Block of Counters'"; }
46 uint16_t BCa = payload[0];
47 uint16_t BCb = payload[1];
48 uint16_t BCc = payload[2];
49 uint16_t BCd = payload[3];
52 if(
GetHexBits(BCa, 15, 15) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in BCa are incorrect"; }
53 if(
GetHexBits(BCb, 15, 15) != 1) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in BCb are incorrect"; }
54 if(
GetHexBits(BCc, 15, 15) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in BCc are incorrect"; }
55 if(
GetHexBits(BCd, 15, 15) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in BCd are incorrect"; }
73 uint16_t BCa = payload[0];
74 uint16_t BCb = payload[1];
75 uint16_t BCc = payload[2];
76 uint16_t BCd = payload[3];
82 int iOut = res->size() - 1;
87 if ( (res->at(iOut)).HasCounters() ==
true )
88 { (res->at(iOut)).add_format_error();
edm::LogError(
"L1T|EMTF") <<
"Why is there already a Counters object?";
goto write; }
97 (res->at(iOut)).set_Counters(Counters_);
virtual int checkFormat(const Block &block)
void set_track_counter(int bits)
std::vector< uint32_t > payload() const
#define DEFINE_L1T_UNPACKER(type)
const int Format_Errors() const
std::vector< EMTFOutput > EMTFOutputCollection
void set_orbit_counter(int bits)
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
uint16_t GetHexBits(uint16_t word, uint16_t lowBit, uint16_t highBit)