CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 creatorPSet;
23  creatorPSet.addParameter<std::string>("propagator","PropagatorWithMaterial");
24  theGenerator = new SeedGeneratorFromRegionHits(hitsGenerator, 0,
25  SeedCreatorFactory::get()->create("SeedFromConsecutiveHitsCreator", creatorPSet)
26  );
27 
28 }
29 
31 {
32  delete theGenerator;
33 }
34 
36  const edm::Event &ev, const edm::EventSetup &es, const TrackingRegion& region)
37 {
38  theGenerator->run( seeds, region, ev, es);
39 }
T getParameter(std::string const &) const
SeedGeneratorFromRegionHits * theGenerator
TSGFromOrderedHits(const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
std::vector< TrajectorySeed > TrajectorySeedCollection
void addParameter(std::string const &name, T const &value)
Definition: ParameterSet.h:142
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)
SurfaceDeformation * create(int type, const std::vector< double > &params)
T get(const Candidate &c)
Definition: component.h:55