|
void | initialize (Version_t version, double chi2=10.0, int minTrackerLayers=6, int minValidMuonHits=1, double maxIp=0.2, int minPixelHits=1, int minNMatches=2, double pfiso=0.12) |
|
bool | operator() (const pat::Muon &muon, pat::strbitset &ret) override |
|
| PFMuonSelector () |
|
| PFMuonSelector (edm::ParameterSet const ¶meters, edm::ConsumesCollector &&iC) |
|
| PFMuonSelector (edm::ParameterSet const ¶meters) |
|
bool | TopPag12LjetsCuts (const pat::Muon &muon, pat::strbitset &ret) |
|
void | clear (std::string const &s) |
| Turn off a given selection cut. More...
|
|
void | clear (index_type const &i) |
|
bool | considerCut (std::string const &s) const |
| consider the cut at index "s" More...
|
|
bool | considerCut (index_type const &i) const |
|
int | cut (index_type const &i, int val) const |
| Access the int cut values at index "s". More...
|
|
double | cut (index_type const &i, double val) const |
| Access the double cut values at index "s". More...
|
|
int | cut (std::string s, int val) const |
| Access the int cut values at index "s". More...
|
|
double | cut (std::string s, double val) const |
| Access the double cut values at index "s". More...
|
|
pat::strbitset | getBitTemplate () const |
| Get an empty bitset with the proper names. More...
|
|
double | getPasses (std::string const &s) const |
| Return the number of passing cases. More...
|
|
double | getPasses (index_type const &i) const |
|
bool | ignoreCut (std::string const &s) const |
| ignore the cut at index "s" More...
|
|
bool | ignoreCut (index_type const &i) const |
|
virtual bool | operator() (pat::Muon const &t, pat::strbitset &ret)=0 |
| This provides the interface for base classes to select objects. More...
|
|
virtual bool | operator() (pat::Muon const &t) |
| This provides an alternative signature without the second ret. More...
|
|
virtual bool | operator() (pat::Muon const &t, edm::EventBase const &e, pat::strbitset &ret) |
| This provides an alternative signature that includes extra information. More...
|
|
virtual bool | operator() (pat::Muon const &t, edm::EventBase const &e) |
| This provides an alternative signature that includes extra information. More...
|
|
bool | operator[] (std::string const &s) const |
|
bool | operator[] (index_type const &i) const |
|
void | passCut (pat::strbitset &ret, std::string const &s) |
| Passing cuts. More...
|
|
void | passCut (pat::strbitset &ret, index_type const &i) |
|
void | print (std::ostream &out) const |
| Print the cut flow. More...
|
|
void | printActiveCuts (std::ostream &out) const |
| Print the cuts being considered. More...
|
|
virtual void | push_back (std::string const &s) |
| This is the registration of an individual cut string. More...
|
|
virtual void | push_back (std::string const &s, int cut) |
| This is the registration of an individual cut string, with an int cut value. More...
|
|
virtual void | push_back (std::string const &s, double cut) |
| This is the registration of an individual cut string, with a double cut value. More...
|
|
| Selector () |
| Constructor clears the bits. More...
|
|
void | set (std::string const &s, bool val=true) |
| Set a given selection cut, on or off. More...
|
|
void | set (index_type const &i, bool val=true) |
|
void | set (std::string const &s, int cut, bool val=true) |
| Set a given selection cut, on or off, and reset int cut value. More...
|
|
void | set (index_type const &i, int cut, bool val=true) |
|
void | set (std::string const &s, double cut, bool val=true) |
| Set a given selection cut, on or off, and reset int cut value. More...
|
|
void | set (index_type const &i, double cut, bool val=true) |
|
void | setIgnored (pat::strbitset &ret) |
| set ignored bits More...
|
|
void | setIgnoredCuts (std::vector< std::string > const &bitsToIgnore) |
| set the bits to ignore from a vector More...
|
|
virtual | ~Selector () |
|
Definition at line 16 of file PFMuonSelector.h.
Definition at line 121 of file PFMuonSelector.h.
References Selector< pat::Muon >::cut(), pat::Muon::dB(), pat::Muon::globalTrack(), Selector< pat::Muon >::ignoreCut(), indexChi2_, indexMaxIp_, indexmaxPfRelIso_, indexMinTrackerLayers_, indexminValidMuHits_, indexPixHits_, indexStations_, pat::Muon::innerTrack(), edm::Ref< C, T, F >::isAvailable(), muons_cff::isGlobal, reco::Muon::isGlobalMuon(), edm::Ref< C, T, F >::isNonnull(), muons_cff::isTracker, reco::Muon::isTrackerMuon(), pfMuonSelector_cfi::minMatchedStations, lostTracks_cfi::minPixelHits, pfMuonSelector_cfi::minTrackerLayers, pat::Muon::normChi2(), reco::Muon::numberOfMatches(), Selector< pat::Muon >::passCut(), pat::PfChargedHadronIso, pat::PfGammaIso, pat::PfNeutralHadronIso, EnergyCorrector::pt, reco::LeafCandidate::pt(), pat::strbitset::set(), Selector< pat::Muon >::setIgnored(), pat::Muon::track(), and pat::Lepton< LeptonType >::userIsolation().
Referenced by operator()().
128 double norm_chi2 = 9999999.0;
130 int minValidMuonHits = 0;
135 minTrackerLayers =
static_cast<int> (muon.
track()->hitPattern().trackerLayersWithMeasurement());
136 minValidMuonHits =
static_cast<int> (muon.
globalTrack()->hitPattern().numberOfValidMuonHits());
138 minPixelHits = muon.
innerTrack()->hitPattern().numberOfValidPixelHits();
146 double pt = muon.
pt() ;
148 double pfIso = (chIso + nhIso + gIso) / pt;
bool isNonnull() const
Checks for non-null.
double dB(IPTYPE type) const
double pt() const final
transverse momentum
void setIgnored(pat::strbitset &ret)
set ignored bits
reco::TrackRef track() const override
reference to Track reconstructed in the tracker only (reimplemented from reco::Muon) ...
index_type indexStations_
bool isTrackerMuon() const override
int numberOfMatches(unsigned int type=SegmentAndTrackArbitration) const
get number of chambers with matched segments
index_type indexminValidMuHits_
void passCut(pat::strbitset &ret, std::string const &s)
Passing cuts.
reco::TrackRef innerTrack() const override
reference to Track reconstructed in the tracker only (reimplemented from reco::Muon) ...
bool isGlobalMuon() const override
bool ignoreCut(std::string const &s) const
ignore the cut at index "s"
index_type indexMinTrackerLayers_
float userIsolation(IsolationKeys key) const
reco::TrackRef globalTrack() const override
reference to Track reconstructed in both tracked and muon detector (reimplemented from reco::Muon) ...
strbitset & set(bool val=true)
set method of all bits
index_type indexmaxPfRelIso_
double normChi2() const
Norm chi2 gives the normalized chi2 of the global track.
int cut(index_type const &i, int val) const
Access the int cut values at index "s".