#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.
heppy::CMGMuonCleanerBySegmentsAlgo::~CMGMuonCleanerBySegmentsAlgo | ( | ) |
Definition at line 5 of file CMGMuonCleanerBySegmentsAlgo.cc.
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 7 of file CMGMuonCleanerBySegmentsAlgo.cc.
References good, mps_fire::i, isBetterMuon(), reco::Muon::isPFMuon(), isSameMuon(), dqmiolumiharvest::j, reco::Muon::numberOfMatches(), passthrough_, preselection_, reco::Muon::SegmentArbitration, sharedFraction_, and muon::sharedSegments().
|
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 46 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().