CMS 3D CMS Logo

Public Member Functions | Private Attributes

DualByEtaTSG Class Reference

#include <DualByEtaTSG.h>

Inheritance diagram for DualByEtaTSG:
SeparatingTSG CompositeTSG TrackerSeedGenerator

List of all members.

Public Member Functions

 DualByEtaTSG (const edm::ParameterSet &pset)
unsigned int 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.

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

Member Function Documentation

unsigned int 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.

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

Member Data Documentation

std::string DualByEtaTSG::theCategory [private]

Reimplemented from SeparatingTSG.

Definition at line 21 of file DualByEtaTSG.h.

Referenced by DualByEtaTSG(), and selectTSG().

Definition at line 22 of file DualByEtaTSG.h.

Referenced by DualByEtaTSG(), and selectTSG().