23 improveSeeds(iConfig.getParameter<bool>(
"improveSeeds")),
26 produces<TrajectorySeedCollection>();
27 produces<TrajectoryToSeedsMap>();
59 LogDebug(
"NuclearSeedGenerator") <<
"Number of trajectory in event :" << m_TrajectoryCollection->size() <<
"\n";
61 auto output = std::make_unique<TrajectorySeedCollection>();
62 auto outAssoc = std::make_unique<TrajectoryToSeedsMap>();
69 std::vector<std::pair<int, int> > assocPair;
72 for (std::vector<Trajectory>::const_iterator iTraj = m_TrajectoryCollection->begin();
73 iTraj != m_TrajectoryCollection->end();
84 output->insert(
output->end(), newSeeds->begin(), newSeeds->end());
87 for (
unsigned int j = 0;
j < newSeeds->size();
j++) {
88 assocPair.push_back(std::make_pair(i,
output->size() - newSeeds->size() +
j));
94 for (
std::vector<std::pair<int, int> >::const_iterator iVecP = assocPair.begin(); iVecP != assocPair.end(); iVecP++) {
NuclearSeedsEDProducer(const edm::ParameterSet &)
double rescaleErrorFactor
edm::ESGetToken< Propagator, TrackingComponentsRecord > propagatorToken_
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::ESGetToken< MeasurementTracker, CkfComponentsRecord > measurementTrackerToken_
bool getData(T &iHolder) const
edm::EDGetTokenT< TrajectoryCollection > producer_
NuclearInteractionFinder::Config config_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeomToken_
edm::ESGetToken< Chi2MeasurementEstimatorBase, TrackingComponentsRecord > estimatorToken_
~NuclearSeedsEDProducer() override
edm::ESGetToken< GeometricSearchTracker, TrackerRecoGeometryRecord > geomSearchTrackerToken_
T getParameter(std::string const &) const
std::vector< Trajectory > TrajectoryCollection
char data[epos_bytes_allocation]
void produce(edm::Event &, const edm::EventSetup &) override
edm::ESGetToken< NavigationSchool, NavigationSchoolRecord > navigationToken_
tuple MeasurementTrackerEvent
edm::EDGetTokenT< MeasurementTrackerEvent > mteToken_