39 if(
payload.size() != 12) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Payload size in 'AMC Data Header' is different than expected"; }
69 if(
GetHexBits(HD1a, 12, 15) != 9) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD1a are incorrect"; }
70 if(
GetHexBits(HD1b, 12, 15) != 9) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD1b are incorrect"; }
71 if(
GetHexBits(HD1c, 12, 15) != 9) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD1c are incorrect"; }
72 if(
GetHexBits(HD1d, 12, 15) != 9) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD1d are incorrect"; }
73 if(
GetHexBits(HD2a, 12, 15) != 10) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD2a are incorrect"; }
74 if(
GetHexBits(HD2b, 12, 15) != 10) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD2b are incorrect"; }
75 if(
GetHexBits(HD2c, 12, 15) != 10) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD2c are incorrect"; }
76 if(
GetHexBits(HD2d, 12, 15) != 10) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD2d are incorrect"; }
77 if(
GetHexBits(HD3a, 15, 15) != 1) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD3a are incorrect"; }
78 if(
GetHexBits(HD3b, 15, 15) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD3b are incorrect"; }
79 if(
GetHexBits(HD3c, 15, 15) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD3c are incorrect"; }
80 if(
GetHexBits(HD3d, 15, 15) != 0) { errors += 1;
edm::LogError(
"L1T|EMTF") <<
"Format identifier bits in HD3d are incorrect"; }
122 res->push_back(EMTFDaqOut_);
123 int iOut = res->size() - 1;
129 if ( (res->at(iOut)).HasAMC13Header() ==
true )
130 { (res->at(iOut)).add_format_error();
edm::LogError(
"L1T|EMTF") <<
"Why is there already an AMC13Header object?";
goto write_AMC13; }
150 (res->at(iOut)).set_AMC13Header(AMC13Header_);
156 if ( (res->at(iOut)).HasMTF7Header() ==
true )
157 { (res->at(iOut)).add_format_error();
edm::LogError(
"L1T|EMTF") <<
"Why is there already an MTF7Header object?";
goto write_MTF7; }
171 (res->at(iOut)).set_MTF7Header(MTF7Header_);
177 if ( (res->at(iOut)).HasEventHeader() ==
true )
178 { (res->at(iOut)).add_format_error();
edm::LogError(
"L1T|EMTF") <<
"Why is there already an EventHeader object?";
goto write_Event; }
208 (res->at(iOut)).set_EventHeader(EventHeader_);
const std::vector< uint32_t > & payload() const
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)