00001 #include "TSGFromOrderedHits.h" 00002 00003 #include "RecoTracker/TkTrackingRegions/interface/TrackingRegion.h" 00004 #include "RecoTracker/TkTrackingRegions/interface/OrderedHitsGeneratorFactory.h" 00005 #include "RecoTracker/TkTrackingRegions/interface/OrderedHitsGenerator.h" 00006 #include "RecoTracker/TkSeedGenerator/interface/SeedGeneratorFromRegionHits.h" 00007 00008 00009 TSGFromOrderedHits::TSGFromOrderedHits(const edm::ParameterSet &pset) 00010 : theConfig(pset), theGenerator(0) 00011 { 00012 00013 edm::ParameterSet hitsfactoryPSet = 00014 theConfig.getParameter<edm::ParameterSet>("OrderedHitsFactoryPSet"); 00015 std::string hitsfactoryName = hitsfactoryPSet.getParameter<std::string>("ComponentName"); 00016 OrderedHitsGenerator* hitsGenerator = 00017 OrderedHitsGeneratorFactory::get()->create( hitsfactoryName, hitsfactoryPSet); 00018 00019 theGenerator = new SeedGeneratorFromRegionHits( hitsGenerator, theConfig); 00020 00021 } 00022 00023 TSGFromOrderedHits::~TSGFromOrderedHits() 00024 { 00025 delete theGenerator; 00026 } 00027 00028 void TSGFromOrderedHits::run(TrajectorySeedCollection &seeds, 00029 const edm::Event &ev, const edm::EventSetup &es, const TrackingRegion& region) 00030 { 00031 theGenerator->run( seeds, region, ev, es); 00032 }