19 improveSeeds(iConfig.getParameter<bool>(
"improveSeeds")),
23 produces<TrajectorySeedCollection>();
24 produces<TrajectoryToSeedsMap>();
48 LogDebug(
"NuclearSeedGenerator") <<
"Number of trajectory in event :" << m_TrajectoryCollection->size() <<
"\n";
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 &)
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_
std::vector< TrajectorySeed > TrajectorySeedCollection
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
~NuclearSeedsEDProducer()
tuple MeasurementTrackerEvent
std::vector< Trajectory > TrajectoryCollection
virtual void produce(edm::Event &, const edm::EventSetup &) override
edm::EDGetTokenT< MeasurementTrackerEvent > mteToken_