68 {{
"tracks", 0}, {0, 18, 36}},
69 {{
"tracks", 1}, {1, 19, 37}},
70 {{
"tracks", 2}, {2, 20, 38}},
71 {{
"tracks", 3}, {3, 21, 39}},
72 {{
"tracks", 4}, {4, 22, 40}},
73 {{
"tracks", 5}, {5, 23, 41}},
74 {{
"tracks", 6}, {6, 24, 42}},
75 {{
"tracks", 7}, {7, 25, 43}},
76 {{
"tracks", 8}, {8, 26, 44}},
77 {{
"tracks", 9}, {9, 27, 45}},
78 {{
"tracks", 10}, {10, 28, 46}},
79 {{
"tracks", 11}, {11, 29, 47}},
80 {{
"tracks", 12}, {12, 30, 48}},
81 {{
"tracks", 13}, {13, 31, 49}},
82 {{
"tracks", 14}, {14, 32, 50}},
83 {{
"tracks", 15}, {15, 33, 51}},
84 {{
"tracks", 16}, {16, 34, 52}},
85 {{
"tracks", 17}, {17, 35, 53}}};
91 const std::map<l1t::demo::LinkId, std::pair<l1t::demo::ChannelSpec, std::vector<size_t>>>
118 convertedTracksToken_(
120 verticesToken_(consumes<
edm::
View<
l1t::VertexWord>>(iConfig.getUntrackedParameter<
edm::
InputTag>(
"vertices"))),
122 iConfig.getUntrackedParameter<
std::
string>(
"inputFilename"),
123 kFramesPerTMUXPeriod,
129 iConfig.getUntrackedParameter<
std::
string>(
"inputConvertedFilename"),
130 kFramesPerTMUXPeriod,
136 iConfig.getUntrackedParameter<
std::
string>(
"outputFilename"),
137 kFramesPerTMUXPeriod,
140 kChannelSpecsOutputToCorrelator) {}
154 for (
size_t i = 0;
i < 18;
i++) {
155 eventDataTracks.
add({
"tracks",
i}, trackData.at(
i));
156 eventDataConvertedTracks.
add({
"tracks",
i}, convertedTrackData.at(
i));
160 eventDataVertices.
add({
"vertices", 0}, outputData.at(0));
183 desc.addUntracked<
std::string>(
"inputConvertedFilename",
"L1GTTInputConvertedFile");
184 desc.addUntracked<
std::string>(
"outputFilename",
"L1GTTOutputToCorrelatorFile");
186 descriptions.
add(
"GTTFileWriter",
desc);
static constexpr size_t kTrackTMUX
l1t::demo::BoardDataWriter fileWriterOutputToCorrelator_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void addEvent(const EventData &data)
FileFormat parseFileFormat(const std::string &)
edm::EDGetTokenT< edm::View< l1t::VertexWord > > verticesToken_
void add(const LinkId &, const std::vector< ap_uint< 64 >> &)
static constexpr size_t kGapLengthOutput
std::array< std::vector< ap_uint< 64 > >, 18 > encodeTracks(const edm::View< TTTrack< Ref_Phase2TrackerDigi_ >> &, int debug=0)
edm::EDGetTokenT< edm::View< Track_t > > tracksToken_
static constexpr size_t kMaxLinesPerFile
GTTFileWriter(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
static constexpr size_t kFramesPerTMUXPeriod
TTTrack< Ref_Phase2TrackerDigi_ > Track_t
l1t::demo::BoardDataWriter fileWriterInputTracks_
const std::map< l1t::demo::LinkId, std::pair< l1t::demo::ChannelSpec, std::vector< size_t > > > kChannelSpecsOutputToCorrelator
edm::EDGetTokenT< edm::View< Track_t > > convertedTracksToken_
Class to store the L1 Track Trigger tracks.
std::array< std::vector< ap_uint< 64 > >, 1 > encodeVertices(const edm::View< l1t::VertexWord > &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const std::map< l1t::demo::LinkId, std::vector< size_t > > kChannelIdsInput
const std::map< std::string, l1t::demo::ChannelSpec > kChannelSpecsInput
static constexpr size_t kGTTBoardTMUX
static constexpr size_t kGapLengthInput
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).
l1t::demo::BoardDataWriter fileWriterConvertedTracks_
void analyze(const edm::Event &, const edm::EventSetup &) override