30 minTrackerLayersWithMeasurement_(-1),
31 minPixelLayersWithMeasurement_(-1),
32 minNumberOfValidPixelHits_(-1),
33 minValidFraction_(-1),
34 trackQuality_(
reco::Track::undefQuality),
35 minNumberOfValidMuonHits_(-1),
36 doInnerTrack_(
false), doGlobalTrack_(false)
44 if ( cc.
exists(
"minTrackerLayersWithMeasurement") ) minTrackerLayersWithMeasurement_ = cc.
getParameter<
int>(
"minTrackerLayersWithMeasurement");
45 if ( cc.
exists(
"minPixelLayersWithMeasurement") ) minPixelLayersWithMeasurement_ = cc.
getParameter<
int>(
"minPixelLayersWithMeasurement");
46 if ( cc.
exists(
"minNumberOfValidPixelHits") ) minNumberOfValidPixelHits_ = cc.
getParameter<
int>(
"minNumberOfValidPixelHits");
47 if ( cc.
exists(
"minValidFraction") ) minValidFraction_ = cc.
getParameter<
double>(
"minValidFraction");
53 doGlobalTrack_ =
true;
57 if ( cc.
exists(
"minNumberOfValidMuonHits") ) minNumberOfValidMuonHits_ = cc.
getParameter<
int>(
"minNumberOfValidMuonHits");
68 if ( t.
isNull() )
return false;
69 const auto&
h = t->hitPattern();
79 if ( t.
isNull() )
return false;
80 const auto&
h = t->hitPattern();
94 if ( t.
isNull() )
return 0;
95 const auto&
h = t->hitPattern();
102 return t->validFraction();
107 if ( t.
isNull() )
return 0;
108 const auto&
h = t->hitPattern();
112 return h.numberOfValidMuonHits();
T getParameter(std::string const &) const
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
bool exists(std::string const ¶meterName) const
checks if a parameter exists
int minNumberOfValidPixelHits_
result_type operator()(const reco::MuonPtr &) const overridefinal
MuonTrackCut(const edm::ParameterSet &c)
bool isNull() const
Checks for null.
double value(const reco::CandidatePtr &) const overridefinal
int minNumberOfValidMuonHits_
static TrackQuality qualityByName(const std::string &name)
CandidateType candidateType() const overridefinal
int minTrackerLayersWithMeasurement_
This class analyses the reconstruction quality for a given track.
reco::Track::TrackQuality trackQuality_
#define DEFINE_EDM_PLUGIN(factory, type, name)
volatile std::atomic< bool > shutdown_flag false
int minPixelLayersWithMeasurement_