188 const auto convertedTrackData(
encodeTracks(convertedTracksCollection));
189 const auto selectedTrackData(
encodeTracks(convertedTracksHandle, selectedTracksHandle));
190 const auto vertexAssociatedTrackData(
encodeTracks(convertedTracksHandle, vertexAssociatedTracksHandle));
193 const auto jetsDispData(
encodeTkJets(jetsDispCollection));
195 const auto htMissDispData(
encodeHtSums(htMissDispCollection));
203 for (
size_t i = 0;
i < 18;
i++) {
204 eventDataTracks.
add({
"tracks",
i}, trackData.at(
i));
205 eventDataConvertedTracks.
add({
"tracks",
i}, convertedTrackData.at(
i));
206 eventDataSelectedTracks.
add({
"tracks",
i}, selectedTrackData.at(
i));
207 eventDataVertexAssociatedTracks.
add({
"tracks",
i}, vertexAssociatedTrackData.at(
i));
211 eventDataVertices.
add({
"vertices", 0}, vertexData.at(0));
214 std::vector<ap_uint<64>> sumsData;
215 sumsData.insert(sumsData.end(), jetsData.at(0).begin(), jetsData.at(0).end());
216 sumsData.insert(sumsData.end(), jetsDispData.at(0).begin(), jetsDispData.at(0).end());
217 sumsData.insert(sumsData.end(), htMissData.at(0).begin(), htMissData.at(0).end());
218 sumsData.insert(sumsData.end(), htMissDispData.at(0).begin(), htMissDispData.at(0).end());
219 sumsData.insert(sumsData.end(), etMissData.at(0).begin(), etMissData.at(0).end());
221 std::vector<ap_uint<64>> tracksVerticesData;
222 tracksVerticesData.insert(tracksVerticesData.end(), 36, 0);
223 tracksVerticesData.insert(tracksVerticesData.end(), vertexData.at(0).begin(), vertexData.at(0).end());
224 tracksVerticesData.insert(tracksVerticesData.end(), 2, 0);
227 eventDataGlobalTrigger.
add({
"sums", 0}, sumsData);
228 eventDataGlobalTrigger.
add({
"taus", 1}, std::vector<ap_uint<64>>(18, 0));
229 eventDataGlobalTrigger.
add({
"mesons", 2},
230 std::vector<ap_uint<64>>(39, 0));
231 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< l1t::EtSum > > htMissDispToken_
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< l1t::TkJetWord > > jetsDispToken_
const edm::EDGetTokenT< edm::View< Track_t > > tracksToken_