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"),
58 iConfig.getParameter<
std::string>(
"outputFileExtension"),
62 channelSpecsOutputToGT_) {}
70 std::vector<l1t::PFJet> sortedJets;
71 sortedJets.reserve(
jets.size());
80 eventDataJets.
add({
"jets", 0}, outputJets);
91 std::vector<ap_uint<64>> jet_words;
94 if (
i <
jets.size()) {
99 jet_words.push_back(
j.encodedJet()[0]);
100 jet_words.push_back(
j.encodedJet()[1]);
113 desc.add<uint32_t>(
"nJets", 12);
114 desc.add<uint32_t>(
"nFramesPerBX", 9);
115 desc.add<uint32_t>(
"TMUX", 6);
116 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).