19 improveSeeds(iConfig.getParameter<bool>(
"improveSeeds")),
23 produces<TrajectorySeedCollection>();
24 produces<TrajectoryToSeedsMap>();
48 LogDebug(
"NuclearSeedGenerator") <<
"Number of trajectory in event :" << m_TrajectoryCollection->size() <<
"\n";
50 auto output = std::make_unique<TrajectorySeedCollection>();
51 auto outAssoc = std::make_unique<TrajectoryToSeedsMap>();
59 std::vector<std::pair<int, int> > assocPair;
62 for(std::vector<Trajectory>::const_iterator iTraj = m_TrajectoryCollection->begin(); iTraj != m_TrajectoryCollection->end(); iTraj++,i++) {
72 output->insert(
output->end(), newSeeds->begin(), newSeeds->end());
75 for(
unsigned int j=0; j<newSeeds->size(); j++) {
76 assocPair.push_back( std::make_pair( i,
output->size()-newSeeds->size()+j ) );
83 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.
virtual void beginRun(edm::Run const &run, const edm::EventSetup &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::unique_ptr< NuclearInteractionFinder > theNuclearInteractionFinder
edm::EDGetTokenT< TrajectoryCollection > producer_
~NuclearSeedsEDProducer()
std::vector< Trajectory > TrajectoryCollection
char data[epos_bytes_allocation]
virtual void produce(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< MeasurementTrackerEvent > mteToken_