#include <CMGMuonCleanerBySegmentsAlgo.h>
Public Member Functions | |
std::vector< bool > | clean (const std::vector< pat::Muon > &muons) const |
Return a vector of boolean marking the muons to be considered clean. More... | |
CMGMuonCleanerBySegmentsAlgo (double sharedFraction=0.499, const std::string &preselection="track.isNonnull", const std::string &passthrough="isGlobalMuon && numberOfMatches >= 2") | |
~CMGMuonCleanerBySegmentsAlgo () | |
Private Member Functions | |
bool | isBetterMuon (const pat::Muon &mu1, bool mu1PF, const pat::Muon &mu2, bool mu2PF) const |
bool | isSameMuon (const pat::Muon &mu1, const pat::Muon &mu2) const |
Methods. More... | |
Private Attributes | |
StringCutObjectSelector< pat::Muon > | passthrough_ |
Always-accept cut. More... | |
StringCutObjectSelector< pat::Muon > | preselection_ |
Preselection cut. More... | |
double | sharedFraction_ |
Fraction of shared segments. More... | |
Definition at line 10 of file CMGMuonCleanerBySegmentsAlgo.h.
|
inline |
Definition at line 12 of file CMGMuonCleanerBySegmentsAlgo.h.
References clean(), nano_cff::muons, and ~CMGMuonCleanerBySegmentsAlgo().
heppy::CMGMuonCleanerBySegmentsAlgo::~CMGMuonCleanerBySegmentsAlgo | ( | ) |
Definition at line 5 of file CMGMuonCleanerBySegmentsAlgo.cc.
Referenced by CMGMuonCleanerBySegmentsAlgo().
std::vector< bool > heppy::CMGMuonCleanerBySegmentsAlgo::clean | ( | const std::vector< pat::Muon > & | muons | ) | const |
Return a vector of boolean marking the muons to be considered clean.
Definition at line 9 of file CMGMuonCleanerBySegmentsAlgo.cc.
References mps_fire::i, isBetterMuon(), reco::Muon::isPFMuon(), isSameMuon(), reco::Muon::numberOfMatches(), passthrough_, preselection_, reco::Muon::SegmentArbitration, sharedFraction_, and muon::sharedSegments().
Referenced by CMGMuonCleanerBySegmentsAlgo().
|
private |
Definition at line 52 of file CMGMuonCleanerBySegmentsAlgo.cc.
References reco::LeafCandidate::charge(), reco::deltaR2(), reco::Muon::isGlobalMuon(), edm::Ref< C, T, F >::isNull(), reco::Muon::numberOfMatches(), reco::LeafCandidate::pt(), reco::Muon::SegmentArbitration, and pat::Muon::track().
Referenced by clean().
|
private |
Methods.
Definition at line 43 of file CMGMuonCleanerBySegmentsAlgo.cc.
References pat::PATObject< ObjectType >::originalObjectRef().
Referenced by clean().
|
private |
Always-accept cut.
Definition at line 28 of file CMGMuonCleanerBySegmentsAlgo.h.
Referenced by clean().
|
private |
Preselection cut.
Definition at line 26 of file CMGMuonCleanerBySegmentsAlgo.h.
Referenced by clean().
|
private |
Fraction of shared segments.
Definition at line 23 of file CMGMuonCleanerBySegmentsAlgo.h.
Referenced by clean().