#include <TSGFromOrderedHits.h>
Public Member Functions | |
TSGFromOrderedHits (const edm::ParameterSet &pset) | |
virtual | ~TSGFromOrderedHits () |
Private Member Functions | |
void | init () |
virtual void | run (TrajectorySeedCollection &seeds, const edm::Event &ev, const edm::EventSetup &es, const TrackingRegion ®ion) |
Private Attributes | |
edm::ParameterSet | theConfig |
SeedGeneratorFromRegionHits * | theGenerator |
edm::RunNumber_t | theLastRun |
Definition at line 12 of file TSGFromOrderedHits.h.
TSGFromOrderedHits::TSGFromOrderedHits | ( | const edm::ParameterSet & | pset | ) |
Definition at line 13 of file TSGFromOrderedHits.cc.
References init().
: theLastRun(0), theConfig(pset), theGenerator(0) { init(); }
TSGFromOrderedHits::~TSGFromOrderedHits | ( | ) | [virtual] |
Definition at line 35 of file TSGFromOrderedHits.cc.
References theGenerator.
{ delete theGenerator; }
void TSGFromOrderedHits::init | ( | void | ) | [private] |
Definition at line 18 of file TSGFromOrderedHits.cc.
References edm::ParameterSet::addParameter(), SurfaceDeformationFactory::create(), reco::get(), edm::ParameterSet::getParameter(), theConfig, and theGenerator.
Referenced by run(), and TSGFromOrderedHits().
{ edm::ParameterSet hitsfactoryPSet = theConfig.getParameter<edm::ParameterSet>("OrderedHitsFactoryPSet"); std::string hitsfactoryName = hitsfactoryPSet.getParameter<std::string>("ComponentName"); OrderedHitsGenerator* hitsGenerator = OrderedHitsGeneratorFactory::get()->create( hitsfactoryName, hitsfactoryPSet); if (theGenerator) delete theGenerator; edm::ParameterSet creatorPSet; creatorPSet.addParameter<std::string>("propagator","PropagatorWithMaterial"); theGenerator = new SeedGeneratorFromRegionHits(hitsGenerator, 0, SeedCreatorFactory::get()->create("SeedFromConsecutiveHitsCreator", creatorPSet) ); }
void TSGFromOrderedHits::run | ( | TrajectorySeedCollection & | seeds, |
const edm::Event & | ev, | ||
const edm::EventSetup & | es, | ||
const TrackingRegion & | region | ||
) | [private, virtual] |
Reimplemented from TrackerSeedGenerator.
Definition at line 40 of file TSGFromOrderedHits.cc.
References init(), SeedGeneratorFromRegionHits::run(), edm::Event::run(), theGenerator, and theLastRun.
{ edm::RunNumber_t thisRun = ev.run(); if (thisRun != theLastRun) { theLastRun = thisRun; init(); } theGenerator->run( seeds, region, ev, es); }
Definition at line 26 of file TSGFromOrderedHits.h.
Referenced by init().
Definition at line 27 of file TSGFromOrderedHits.h.
Referenced by init(), run(), and ~TSGFromOrderedHits().
Definition at line 25 of file TSGFromOrderedHits.h.
Referenced by run().