bool TopPairEMuReferenceSelection::isGoodMuon(const MuonPointer muon) const { bool passesEtAndEta = muon->pt() > 20 && fabs(muon->eta()) < 2.4; bool passesID = (muon->isGlobal() || muon->isTracker()) && muon->isPFMuon(); bool passesIsolation = isIsolatedMuon(muon); return passesEtAndEta && passesID && passesIsolation; }
bool TopPairEMuReferenceSelection::isLooseMuon(const MuonPointer muon) const { bool passesPt = muon->pt() > 10; bool passesEta = fabs(muon->eta()) < 2.5; bool isPFMuon = muon->isPFMuon(); bool isGlobalOrTracker = muon->isGlobal() || muon->isTracker(); bool isLooselyIsolated = muon->pfRelativeIsolation(0.4, true) < 0.2; return isPFMuon && passesPt && passesEta && isGlobalOrTracker && isLooselyIsolated; }