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 Attributes
CombinedTSG Class Reference

#include <CombinedTSG.h>

Inheritance diagram for CombinedTSG:
CompositeTSG TrackerSeedGenerator

Public Member Functions

 CombinedTSG (const edm::ParameterSet &pset)
 
void trackerSeeds (const TrackCand &, const TrackingRegion &, BTSeedCollection &)
 provide the seeds from the TSGs: must be overloaded More...
 
 ~CombinedTSG ()
 
- Public Member Functions inherited from CompositeTSG
 CompositeTSG (const edm::ParameterSet &pset)
 
void init (const MuonServiceProxy *service)
 initialized the TSGs More...
 
void setEvent (const edm::Event &event)
 set the event to the TSGs More...
 
virtual ~CompositeTSG ()
 
- 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
< TrajectorySeed
BTSeedCollection
 
typedef std::pair< const
Trajectory *, reco::TrackRef
TrackCand
 
- Public Types inherited from TrackerSeedGenerator
typedef std::vector
< TrajectorySeed
BTSeedCollection
 
typedef std::pair< const
Trajectory *, reco::TrackRef
TrackCand
 
- 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
< 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 13 of file CombinedTSG.h.

Constructor & Destructor Documentation

CombinedTSG::CombinedTSG ( const edm::ParameterSet pset)

Definition at line 8 of file CombinedTSG.cc.

References theCategory.

8  : CompositeTSG(par) {
9  theCategory = "CombinedTSG";
10 }
CompositeTSG(const edm::ParameterSet &pset)
Definition: CompositeTSG.cc:7
std::string theCategory
Definition: CombinedTSG.h:22
CombinedTSG::~CombinedTSG ( )

Definition at line 13 of file CombinedTSG.cc.

13  {
14  //
15 }

Member Function Documentation

void CombinedTSG::trackerSeeds ( const TrackCand ,
const TrackingRegion ,
BTSeedCollection  
)
virtual

provide the seeds from the TSGs: must be overloaded

Implements CompositeTSG.

Definition at line 17 of file CombinedTSG.cc.

References CompositeTSG::theTSGs.

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

Member Data Documentation

std::string CombinedTSG::theCategory
private

Definition at line 22 of file CombinedTSG.h.

Referenced by CombinedTSG().