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; }
extern void printMuon(const MuonPointer muon) { printParticle(muon); cout << "Muon Information" << endl; cout << setw(30) << "is global" << setw(30) << "PF RelIso DR=0.4" << setw(30) << "----" << endl; cout << setw(30) << muon->isGlobal() << setw(30) << muon->PFRelIso04() << setw(30) << "" << endl; }
bool TopPairMuPlusJetsReferenceSelection2011::isLooseMuon(const MuonPointer muon) const { bool passesPt = muon->pt() > 10; bool passesEta = fabs(muon->eta()) < 2.5; bool isGlobalOrTracker = muon->isGlobal() || muon->isTracker(); bool isLooselyIsolated = muon->pfRelativeIsolation(0.4) < 0.2; return passesPt && passesEta && isGlobalOrTracker && isLooselyIsolated; }
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; }
bool TopPairMuPlusJetsReferenceSelection2011::isGoodMuon(const MuonPointer muon) const { bool passesEtAndEta = muon->pt() > 26 && fabs(muon->eta()) < 2.1; bool passesD0 = fabs(muon->d0()) < 0.02; //cm bool passesDistanceToPV = fabs(muon->ZDistanceToPrimaryVertex()) < 1; bool passesID(muon->isTracker() && muon->isGlobal()); bool passesMuonQuality_1(muon->normChi2() < 10 && muon->trackerLayersWithMeasurement() > 8); bool passesMuonQuality_2(muon->numberOfValidMuonHits() > 0 && muon->pixelLayersWithMeasurement() > 0); bool passesMuonQuality_3(muon->numberOfMatchedStations() > 1); bool passesMuonQuality = passesMuonQuality_1 && passesMuonQuality_2 && passesMuonQuality_3; return passesEtAndEta && passesD0 && passesDistanceToPV && passesID && passesMuonQuality; }