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)
 
 ~TSGFromOrderedHits () override
 
- 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 run (TrajectorySeedCollection &seeds, const edm::Event &ev, const edm::EventSetup &es, const TrackingRegion &region) override
 

Private Attributes

std::unique_ptr< 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 reco::get(), edm::ParameterSet::getParameter(), AlCaHLTBitMon_QueryRunRegistry::string, theGenerator, and ~TSGFromOrderedHits().

14  : theLastRun(0)
15 {
16  edm::ParameterSet hitsfactoryPSet =
17  pset.getParameter<edm::ParameterSet>("OrderedHitsFactoryPSet");
18  std::string hitsfactoryName = hitsfactoryPSet.getParameter<std::string>("ComponentName");
19 
20  edm::ParameterSet seedCreatorPSet = pset.getParameter<edm::ParameterSet>("SeedCreatorPSet");
21  std::string seedCreatorType = seedCreatorPSet.getParameter<std::string>("ComponentName");
22 
23  theGenerator = std::make_unique<SeedGeneratorFromRegionHits>(OrderedHitsGeneratorFactory::get()->create( hitsfactoryName, hitsfactoryPSet, iC),
24  nullptr,
25  SeedCreatorFactory::get()->create(seedCreatorType, seedCreatorPSet)
26  );
27 
28 }
T getParameter(std::string const &) const
std::unique_ptr< SeedGeneratorFromRegionHits > theGenerator
edm::RunNumber_t theLastRun
T get(const Candidate &c)
Definition: component.h:55
TSGFromOrderedHits::~TSGFromOrderedHits ( )
overridedefault

Referenced by TSGFromOrderedHits().

Member Function Documentation

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

Reimplemented from TrackerSeedGenerator.

Definition at line 32 of file TSGFromOrderedHits.cc.

References theGenerator.

34 {
35  theGenerator->run( seeds, region, ev, es);
36 }
std::unique_ptr< SeedGeneratorFromRegionHits > theGenerator

Member Data Documentation

std::unique_ptr<SeedGeneratorFromRegionHits> TSGFromOrderedHits::theGenerator
private

Definition at line 25 of file TSGFromOrderedHits.h.

Referenced by run(), and TSGFromOrderedHits().

edm::RunNumber_t TSGFromOrderedHits::theLastRun
private

Definition at line 24 of file TSGFromOrderedHits.h.