#include <DualByEtaTSG.h>
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 |
Description: SeparatingTSG (TrackerSeedGenerator) which make a simple, dual selection based on the momentum pseudo rapidity of the input track.
Definition at line 14 of file DualByEtaTSG.h.
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";} }
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); }
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().