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 14 of file DualByEtaTSG.h.

Constructor & Destructor Documentation

◆ DualByEtaTSG()

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

Definition at line 4 of file DualByEtaTSG.cc.

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  }
10 }

References CompositeTSG::nTSGs(), muonDTDigis_cfi::pset, theCategory, and theEtaSeparation.

Member Function Documentation

◆ selectTSG()

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 12 of file DualByEtaTSG.cc.

12  {
13  LogDebug(theCategory) << "|eta|=|" << muonTrackCand.second->eta() << "|"
14  << " compared to: " << theEtaSeparation;
15  return (fabs(muonTrackCand.second->eta()) < theEtaSeparation);
16 }

References LogDebug, theCategory, and theEtaSeparation.

Member Data Documentation

◆ theCategory

std::string DualByEtaTSG::theCategory
private

Definition at line 22 of file DualByEtaTSG.h.

Referenced by DualByEtaTSG(), and selectTSG().

◆ theEtaSeparation

double DualByEtaTSG::theEtaSeparation
private

Definition at line 23 of file DualByEtaTSG.h.

Referenced by DualByEtaTSG(), and selectTSG().

DualByEtaTSG::theCategory
std::string theCategory
Definition: DualByEtaTSG.h:22
DualByEtaTSG::theEtaSeparation
double theEtaSeparation
Definition: DualByEtaTSG.h:23
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:670
edm::LogError
Definition: MessageLogger.h:183
CompositeTSG::nTSGs
unsigned int nTSGs()
Definition: CompositeTSG.h:38
SeparatingTSG::SeparatingTSG
SeparatingTSG(const edm::ParameterSet &pset, edm::ConsumesCollector &IC)
Definition: SeparatingTSG.cc:5
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27