CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 }
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 getParameter(std::string const &) const
Definition: ParameterSet.h:303
#define get