From 836e6f3cba4bfb9a03faad6c7967c7d2a607de5b Mon Sep 17 00:00:00 2001 From: Andrea Carlo Marini Date: Wed, 27 Mar 2019 18:15:39 +0100 Subject: [PATCH] requiring loose muons for kf --- Nero/src/NeroLeptons.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Nero/src/NeroLeptons.cpp b/Nero/src/NeroLeptons.cpp index 1db0e6c..78b09fa 100644 --- a/Nero/src/NeroLeptons.cpp +++ b/Nero/src/NeroLeptons.cpp @@ -257,9 +257,11 @@ int NeroLeptons::analyze(const edm::Event & iEvent) if (mu.innerTrack().isNull()) continue; // for kinematic fit. Must have track - ++nMuons; - selectedMuons.push_back(mu); - selectedIndex.push_back(leptons.size()-1); + if (mu.isLooseMuon()){ + ++nMuons; + selectedMuons.push_back(mu); + selectedIndex.push_back(leptons.size()-1); + } } // Muon Vertex fitter