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;
131 int size = load32.size() * 4;
142 for (
unsigned i = 0;
i < load32.size(); ++
i) {
143 for (
unsigned j = 0;
j < 4; ++
j) {
144 fed_data.
data()[
i * 4 +
j] = (load32.at(
i) >> (8 *
j)) & 0xff;
162 std::istringstream iss(
line);
164 iss >> std::hex >>
d;