From 85e336416358de11a80c86882b71c55152cde8a1 Mon Sep 17 00:00:00 2001 From: scott snyder <snyder@bnl.gov> Date: Wed, 7 Mar 2018 11:15:20 +0100 Subject: [PATCH] IsolationAlgs: Fix configuration for the case where eflow was disabled. In IsoGetter.py, the useVertices variable was only defined if eflow was enabled. The last change introduced a test on useVertices, which was crashing in the case where eflow is disabled. Fixed. --- .../RecoAlgs/IsolationAlgs/python/IsoGetter.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Reconstruction/RecoAlgs/IsolationAlgs/python/IsoGetter.py b/Reconstruction/RecoAlgs/IsolationAlgs/python/IsoGetter.py index 595f2a1015d..43676581877 100644 --- a/Reconstruction/RecoAlgs/IsolationAlgs/python/IsoGetter.py +++ b/Reconstruction/RecoAlgs/IsolationAlgs/python/IsoGetter.py @@ -21,6 +21,11 @@ IsoCorrectionTool = ToolFactory(ICT, doPFlow = False PFlowObjectsInConeTool = None from RecExConfig.RecAlgsFlags import recAlgs +from AthenaCommon.BeamFlags import jobproperties +useVertices = True +if jobproperties.Beam.beamType == 'cosmics': + useVertices = False + if recAlgs.doEFlow() : doPFlow = True @@ -30,11 +35,6 @@ if recAlgs.doEFlow() : PFlowObjectsInConeTool = ToolFactory(xAOD__PFlowObjectsInConeTool, name = "PFlowObjectsInConeTool") - from AthenaCommon.BeamFlags import jobproperties - useVertices = True - if jobproperties.Beam.beamType == 'cosmics': - useVertices = False - from JetRec.JetRecStandard import jtm #from JetRec.JetRecConf import PseudoJetGetter from JetRecTools.JetRecToolsConf import PFlowPseudoJetGetter -- GitLab