Skip to content
Snippets Groups Projects
Commit 85e33641 authored by scott snyder's avatar scott snyder
Browse files

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.
parent 9c9d153a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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