From 700ecd62526157acaa34d9a0cd5aef2486229960 Mon Sep 17 00:00:00 2001 From: Andrea Carlo Marini Date: Wed, 27 Mar 2019 18:13:31 +0100 Subject: [PATCH 1/2] fixing 2016 stuff --- Nero/test/testNero.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Nero/test/testNero.py b/Nero/test/testNero.py index 3b43935..00be1ac 100644 --- a/Nero/test/testNero.py +++ b/Nero/test/testNero.py @@ -123,8 +123,8 @@ tagNamePuppi = 'Fall17_17Nov2017_V32_94X_DATA_AK4PFPuppi' if isYear == 2016: connectString = cms.string('sqlite:jec/Summer16_07Aug2017All_V11_DATA.db') - tagName = 'Summer16_07Aug2017_V11_94X_DATA_AK4PFchs' - tagNamePuppi = 'Summer16_07Aug2017_V11_94X_DATA_AK4PFPuppi' + tagName = 'Summer16_07Aug2017All_V11_DATA_AK4PFchs' + tagNamePuppi = 'Summer16_07Aug2017All_V11_DATA_AK4PFPuppi' else: if isYear==2017: connectString = cms.string('sqlite:jec/Fall17_17Nov2017_V32_94X_MC.db') @@ -132,8 +132,8 @@ tagNamePuppi = 'Fall17_17Nov2017_V32_94X_MC_AK4PFPuppi' if isYear==2016: connectString = cms.string('sqlite:jec/Summer16_07Aug2017_V11_MC.db') - tagName = 'Summer16_07Aug2017_V11_94X_MC_AK4PFchs' - tagNamePuppi = 'Summer16_07Aug2017_V11_94X_MC_AK4PFPuppi' + tagName = 'Summer16_07Aug2017_V11_MC_AK4PFchs' + tagNamePuppi = 'Summer16_07Aug2017_V11_MC_AK4PFPuppi' #data only, mc hard coded. Need to be fixed per Run print "-> Setting Up JEC for AK8 using Year",isYear,"and Run",options.isRun @@ -151,7 +151,7 @@ elif isYear==2016: process.nero.NeroFatJets.chsAK8JECMC = cms.string("jec/Summer16/Summer16_07Aug2017_V11") if options.isRun in ['Run2016A','Run2016B','Run2016C','Run2016D']: - process.nero.NeroFatJets.chsAK8JEC = cms.string("jec/Summer16/Summer16_07Aug2017ABCD_V11") + process.nero.NeroFatJets.chsAK8JEC = cms.string("jec/Summer16/Summer16_07Aug2017BCD_V11") elif options.isRun in ['Run2016E', 'Run2016F']: process.nero.NeroFatJets.chsAK8JEC = cms.string("jec/Summer16/Summer16_07Aug2017EF_V11") elif options.isRun in ['Run2016G', 'Run2016H']: From c98ad153c5bd5d8bbc659bab5a3d1423acaa4730 Mon Sep 17 00:00:00 2001 From: Andrea Carlo Marini Date: Wed, 27 Mar 2019 18:15:39 +0100 Subject: [PATCH 2/2] 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 99595cc..664b800 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