27 minTrackerLayersWithMeasurement_(-1),
28 minPixelLayersWithMeasurement_(-1),
29 minNumberOfValidPixelHits_(-1),
30 minValidFraction_(-1),
31 trackQuality_(
reco::Track::undefQuality),
32 minNumberOfValidMuonHits_(-1),
34 doGlobalTrack_(false) {
39 if (cc.
exists(
"minTrackerLayersWithMeasurement"))
40 minTrackerLayersWithMeasurement_ = cc.
getParameter<
int>(
"minTrackerLayersWithMeasurement");
41 if (cc.
exists(
"minPixelLayersWithMeasurement"))
42 minPixelLayersWithMeasurement_ = cc.
getParameter<
int>(
"minPixelLayersWithMeasurement");
43 if (cc.
exists(
"minNumberOfValidPixelHits"))
44 minNumberOfValidPixelHits_ = cc.
getParameter<
int>(
"minNumberOfValidPixelHits");
45 if (cc.
exists(
"minValidFraction"))
46 minValidFraction_ = cc.
getParameter<
double>(
"minValidFraction");
51 doGlobalTrack_ =
true;
55 if (cc.
exists(
"minNumberOfValidMuonHits"))
56 minNumberOfValidMuonHits_ = cc.
getParameter<
int>(
"minNumberOfValidMuonHits");
66 const auto&
h = t->hitPattern();
82 const auto&
h = t->hitPattern();
97 const auto&
h = t->hitPattern();
101 return h.trackerLayersWithMeasurement();
103 return h.pixelLayersWithMeasurement();
105 return h.numberOfValidPixelHits();
107 return t->validFraction();
109 return t->validFraction();
115 const auto&
h = t->hitPattern();
117 return h.numberOfValidMuonHits();
120 return h.numberOfValidMuonHits();
const edm::EventSetup & c
bool exists(std::string const ¶meterName) const
checks if a parameter exists
int minNumberOfValidPixelHits_
double value(const reco::CandidatePtr &) const final
MuonTrackCut(const edm::ParameterSet &c)
bool isNull() const
Checks for null.
int minNumberOfValidMuonHits_
static TrackQuality qualityByName(const std::string &name)
int minTrackerLayersWithMeasurement_
T getParameter(std::string const &) const
This class analyses the reconstruction quality for a given track.
reco::Track::TrackQuality trackQuality_
#define DEFINE_EDM_PLUGIN(factory, type, name)
CandidateType candidateType() const final
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
result_type operator()(const reco::MuonPtr &) const final
int minPixelLayersWithMeasurement_