CMS 3D CMS Logo

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

#include <CombinedTSG.h>

Inheritance diagram for CombinedTSG:
CompositeTSG TrackerSeedGenerator

Public Member Functions

 CombinedTSG (const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
 
void trackerSeeds (const TrackCand &, const TrackingRegion &, const TrackerTopology *, BTSeedCollection &) override
 provide the seeds from the TSGs: must be overloaded More...
 
 ~CombinedTSG () override
 
- Public Member Functions inherited from CompositeTSG
 CompositeTSG (const edm::ParameterSet &pset, edm::ConsumesCollector &IC)
 
void init (const MuonServiceProxy *service) override
 initialized the TSGs More...
 
void setEvent (const edm::Event &event) override
 set the event to the TSGs More...
 
 ~CompositeTSG () override
 
- Public Member Functions inherited from TrackerSeedGenerator
const edm::EventgetEvent () const
 
 TrackerSeedGenerator ()
 
virtual ~TrackerSeedGenerator ()
 destructor More...
 

Private Attributes

std::string theCategory
 

Additional Inherited Members

- Public Types inherited from CompositeTSG
typedef std::vector< TrajectorySeedBTSeedCollection
 
typedef std::pair< const Trajectory *, reco::TrackRefTrackCand
 
- Public Types inherited from TrackerSeedGenerator
typedef std::vector< TrajectorySeedBTSeedCollection
 
typedef std::pair< const Trajectory *, reco::TrackRefTrackCand
 
- Protected Member Functions inherited from CompositeTSG
unsigned int nTSGs ()
 
- Protected Attributes inherited from CompositeTSG
std::string theCategory
 
std::vector< std::string > theNames
 
const MuonServiceProxytheProxyService
 
std::vector< std::unique_ptr< TrackerSeedGenerator > > theTSGs
 
- Protected Attributes inherited from TrackerSeedGenerator
const edm::EventtheEvent
 
const MuonServiceProxytheProxyService
 

Detailed Description

Description: CompositeTSG (TrackerSeedGenerator) which combines (with configurable duplicate removal) the output of different TSG.

Author
Jean-Roch Vlimant, Alessandro Grelli

Definition at line 16 of file CombinedTSG.h.

Constructor & Destructor Documentation

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

Definition at line 9 of file CombinedTSG.cc.

References theCategory.

9  : CompositeTSG(par,iC) {
10  theCategory = "CombinedTSG";
11 }
CompositeTSG(const edm::ParameterSet &pset, edm::ConsumesCollector &IC)
Definition: CompositeTSG.cc:7
std::string theCategory
Definition: CombinedTSG.h:25
CombinedTSG::~CombinedTSG ( )
override

Definition at line 14 of file CombinedTSG.cc.

14  {
15  //
16 }

Member Function Documentation

void CombinedTSG::trackerSeeds ( const TrackCand ,
const TrackingRegion ,
const TrackerTopology ,
BTSeedCollection  
)
overridevirtual

provide the seeds from the TSGs: must be overloaded

Implements CompositeTSG.

Definition at line 18 of file CombinedTSG.cc.

References CompositeTSG::theTSGs.

19  {
20  //run all the seed generators registered
21 
22  for (unsigned int iTSG=0; iTSG!=theTSGs.size();iTSG++){
23  if(theTSGs[iTSG]) {
24  std::vector<TrajectorySeed> tmpResult;
25  theTSGs[iTSG]->trackerSeeds(muonTrackCand,region,tTopo,tmpResult);
26  //vector of seeds
27  result.insert(result.end(),tmpResult.begin(),tmpResult.end());
28  }
29  }
30 }
std::vector< std::unique_ptr< TrackerSeedGenerator > > theTSGs
Definition: CompositeTSG.h:41

Member Data Documentation

std::string CombinedTSG::theCategory
private

Definition at line 25 of file CombinedTSG.h.

Referenced by CombinedTSG().