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;
150 LogDebug(
"L1T") <<
"Packing FED ID " <<
fedId_ <<
" size " << fed_data.size();
161 while (getline(
file_, line) && !line.empty()) {
162 std::istringstream iss(line);
164 iss >> std::hex >>
d;
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
#define DEFINE_FWK_MODULE(type)
void addDefault(ParameterSetDescription const &psetDescription)
void resize(size_t newsize)
Log< level::Info, false > LogInfo
~AMC13DumpToRaw() override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void readEvent(std::vector< uint32_t > &load32)
void produce(edm::Event &, const edm::EventSetup &) override
tuple size
Write out results.
AMC13DumpToRaw(const edm::ParameterSet &)