diff --git a/Reconstruction/RecoAlgs/IsolationAlgs/python/IsoGetter.py b/Reconstruction/RecoAlgs/IsolationAlgs/python/IsoGetter.py index 595f2a1015d3817991a6a8977d70bbedcfb337e2..4367658187760a5516740c1d67087660d8d40f4f 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