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
SeparatingTSG Class Referenceabstract

#include <SeparatingTSG.h>

Inheritance diagram for SeparatingTSG:
CompositeTSG TrackerSeedGenerator DualByEtaTSG DualByL2TSG

Public Member Functions

virtual unsigned int selectTSG (const TrackCand &, const TrackingRegion &)=0
 
 SeparatingTSG (const edm::ParameterSet &pset)
 
void trackerSeeds (const TrackCand &, const TrackingRegion &, BTSeedCollection &)
 provides the seeds from the TSGs: must be overloaded More...
 
virtual ~SeparatingTSG ()
 
- 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: composite TrackerSeedGenerator, which uses different TSG in different phase space of the track provided concrete class must be implelemented (DualByEta ,...) to provide the TSG selection.

Author
Jean-Roch Vlimant

Definition at line 14 of file SeparatingTSG.h.

Constructor & Destructor Documentation

SeparatingTSG::SeparatingTSG ( const edm::ParameterSet pset)

Definition at line 4 of file SeparatingTSG.cc.

4 :CompositeTSG(pset){}
CompositeTSG(const edm::ParameterSet &pset)
Definition: CompositeTSG.cc:7
SeparatingTSG::~SeparatingTSG ( )
virtual

Definition at line 6 of file SeparatingTSG.cc.

6 {}

Member Function Documentation

virtual unsigned int SeparatingTSG::selectTSG ( const TrackCand ,
const TrackingRegion  
)
pure virtual

Implemented in DualByL2TSG, and DualByEtaTSG.

Referenced by trackerSeeds().

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

provides the seeds from the TSGs: must be overloaded

Implements CompositeTSG.

Definition at line 8 of file SeparatingTSG.cc.

References LogDebug, EgammaValidation_Wenu_cff::sel, selectTSG(), theCategory, CompositeTSG::theNames, and CompositeTSG::theTSGs.

8  {
9  unsigned int sel = selectTSG(muonTrackCand,region);
10  LogDebug(theCategory)<<"choosing: "<<theNames[sel]<<", at index ["<<sel<<"]";
11  if(theTSGs[sel]) {
12  std::vector<TrajectorySeed> tmpResult;
13  theTSGs[sel]->trackerSeeds(muonTrackCand,region,tmpResult);
14  result.insert(result.end(),tmpResult.begin(),tmpResult.end());
15  }
16 }
#define LogDebug(id)
std::string theCategory
Definition: SeparatingTSG.h:23
virtual unsigned int selectTSG(const TrackCand &, const TrackingRegion &)=0
tuple result
Definition: query.py:137
std::vector< TrackerSeedGenerator * > theTSGs
Definition: CompositeTSG.h:39
std::vector< std::string > theNames
Definition: CompositeTSG.h:40

Member Data Documentation

std::string SeparatingTSG::theCategory
private

Definition at line 23 of file SeparatingTSG.h.

Referenced by trackerSeeds().