19 improveSeeds(iConfig.getParameter<bool>(
"improveSeeds")),
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++) {
NuclearSeedsEDProducer(const edm::ParameterSet &)
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void beginRun(edm::Run const &run, const edm::EventSetup &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::unique_ptr< NuclearInteractionFinder > theNuclearInteractionFinder
edm::EDGetTokenT< TrajectoryCollection > producer_
~NuclearSeedsEDProducer() override
std::vector< Trajectory > TrajectoryCollection
char data[epos_bytes_allocation]
void produce(edm::Event &, const edm::EventSetup &) override
tuple MeasurementTrackerEvent
edm::EDGetTokenT< MeasurementTrackerEvent > mteToken_