CMS 3D CMS Logo

TSGFromOrderedHits.cc
Go to the documentation of this file.
1 #include "TSGFromOrderedHits.h"
2 
10 
13 
15  edm::ParameterSet hitsfactoryPSet = pset.getParameter<edm::ParameterSet>("OrderedHitsFactoryPSet");
16  std::string hitsfactoryName = hitsfactoryPSet.getParameter<std::string>("ComponentName");
17 
18  edm::ParameterSet seedCreatorPSet = pset.getParameter<edm::ParameterSet>("SeedCreatorPSet");
19  std::string seedCreatorType = seedCreatorPSet.getParameter<std::string>("ComponentName");
20 
21  theGenerator = std::make_unique<SeedGeneratorFromRegionHits>(
22  OrderedHitsGeneratorFactory::get()->create(hitsfactoryName, hitsfactoryPSet, iC),
23  nullptr,
24  SeedCreatorFactory::get()->create(seedCreatorType, seedCreatorPSet, edm::ConsumesCollector(iC)));
25 }
26 
28 
30  const edm::Event &ev,
31  const edm::EventSetup &es,
32  const TrackingRegion &region) {
33  theGenerator->run(seeds, region, ev, es);
34 }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::unique_ptr< SeedGeneratorFromRegionHits > theGenerator
TSGFromOrderedHits(const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
void run(TrajectorySeedCollection &seeds, const edm::Event &ev, const edm::EventSetup &es, const TrackingRegion &region) override
std::vector< TrajectorySeed > TrajectorySeedCollection
~TSGFromOrderedHits() override
#define get