CMS 3D CMS Logo

TSGFromOrderedHits.cc
Go to the documentation of this file.
1 #include "TSGFromOrderedHits.h"
2 
8 
11 
13  edm::ParameterSet hitsfactoryPSet = pset.getParameter<edm::ParameterSet>("OrderedHitsFactoryPSet");
14  std::string hitsfactoryName = hitsfactoryPSet.getParameter<std::string>("ComponentName");
15 
16  edm::ParameterSet seedCreatorPSet = pset.getParameter<edm::ParameterSet>("SeedCreatorPSet");
17  std::string seedCreatorType = seedCreatorPSet.getParameter<std::string>("ComponentName");
18 
19  theGenerator = std::make_unique<SeedGeneratorFromRegionHits>(
20  OrderedHitsGeneratorFactory::get()->create(hitsfactoryName, hitsfactoryPSet, iC),
21  nullptr,
22  SeedCreatorFactory::get()->create(seedCreatorType, seedCreatorPSet));
23 }
24 
26 
28  const edm::Event &ev,
29  const edm::EventSetup &es,
30  const TrackingRegion &region) {
31  theGenerator->run(seeds, region, ev, es);
32 }
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