17 if(
payload.size() != 12) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Payload size in 'AMC Data Header' is different than expected"; }
47 if(
GetHexBits(HD1a, 12, 15) != 9) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD1a are incorrect"; }
48 if(
GetHexBits(HD1b, 12, 15) != 9) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD1b are incorrect"; }
49 if(
GetHexBits(HD1c, 12, 15) != 9) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD1c are incorrect"; }
50 if(
GetHexBits(HD1c, 0, 11) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD1c are incorrect"; }
51 if(
GetHexBits(HD1d, 12, 15) != 9) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD1d are incorrect"; }
52 if(
GetHexBits(HD2a, 12, 15) != 10) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD2a are incorrect"; }
53 if(
GetHexBits(HD2a, 0, 11) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD2a are incorrect"; }
54 if(
GetHexBits(HD2b, 12, 15) != 10) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD2b are incorrect"; }
55 if(
GetHexBits(HD2c, 12, 15) != 10) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD2c are incorrect"; }
56 if(
GetHexBits(HD2c, 11, 11) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD2c are incorrect"; }
57 if(
GetHexBits(HD2d, 12, 15) != 10) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD2d are incorrect"; }
58 if(
GetHexBits(HD3a, 9, 14) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD3a are incorrect"; }
59 if(
GetHexBits(HD3a, 15, 15) != 1) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD3a are incorrect"; }
60 if(
GetHexBits(HD3b, 11, 15) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD3b are incorrect"; }
61 if(
GetHexBits(HD3c, 11, 15) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD3c are incorrect"; }
62 if(
GetHexBits(HD3d, 11, 15) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD3d are incorrect"; }
104 res->push_back(EMTFDaqOut_);
105 int iOut = res->size() - 1;
111 if ( (res->at(iOut)).HasAMC13Header() ==
true )
112 { (res->at(iOut)).add_format_error();
edm::LogError(
"L1T|EMTF") <<
"Why is there already an AMC13Header object?";
goto write_AMC13; }
132 (res->at(iOut)).set_AMC13Header(AMC13Header_);
138 if ( (res->at(iOut)).HasMTF7Header() ==
true )
139 { (res->at(iOut)).add_format_error();
edm::LogError(
"L1T|EMTF") <<
"Why is there already an MTF7Header object?";
goto write_MTF7; }
153 (res->at(iOut)).set_MTF7Header(MTF7Header_);
159 if ( (res->at(iOut)).HasEventHeader() ==
true )
160 { (res->at(iOut)).add_format_error();
edm::LogError(
"L1T|EMTF") <<
"Why is there already an EventHeader object?";
goto write_Event; }
188 (res->at(iOut)).set_EventHeader(EventHeader_);
std::vector< uint32_t > payload() const
payload
payload postfix for testing
std::vector< EMTFDaqOut > EMTFDaqOutCollection
#define DEFINE_L1T_UNPACKER(type)
uint16_t GetHexBits(uint16_t word, uint16_t lowBit, uint16_t highBit)
void amc(const amc::Header &h)