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 
12 unsigned int DualByEtaTSG::selectTSG(const TrackCand& muonTrackCand, const TrackingRegion& region) {
13  LogDebug(theCategory) << "|eta|=|" << muonTrackCand.second->eta() << "|"
14  << " compared to: " << theEtaSeparation;
15  return (fabs(muonTrackCand.second->eta()) < theEtaSeparation);
16 }
std::string theCategory
Definition: DualByEtaTSG.h:22
DualByEtaTSG(const edm::ParameterSet &pset, edm::ConsumesCollector &iC)
Definition: DualByEtaTSG.cc:4
Log< level::Error, false > LogError
std::pair< const Trajectory *, reco::TrackRef > TrackCand
double theEtaSeparation
Definition: DualByEtaTSG.h:23
unsigned int nTSGs()
Definition: CompositeTSG.h:38
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:12
#define LogDebug(id)