CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
L1TrackSelectionProducer::TTTrackNPSStubsMinSelector Struct Reference

Public Member Functions

bool operator() (const L1Track &t) const
 
 TTTrackNPSStubsMinSelector (double nStubsMin, const TrackerTopology &tTopo)
 
 TTTrackNPSStubsMinSelector (const edm::ParameterSet &cfg, const TrackerTopology &tTopo)
 

Private Attributes

double nPSStubsMin_
 
const TrackerTopologytTopo_
 

Detailed Description

Definition at line 181 of file L1TrackSelectionProducer.cc.

Constructor & Destructor Documentation

◆ TTTrackNPSStubsMinSelector() [1/2]

L1TrackSelectionProducer::TTTrackNPSStubsMinSelector::TTTrackNPSStubsMinSelector ( double  nStubsMin,
const TrackerTopology tTopo 
)
inline

◆ TTTrackNPSStubsMinSelector() [2/2]

L1TrackSelectionProducer::TTTrackNPSStubsMinSelector::TTTrackNPSStubsMinSelector ( const edm::ParameterSet cfg,
const TrackerTopology tTopo 
)
inline

Definition at line 184 of file L1TrackSelectionProducer.cc.

185  : nPSStubsMin_(cfg.template getParameter<double>("nPSStubsMin")), tTopo_(tTopo) {}

Member Function Documentation

◆ operator()()

bool L1TrackSelectionProducer::TTTrackNPSStubsMinSelector::operator() ( const L1Track t) const
inline

Definition at line 186 of file L1TrackSelectionProducer.cc.

References nPSStubsMin_, submitPVValidationJobs::t, StripSubdetector::TID, TrackerTopology::tidRing(), StripSubdetector::TOB, TrackerTopology::tobLayer(), align::Tracker, and tTopo_.

186  {
187  int nPSStubs = 0;
188  for (const auto& stub : t.getStubRefs()) {
189  DetId detId(stub->getDetId());
190  if (detId.det() == DetId::Detector::Tracker) {
191  if ((detId.subdetId() == StripSubdetector::TOB && tTopo_.tobLayer(detId) <= 3) ||
192  (detId.subdetId() == StripSubdetector::TID && tTopo_.tidRing(detId) <= 9))
193  nPSStubs++;
194  }
195  }
196  return nPSStubs >= nPSStubsMin_;
197  }
unsigned int tobLayer(const DetId &id) const
static constexpr auto TOB
Definition: DetId.h:17
unsigned int tidRing(const DetId &id) const
static constexpr auto TID

Member Data Documentation

◆ nPSStubsMin_

double L1TrackSelectionProducer::TTTrackNPSStubsMinSelector::nPSStubsMin_
private

Definition at line 200 of file L1TrackSelectionProducer.cc.

Referenced by operator()().

◆ tTopo_

const TrackerTopology& L1TrackSelectionProducer::TTTrackNPSStubsMinSelector::tTopo_
private

Definition at line 201 of file L1TrackSelectionProducer.cc.

Referenced by operator()().