22 produces<TrajectorySeedCollection>();
23 produces<TrajectoryToSeedsMap>();
39 LogDebug(
"NuclearSeedGenerator") <<
"Number of trajectory in event :" << m_TrajectoryCollection->size() <<
"\n";
41 auto output = std::make_unique<TrajectorySeedCollection>();
42 auto outAssoc = std::make_unique<TrajectoryToSeedsMap>();
49 std::vector<std::pair<int, int> > assocPair;
52 for (std::vector<Trajectory>::const_iterator iTraj = m_TrajectoryCollection->begin();
53 iTraj != m_TrajectoryCollection->end();
64 output->insert(
output->end(), newSeeds->begin(), newSeeds->end());
67 for (
unsigned int j = 0;
j < newSeeds->size();
j++) {
68 assocPair.push_back(std::make_pair(
i,
output->size() - newSeeds->size() +
j));
74 for (
std::vector<std::pair<int, int> >::const_iterator iVecP = assocPair.begin(); iVecP != assocPair.end(); iVecP++) {