CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
TSGFromOrderedHits Class Reference

#include <TSGFromOrderedHits.h>

Inheritance diagram for TSGFromOrderedHits:
TrackerSeedGenerator

Public Member Functions

 TSGFromOrderedHits (const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
 
virtual ~TSGFromOrderedHits ()
 
- Public Member Functions inherited from TrackerSeedGenerator
const edm::EventgetEvent () const
 
virtual void init (const MuonServiceProxy *service)
 
virtual void setEvent (const edm::Event &)
 
 TrackerSeedGenerator ()
 
virtual void trackerSeeds (const TrackCand &, const TrackingRegion &, const TrackerTopology *, BTSeedCollection &)
 
virtual ~TrackerSeedGenerator ()
 destructor More...
 

Private Member Functions

void init ()
 
virtual void run (TrajectorySeedCollection &seeds, const edm::Event &ev, const edm::EventSetup &es, const TrackingRegion &region)
 

Private Attributes

edm::ParameterSet theConfig
 
SeedGeneratorFromRegionHitstheGenerator
 
edm::RunNumber_t theLastRun
 

Additional Inherited Members

- Public Types inherited from TrackerSeedGenerator
typedef std::vector< TrajectorySeedBTSeedCollection
 
typedef std::pair< const Trajectory *, reco::TrackRefTrackCand
 
- Protected Attributes inherited from TrackerSeedGenerator
const edm::EventtheEvent
 
const MuonServiceProxytheProxyService
 

Detailed Description

Definition at line 13 of file TSGFromOrderedHits.h.

Constructor & Destructor Documentation

TSGFromOrderedHits::TSGFromOrderedHits ( const edm::ParameterSet pset,
edm::ConsumesCollector iC 
)

Definition at line 13 of file TSGFromOrderedHits.cc.

References beamerCreator::create(), reco::get(), edm::ParameterSet::getParameter(), AlCaHLTBitMon_QueryRunRegistry::string, theConfig, and theGenerator.

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 }
T getParameter(std::string const &) const
def create(alignables, pedeDump, additionalData, outputFile, config)
SeedGeneratorFromRegionHits * theGenerator
edm::RunNumber_t theLastRun
edm::ParameterSet theConfig
T get(const Candidate &c)
Definition: component.h:55
TSGFromOrderedHits::~TSGFromOrderedHits ( )
virtual

Definition at line 31 of file TSGFromOrderedHits.cc.

References theGenerator.

32 {
33  delete theGenerator;
34 }
SeedGeneratorFromRegionHits * theGenerator

Member Function Documentation

void TSGFromOrderedHits::init ( )
private
void TSGFromOrderedHits::run ( TrajectorySeedCollection seeds,
const edm::Event ev,
const edm::EventSetup es,
const TrackingRegion region 
)
privatevirtual

Reimplemented from TrackerSeedGenerator.

Definition at line 36 of file TSGFromOrderedHits.cc.

References SeedGeneratorFromRegionHits::run(), and theGenerator.

38 {
39  theGenerator->run( seeds, region, ev, es);
40 }
SeedGeneratorFromRegionHits * theGenerator
void run(TrajectorySeedCollection &seedCollection, const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es)

Member Data Documentation

edm::ParameterSet TSGFromOrderedHits::theConfig
private

Definition at line 27 of file TSGFromOrderedHits.h.

Referenced by TSGFromOrderedHits().

SeedGeneratorFromRegionHits* TSGFromOrderedHits::theGenerator
private

Definition at line 28 of file TSGFromOrderedHits.h.

Referenced by run(), TSGFromOrderedHits(), and ~TSGFromOrderedHits().

edm::RunNumber_t TSGFromOrderedHits::theLastRun
private

Definition at line 26 of file TSGFromOrderedHits.h.