Go to the documentation of this file. 1 #ifndef PhysicsTools_Heppy_CMGMuonCleanerBySegmentsAlgo_h
2 #define PhysicsTools_Heppy_CMGMuonCleanerBySegmentsAlgo_h
14 const std::string &passthrough =
"isGlobalMuon && numberOfMatches >= 2")
19 std::vector<bool>
clean(
const std::vector<pat::Muon> &
muons)
const;
std::vector< bool > clean(const std::vector< pat::Muon > &muons) const
Return a vector of boolean marking the muons to be considered clean.
~CMGMuonCleanerBySegmentsAlgo()
Analysis-level muon class.
bool isSameMuon(const pat::Muon &mu1, const pat::Muon &mu2) const
Methods.
StringCutObjectSelector< pat::Muon > passthrough_
Always-accept cut.
TAKEN FROM http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/CMSSW/ElectroWeakAnalysis/Utilities/src/PdfWeig...
StringCutObjectSelector< pat::Muon > preselection_
Preselection cut.
bool isBetterMuon(const pat::Muon &mu1, bool mu1PF, const pat::Muon &mu2, bool mu2PF) const
double sharedFraction_
Fraction of shared segments.
CMGMuonCleanerBySegmentsAlgo(double sharedFraction=0.499, const std::string &preselection="track.isNonnull", const std::string &passthrough="isGlobalMuon && numberOfMatches >= 2")