CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 
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 &, 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
< TrajectorySeed
BTSeedCollection
 
typedef std::pair< const
Trajectory *, reco::TrackRef
TrackCand
 
- Protected Attributes inherited from TrackerSeedGenerator
const edm::EventtheEvent
 
const MuonServiceProxytheProxyService
 

Detailed Description

Definition at line 12 of file TSGFromOrderedHits.h.

Constructor & Destructor Documentation

TSGFromOrderedHits::TSGFromOrderedHits ( const edm::ParameterSet pset)

Definition at line 12 of file TSGFromOrderedHits.cc.

References init().

13  : theLastRun(0), theConfig(pset), theGenerator(0)
14 {
15  init();
16 }
SeedGeneratorFromRegionHits * theGenerator
edm::RunNumber_t theLastRun
edm::ParameterSet theConfig
TSGFromOrderedHits::~TSGFromOrderedHits ( )
virtual

Definition at line 29 of file TSGFromOrderedHits.cc.

References theGenerator.

30 {
31  delete theGenerator;
32 }
SeedGeneratorFromRegionHits * theGenerator

Member Function Documentation

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().

18 {
19  edm::ParameterSet hitsfactoryPSet =
20  theConfig.getParameter<edm::ParameterSet>("OrderedHitsFactoryPSet");
21  std::string hitsfactoryName = hitsfactoryPSet.getParameter<std::string>("ComponentName");
22  OrderedHitsGenerator* hitsGenerator =
23  OrderedHitsGeneratorFactory::get()->create( hitsfactoryName, hitsfactoryPSet);
24 
25  if (theGenerator) delete theGenerator;
26  theGenerator = new SeedGeneratorFromRegionHits( hitsGenerator, theConfig);
27 }
T getParameter(std::string const &) const
SeedGeneratorFromRegionHits * theGenerator
edm::ParameterSet theConfig
T get(const Candidate &c)
Definition: component.h:56
void TSGFromOrderedHits::run ( TrajectorySeedCollection seeds,
const edm::Event ev,
const edm::EventSetup es,
const TrackingRegion region 
)
privatevirtual

Reimplemented from TrackerSeedGenerator.

Definition at line 34 of file TSGFromOrderedHits.cc.

References init(), SeedGeneratorFromRegionHits::run(), edm::Event::run(), theGenerator, and theLastRun.

36 {
37  edm::RunNumber_t thisRun = ev.run();
38  if (thisRun != theLastRun) { theLastRun = thisRun; init(); }
39  theGenerator->run( seeds, region, ev, es);
40 }
SeedGeneratorFromRegionHits * theGenerator
edm::RunNumber_t theLastRun
RunNumber_t run() const
Definition: Event.h:66
void run(TrajectorySeedCollection &seedCollection, const TrackingRegion &region, const edm::Event &ev, const edm::EventSetup &es)
unsigned int RunNumber_t
Definition: EventRange.h:32

Member Data Documentation

edm::ParameterSet TSGFromOrderedHits::theConfig
private

Definition at line 26 of file TSGFromOrderedHits.h.

Referenced by init().

SeedGeneratorFromRegionHits* TSGFromOrderedHits::theGenerator
private

Definition at line 27 of file TSGFromOrderedHits.h.

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

edm::RunNumber_t TSGFromOrderedHits::theLastRun
private

Definition at line 25 of file TSGFromOrderedHits.h.

Referenced by run().