CMS 3D CMS Logo

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

#include <DualByEtaTSG.h>

Inheritance diagram for DualByEtaTSG:
SeparatingTSG CompositeTSG TrackerSeedGenerator

Public Member Functions

 DualByEtaTSG (const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
 
unsigned int selectTSG (const TrackCand &, const TrackingRegion &) override
 decide the TSG depending on the absolute value of momentum eta of the track. Return value is 0 or 1. More...
 
- Public Member Functions inherited from SeparatingTSG
 SeparatingTSG (const edm::ParameterSet &pset, edm::ConsumesCollector &IC)
 
void trackerSeeds (const TrackCand &, const TrackingRegion &, const TrackerTopology *, BTSeedCollection &) override
 provides the seeds from the TSGs: must be overloaded More...
 
 ~SeparatingTSG () 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
 
double theEtaSeparation
 

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: SeparatingTSG (TrackerSeedGenerator) which make a simple, dual selection based on the momentum pseudo rapidity of the input track.

Author
Jean-Roch vlimant, Adam Everett

Definition at line 15 of file DualByEtaTSG.h.

Constructor & Destructor Documentation

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

Definition at line 4 of file DualByEtaTSG.cc.

References edm::ParameterSet::getParameter(), CompositeTSG::nTSGs(), theCategory, and theEtaSeparation.

4  : SeparatingTSG(pset,IC){
5  theCategory ="DualByEtaTSG";
6  theEtaSeparation = pset.getParameter<double>("etaSeparation");
7  if (nTSGs()!=2)
8  {edm::LogError(theCategory)<<"not two seed generators provided";}
9 }
T getParameter(std::string const &) const
std::string theCategory
Definition: DualByEtaTSG.h:22
SeparatingTSG(const edm::ParameterSet &pset, edm::ConsumesCollector &IC)
Definition: SeparatingTSG.cc:5
double theEtaSeparation
Definition: DualByEtaTSG.h:23
unsigned int nTSGs()
Definition: CompositeTSG.h:40

Member Function Documentation

unsigned int DualByEtaTSG::selectTSG ( const TrackCand muonTrackCand,
const TrackingRegion region 
)
overridevirtual

decide the TSG depending on the absolute value of momentum eta of the track. Return value is 0 or 1.

Implements SeparatingTSG.

Definition at line 11 of file DualByEtaTSG.cc.

References LogDebug, theCategory, and theEtaSeparation.

12 {
13  LogDebug(theCategory)<<"|eta|=|"<<muonTrackCand.second->eta()<<"|"
14  <<" compared to: "<<theEtaSeparation;
15  return (fabs(muonTrackCand.second->eta()) < theEtaSeparation);
16 }
#define LogDebug(id)
std::string theCategory
Definition: DualByEtaTSG.h:22
double theEtaSeparation
Definition: DualByEtaTSG.h:23

Member Data Documentation

std::string DualByEtaTSG::theCategory
private

Definition at line 22 of file DualByEtaTSG.h.

Referenced by DualByEtaTSG(), and selectTSG().

double DualByEtaTSG::theEtaSeparation
private

Definition at line 23 of file DualByEtaTSG.h.

Referenced by DualByEtaTSG(), and selectTSG().