CMS 3D CMS Logo

TracksterLinkingPassthrough.cc
Go to the documentation of this file.
3 
4 using namespace ticl;
5 
7  const Inputs& input,
8  std::vector<Trackster>& resultTracksters,
9  std::vector<std::vector<unsigned int>>& linkedResultTracksters,
10  std::vector<std::vector<unsigned int>>& linkedTracksterIdToInputTracksterId) {
11  resultTracksters.reserve(input.tracksters.size());
12  linkedResultTracksters.resize(input.tracksters.size());
13  linkedTracksterIdToInputTracksterId.resize(input.tracksters.size());
14  // Merge all trackster collections into a single collection
15  for (size_t i = 0; i < input.tracksters.size(); ++i) {
16  resultTracksters.push_back(input.tracksters[i]);
17  linkedResultTracksters[i].push_back(resultTracksters.size() - 1);
18  linkedTracksterIdToInputTracksterId[i].push_back(resultTracksters.size() - 1);
19  }
20 }
static std::string const input
Definition: EdmProvDump.cc:50
void linkTracksters(const Inputs &input, std::vector< Trackster > &resultTracksters, std::vector< std::vector< unsigned int >> &linkedResultTracksters, std::vector< std::vector< unsigned int >> &linkedTracksterIdToInputTracksterId) override
Definition: Common.h:10