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";
58 std::vector<std::pair<int, int> > assocPair;
61 for(std::vector<Trajectory>::const_iterator iTraj = m_TrajectoryCollection->begin(); iTraj != m_TrajectoryCollection->end(); iTraj++,i++) {
71 output->insert(output->end(), newSeeds->begin(), newSeeds->end());
74 for(
unsigned int j=0;
j<newSeeds->size();
j++) {
75 assocPair.push_back( std::make_pair( i, output->size()-newSeeds->size()+
j ) );
82 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
char data[epos_bytes_allocation]
virtual void produce(edm::Event &, const edm::EventSetup &) override