#include <RecoMuon/TrackerSeedGenerator/plugins/DualByEtaTSG.h>
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 |
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.
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 }
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 }
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] |