CMS 3D CMS Logo

DualByEtaTSG.cc
Go to the documentation of this file.
3 
5  theCategory ="DualByEtaTSG";
6  theEtaSeparation = pset.getParameter<double>("etaSeparation");
7  if (nTSGs()!=2)
8  {edm::LogError(theCategory)<<"not two seed generators provided";}
9 }
10 
11 unsigned int DualByEtaTSG::selectTSG(const TrackCand & muonTrackCand, const TrackingRegion& region)
12 {
13  LogDebug(theCategory)<<"|eta|=|"<<muonTrackCand.second->eta()<<"|"
14  <<" compared to: "<<theEtaSeparation;
15  return (fabs(muonTrackCand.second->eta()) < theEtaSeparation);
16 }
17 
#define LogDebug(id)
T getParameter(std::string const &) const
std::pair< const Trajectory *, reco::TrackRef > TrackCand
std::string theCategory
Definition: DualByEtaTSG.h:22
DualByEtaTSG(const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
Definition: DualByEtaTSG.cc:4
double theEtaSeparation
Definition: DualByEtaTSG.h:23
unsigned int nTSGs()
Definition: CompositeTSG.h:40
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...
Definition: DualByEtaTSG.cc:11