CMS 3D CMS Logo

TSGFromOrderedHits.cc
Go to the documentation of this file.
1 #include "TSGFromOrderedHits.h"
2 
8 
11 
12 
14  : theLastRun(0), theConfig(pset), theGenerator(0)
15 {
16  edm::ParameterSet hitsfactoryPSet =
17  theConfig.getParameter<edm::ParameterSet>("OrderedHitsFactoryPSet");
18  std::string hitsfactoryName = hitsfactoryPSet.getParameter<std::string>("ComponentName");
19  OrderedHitsGenerator* hitsGenerator =
20  OrderedHitsGeneratorFactory::get()->create( hitsfactoryName, hitsfactoryPSet, iC);
21 
22  edm::ParameterSet seedCreatorPSet = theConfig.getParameter<edm::ParameterSet>("SeedCreatorPSet");
23  std::string seedCreatorType = seedCreatorPSet.getParameter<std::string>("ComponentName");
24 
25  theGenerator = new SeedGeneratorFromRegionHits(hitsGenerator, 0,
26  SeedCreatorFactory::get()->create(seedCreatorType, seedCreatorPSet)
27  );
28 
29 }
30 
32 {
33  delete theGenerator;
34 }
35 
37  const edm::Event &ev, const edm::EventSetup &es, const TrackingRegion& region)
38 {
39  theGenerator->run( seeds, region, ev, es);
40 }
T getParameter(std::string const &) const
def create(alignables, pedeDump, additionalData, outputFile, config)
SeedGeneratorFromRegionHits * theGenerator
TSGFromOrderedHits(const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
bool ev
std::vector< TrajectorySeed > TrajectorySeedCollection
edm::ParameterSet theConfig
virtual void run(TrajectorySeedCollection &seeds, const edm::Event &ev, const edm::EventSetup &es, const TrackingRegion &region)
void run(TrajectorySeedCollection &seedCollection, const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es)
T get(const Candidate &c)
Definition: component.h:55