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_
T getParameter(std::string const &) const
void beginRun(edm::Run const &run, const edm::EventSetup &) override
std::unique_ptr< NuclearInteractionFinder > theNuclearInteractionFinder
edm::ESGetToken< MeasurementTracker, CkfComponentsRecord > measurementTrackerToken_
edm::EDGetTokenT< TrajectoryCollection > producer_
NuclearInteractionFinder::Config config_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > trackerGeomToken_
edm::ESGetToken< Chi2MeasurementEstimatorBase, TrackingComponentsRecord > estimatorToken_
~NuclearSeedsEDProducer() override
#define DEFINE_FWK_MODULE(type)
bool getData(T &iHolder) const
edm::ESGetToken< GeometricSearchTracker, TrackerRecoGeometryRecord > geomSearchTrackerToken_
std::vector< Trajectory > TrajectoryCollection
char data[epos_bytes_allocation]
void produce(edm::Event &, const edm::EventSetup &) override
edm::ESGetToken< NavigationSchool, NavigationSchoolRecord > navigationToken_
edm::EDGetTokenT< MeasurementTrackerEvent > mteToken_