19 improveSeeds(iConfig.getParameter<bool>(
"improveSeeds")),
20 producer_(iConfig.getParameter<std::
string>(
"producer"))
22 produces<TrajectorySeedCollection>();
23 produces<TrajectoryToSeedsMap>();
47 LogDebug(
"NuclearSeedGenerator") <<
"Number of trajectory in event :" << m_TrajectoryCollection->size() <<
"\n";
56 std::vector<std::pair<int, int> > assocPair;
59 for(std::vector<Trajectory>::const_iterator iTraj = m_TrajectoryCollection->begin(); iTraj != m_TrajectoryCollection->end(); iTraj++,i++) {
69 output->insert(output->end(), newSeeds->begin(), newSeeds->end());
72 for(
unsigned int j=0;
j<newSeeds->size();
j++) {
73 assocPair.push_back( std::make_pair( i, output->size()-newSeeds->size()+
j ) );
80 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
std::vector< TrajectorySeed > TrajectorySeedCollection
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
~NuclearSeedsEDProducer()
Class used to obtain vector of all compatible TMs associated to a trajectory to be used by the Nuclea...
std::auto_ptr< NuclearInteractionFinder > theNuclearInteractionFinder
virtual void produce(edm::Event &, const edm::EventSetup &) override