43 #include <boost/algorithm/string.hpp>
61 void readEvent(std::vector<uint32_t>& load32);
98 : filename_(iConfig.getUntrackedParameter<
std::
string>(
"filename",
"data.txt")),
99 fedId_(iConfig.getUntrackedParameter<
int>(
"fedId", 1)),
100 iAmc_(iConfig.getUntrackedParameter<
int>(
"iAmc", 1)),
101 boardId_(iConfig.getUntrackedParameter<
int>(
"boardId", 1)),
102 evType_(iConfig.getUntrackedParameter<
int>(
"eventType", 1)),
103 fwVer_(iConfig.getUntrackedParameter<
int>(
"fwVersion", 1)),
104 slinkHeaderSize_(iConfig.getUntrackedParameter<
int>(
"lenSlinkHeader", 8)),
105 slinkTrailerSize_(iConfig.getUntrackedParameter<
int>(
"lenSlinkTrailer", 8)) {
106 produces<FEDRawDataCollection>();
125 std::vector<uint32_t> load32;
151 std::istringstream iss(
line);
153 iss >> std::hex >>
d;
163 std::vector<uint64_t> load64;
164 for (
unsigned int i = 0;
i < load32.size();
i += 2) {
166 if (
i + 1 < load32.size())
167 word |= static_cast<uint64_t>(load32[
i + 1]) << 32;
168 load64.push_back(
word);
180 unsigned char* payload_start =
payload;
182 auto bxId =
iEvent.bunchCrossing();
183 auto evtId =
iEvent.id().event();