182 const auto convertedTrackData(
encodeTracks(convertedTracksCollection));
183 const auto selectedTrackData(
encodeTracks(convertedTracksHandle, selectedTracksHandle));
184 const auto vertexAssociatedTrackData(
encodeTracks(convertedTracksHandle, vertexAssociatedTracksHandle));
195 for (
size_t i = 0;
i < 18;
i++) {
196 eventDataTracks.
add({
"tracks",
i}, trackData.at(
i));
197 eventDataConvertedTracks.
add({
"tracks",
i}, convertedTrackData.at(
i));
198 eventDataSelectedTracks.
add({
"tracks",
i}, selectedTrackData.at(
i));
199 eventDataVertexAssociatedTracks.
add({
"tracks",
i}, vertexAssociatedTrackData.at(
i));
203 eventDataVertices.
add({
"vertices", 0}, vertexData.at(0));
206 std::vector<ap_uint<64>> sumsData;
207 sumsData.insert(sumsData.end(), jetsData.at(0).begin(), jetsData.at(0).end());
208 sumsData.insert(sumsData.end(), 24, 0);
209 sumsData.insert(sumsData.end(), htMissData.at(0).begin(), htMissData.at(0).end());
210 sumsData.insert(sumsData.end(), 1, 0);
211 sumsData.insert(sumsData.end(), etMissData.at(0).begin(), etMissData.at(0).end());
213 std::vector<ap_uint<64>> tracksVerticesData;
214 tracksVerticesData.insert(tracksVerticesData.end(), 36, 0);
215 tracksVerticesData.insert(tracksVerticesData.end(), vertexData.at(0).begin(), vertexData.at(0).end());
216 tracksVerticesData.insert(tracksVerticesData.end(), 2, 0);
219 eventDataGlobalTrigger.
add({
"sums", 0}, sumsData);
220 eventDataGlobalTrigger.
add({
"taus", 1}, std::vector<ap_uint<64>>(18, 0));
221 eventDataGlobalTrigger.
add({
"mesons", 2},
222 std::vector<ap_uint<64>>(39, 0));
223 eventDataGlobalTrigger.
add({
"vertices", 3}, tracksVerticesData);
l1t::demo::BoardDataWriter fileWriterVertexAssociatedTracks_
l1t::demo::BoardDataWriter fileWriterOutputToCorrelator_
std::array< std::vector< ap_uint< 64 > >, 1 > encodeHtSums(const edm::View< l1t::EtSum > &)
const edm::EDGetTokenT< edm::View< l1t::EtSum > > etMissToken_
const edm::EDGetTokenT< edm::View< Track_t > > convertedTracksToken_
void addEvent(const EventData &data)
void add(const LinkId &, const std::vector< ap_uint< 64 >> &)
std::array< std::vector< ap_uint< 64 > >, 18 > encodeTracks(const edm::View< TTTrack< Ref_Phase2TrackerDigi_ >> &, int debug=0)
const edm::EDGetTokenT< edm::View< l1t::EtSum > > htMissToken_
const edm::EDGetTokenT< edm::View< l1t::VertexWord > > verticesToken_
const edm::EDGetTokenT< edm::View< l1t::TkJetWord > > jetsToken_
l1t::demo::BoardDataWriter fileWriterInputTracks_
std::array< std::vector< ap_uint< 64 > >, 1 > encodeEtSums(const edm::View< l1t::EtSum > &)
std::array< std::vector< ap_uint< 64 > >, 1 > encodeVertices(const edm::View< l1t::VertexWord > &)
l1t::demo::BoardDataWriter fileWriterSelectedTracks_
const edm::EDGetTokenT< TrackCollection_t > convertedTrackCollectionToken_
const edm::EDGetTokenT< TrackRefCollection_t > selectedTracksToken_
std::array< std::vector< ap_uint< 64 > >, 1 > encodeTkJets(const edm::View< l1t::TkJetWord > &)
l1t::demo::BoardDataWriter fileWriterOutputToGlobalTrigger_
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).
const edm::EDGetTokenT< TrackRefCollection_t > vertexAssociatedTracksToken_
l1t::demo::BoardDataWriter fileWriterConvertedTracks_
const edm::EDGetTokenT< edm::View< Track_t > > tracksToken_