CMS 3D CMS Logo

TSGFromOrderedHits.cc
Go to the documentation of this file.
1 #include "TSGFromOrderedHits.h"
2 
8 
11 
12 
14  : theLastRun(0)
15 {
16  edm::ParameterSet hitsfactoryPSet =
17  pset.getParameter<edm::ParameterSet>("OrderedHitsFactoryPSet");
18  std::string hitsfactoryName = hitsfactoryPSet.getParameter<std::string>("ComponentName");
19 
20  edm::ParameterSet seedCreatorPSet = pset.getParameter<edm::ParameterSet>("SeedCreatorPSet");
21  std::string seedCreatorType = seedCreatorPSet.getParameter<std::string>("ComponentName");
22 
23  theGenerator = std::make_unique<SeedGeneratorFromRegionHits>(OrderedHitsGeneratorFactory::get()->create( hitsfactoryName, hitsfactoryPSet, iC),
24  nullptr,
25  SeedCreatorFactory::get()->create(seedCreatorType, seedCreatorPSet)
26  );
27 
28 }
29 
31 
33  const edm::Event &ev, const edm::EventSetup &es, const TrackingRegion& region)
34 {
35  theGenerator->run( seeds, region, ev, es);
36 }
T getParameter(std::string const &) const
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
bool ev
std::vector< TrajectorySeed > TrajectorySeedCollection
~TSGFromOrderedHits() override
T get(const Candidate &c)
Definition: component.h:55