Skip to content
Snippets Groups Projects
Commit be3f8a34 authored by Pierre Antoine Delsart's avatar Pierre Antoine Delsart Committed by Adam Edward Barton
Browse files

fix AthGeneration issues with jetcontext

fix AthGeneration issues with jetcontext
parent c3fac209
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ def createJetContextFlags():
def _defaultFlag(prevFlags):
try:
run = prevFlags.GeoModel.Run
except ValueError:
except (ValueError, RuntimeError) : # several exceptions can be thrown... catch any of them
# No GeoModel.Run -> we are in a Truth job, return an empty context.
return {}
return prevFlags.Jet.Context.Run3 if run <= LHCPeriod.Run3 else prevFlags.Jet.Context.Run4
......@@ -77,13 +77,13 @@ def createJetContextFlags():
# ****************
# Add Jet trigger context :
if moduleExists("TriggerMenuMT.HLT.Jet"):
if moduleExists("TriggerMenuMT"):
from TriggerMenuMT.HLT.Jet.JetRecoCommon import addJetContextFlags
addJetContextFlags(flags)
# ****************
# Add HIGG1D1 context :
if moduleExists("DerivationFrameworkHiggs.HIGG1D1CustomJetsConfig"):
if moduleExists("DerivationFrameworkHiggs"):
from DerivationFrameworkHiggs.HIGG1D1CustomJetsConfig import addJetContextFlags
addJetContextFlags(flags)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment