Skip to content

Commit

Permalink
Added configuration for the jet skim.
Browse files Browse the repository at this point in the history
  • Loading branch information
aehart committed Mar 20, 2018
1 parent 89d0200 commit 7317abe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions StandardAnalysis/python/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,13 @@ def customize (process, runPeriod, applyPUReweighting = True, applyISRReweightin

doFilter = False
doSSFilter = False
doJetFilter = False
if channel.endswith ("WithFilter"):
doFilter = True
if channel.endswith ("WithSSFilter"):
doSSFilter = True
if channel.endswith ("WithJetFilter"):
doSSFilter = True

if hasattr (process, "EventElectronTPProducer"):
getattr (process, "EventElectronTPProducer").doFilter = cms.bool (doFilter)
Expand All @@ -138,6 +141,7 @@ def customize (process, runPeriod, applyPUReweighting = True, applyISRReweightin
if hasattr (process, "EventMuonTPProducer"):
getattr (process, "EventMuonTPProducer").doFilter = cms.bool (doFilter)
getattr (process, "EventMuonTPProducer").doSSFilter = cms.bool (doSSFilter)
getattr (process, "EventMuonTPProducer").doJetFilter = cms.bool (doJetFilter)
moveVariableProducer (process, "EventMuonTPProducer", channel)
if hasattr (process, "EventTauToElectronTPProducer"):
getattr (process, "EventTauToElectronTPProducer").doFilter = cms.bool (doFilter)
Expand Down

0 comments on commit 7317abe

Please sign in to comment.