39 if(payload.size() != 4) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Payload size in 'RPC Data Record' is different than expected"; }
42 if(
GetHexBits(payload[0], 16, 31) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Payload[0] has more than 16 bits in 'RPC Data Record'"; }
43 if(
GetHexBits(payload[1], 16, 31) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Payload[1] has more than 16 bits in 'RPC Data Record'"; }
44 if(
GetHexBits(payload[2], 16, 31) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Payload[2] has more than 16 bits in 'RPC Data Record'"; }
45 if(
GetHexBits(payload[3], 16, 31) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Payload[3] has more than 16 bits in 'RPC Data Record'"; }
47 uint16_t RPCa = payload[0];
48 uint16_t RPCb = payload[1];
49 uint16_t RPCc = payload[2];
50 uint16_t RPCd = payload[3];
53 if(
GetHexBits(RPCa, 15, 15) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in RPCa are incorrect"; }
54 if(
GetHexBits(RPCb, 15, 15) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in RPCb are incorrect"; }
55 if(
GetHexBits(RPCc, 12, 13) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in RPCc are incorrect"; }
56 if(
GetHexBits(RPCc, 15, 15) != 1) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in RPCc are incorrect"; }
57 if(
GetHexBits(RPCd, 3, 15) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in RPCd are incorrect"; }
75 uint16_t RPCa = payload[0];
76 uint16_t RPCb = payload[1];
77 uint16_t RPCc = payload[2];
78 uint16_t RPCd = payload[3];
84 int iOut = res->size() - 1;
109 (res->at(iOut)).push_RPC(RPC_);
void set_link_number(int bits)
const int Format_Errors() const
void set_partition_data(int bits)
void set_prt_delay(int bits)
virtual bool unpack(const Block &block, UnpackerCollections *coll) override
std::vector< uint32_t > payload() const
#define DEFINE_L1T_UNPACKER(type)
void set_partition_num(int bits)
std::vector< EMTFOutput > EMTFOutputCollection
uint16_t GetHexBits(uint16_t word, uint16_t lowBit, uint16_t highBit)
virtual int checkFormat(const Block &block)