42 std::vector<ap_uint<64>>
encodeJets(
const std::vector<l1t::PFJet>
jets);
49 : nJets_(iConfig.getParameter<unsigned>(
"nJets")),
50 nFramesPerBX_(iConfig.getParameter<unsigned>(
"nFramesPerBX")),
51 ctl2BoardTMUX_(iConfig.getParameter<unsigned>(
"TMUX")),
52 gapLengthOutput_(ctl2BoardTMUX_ * nFramesPerBX_ - 2 * nJets_),
53 maxLinesPerFile_(iConfig.getParameter<unsigned>(
"maxLinesPerFile")),
57 iConfig.getParameter<
std::string>(
"outputFilename"),
61 channelSpecsOutputToGT_) {}
69 std::vector<l1t::PFJet> sortedJets;
70 sortedJets.reserve(
jets.size());
79 eventDataJets.
add({
"jets", 0}, outputJets);
90 std::vector<ap_uint<64>> jet_words;
93 if (
i <
jets.size()) {
98 jet_words.push_back(
j.encodedJet()[0]);
99 jet_words.push_back(
j.encodedJet()[1]);
111 desc.add<uint32_t>(
"nJets", 12);
112 desc.add<uint32_t>(
"nFramesPerBX", 9);
113 desc.add<uint32_t>(
"TMUX", 6);
114 desc.add<uint32_t>(
"maxLinesPerFile", 1024);
std::map< l1t::demo::LinkId, std::pair< l1t::demo::ChannelSpec, std::vector< size_t > > > channelSpecsOutputToGT_
void addEvent(const EventData &data)
FileFormat parseFileFormat(const std::string &)
void add(const LinkId &, const std::vector< ap_uint< 64 >> &)
L1CTJetFileWriter(const edm::ParameterSet &)
void addDefault(ParameterSetDescription const &psetDescription)
l1t::demo::BoardDataWriter fileWriterOutputToGT_
#define DEFINE_FWK_MODULE(type)
void analyze(const edm::Event &, const edm::EventSetup &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< ap_uint< 64 > > encodeJets(const std::vector< l1t::PFJet > jets)
edm::EDGetTokenT< edm::View< l1t::PFJet > > jetsToken_
Class representing information phase-2 ATCA I/O data corresponding to a single event, with logical channel IDs (essentially string-uint pairs, e.g. tracks-0 to tracks-17).