#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 12 of file TSGFromOrderedHits.cc.
References init().
: theLastRun(0), theConfig(pset), theGenerator(0) { init(); }
TSGFromOrderedHits::~TSGFromOrderedHits | ( | ) | [virtual] |
Definition at line 29 of file TSGFromOrderedHits.cc.
References theGenerator.
{ delete theGenerator; }
void TSGFromOrderedHits::init | ( | void | ) | [private] |
Definition at line 17 of file TSGFromOrderedHits.cc.
References 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; theGenerator = new SeedGeneratorFromRegionHits( hitsGenerator, theConfig); }
void TSGFromOrderedHits::run | ( | TrajectorySeedCollection & | seeds, |
const edm::Event & | ev, | ||
const edm::EventSetup & | es, | ||
const TrackingRegion & | region | ||
) | [private, virtual] |
Reimplemented from TrackerSeedGenerator.
Definition at line 34 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().