CMS 3D CMS Logo

DualByEtaTSG Class Reference

Description: SeparatingTSG (TrackerSeedGenerator) which make a simple, dual selection based on the momentum pseudo rapidity of the input track. More...

#include <RecoMuon/TrackerSeedGenerator/plugins/DualByEtaTSG.h>

Inheritance diagram for DualByEtaTSG:

SeparatingTSG CompositeTSG TrackerSeedGenerator

List of all members.

Public Member Functions

 DualByEtaTSG (const edm::ParameterSet &pset)
uint selectTSG (const TrackCand &, const TrackingRegion &)
 decide the TSG depending on the absolute value of momentum eta of the track. Return value is 0 or 1.

Private Attributes

std::string theCategory
double theEtaSeparation


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 ( const edm::ParameterSet pset  ) 

Definition at line 4 of file DualByEtaTSG.cc.

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

00004                                                       : SeparatingTSG(pset){
00005   theCategory ="DualByEtaTSG";
00006   theEtaSeparation = pset.getParameter<double>("etaSeparation");
00007   if (nTSGs()!=2)
00008     {edm::LogError(theCategory)<<"not two seed generators provided";}
00009 }


Member Function Documentation

uint DualByEtaTSG::selectTSG ( const TrackCand muonTrackCand,
const TrackingRegion region 
) [virtual]

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.

00012 {
00013   LogDebug(theCategory)<<"|eta|=|"<<muonTrackCand.second->eta()<<"|"
00014                        <<" compared to: "<<theEtaSeparation;
00015   return (fabs(muonTrackCand.second->eta()) < theEtaSeparation);
00016 }


Member Data Documentation

std::string DualByEtaTSG::theCategory [private]

Reimplemented from SeparatingTSG.

Definition at line 21 of file DualByEtaTSG.h.

Referenced by DualByEtaTSG(), and selectTSG().

double DualByEtaTSG::theEtaSeparation [private]

Definition at line 22 of file DualByEtaTSG.h.

Referenced by DualByEtaTSG(), and selectTSG().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:19:13 2009 for CMSSW by  doxygen 1.5.4