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::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::~CombinedTSG ( )
override

Definition at line 14 of file CombinedTSG.cc.

14  {
15  //
16 }

Member Function Documentation

◆ trackerSeeds()

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 nano_mu_digi_cff::region, mps_fire::result, and CompositeTSG::theTSGs.

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

Member Data Documentation

◆ theCategory

std::string CombinedTSG::theCategory
private

Definition at line 25 of file CombinedTSG.h.

Referenced by CombinedTSG().