From 15bd2a9bf42112961a516cc3d05c1de4e89f9727 Mon Sep 17 00:00:00 2001 From: scott snyder <snyder@bnl.gov> Date: Sat, 11 Jan 2020 20:19:04 +0100 Subject: [PATCH] G4CosmicFilter: python 3 fixes - print function --- .../G4CosmicFilter/python/G4CosmicFilterConfig.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Simulation/G4Extensions/G4CosmicFilter/python/G4CosmicFilterConfig.py b/Simulation/G4Extensions/G4CosmicFilter/python/G4CosmicFilterConfig.py index 52007db9514..52a991fb635 100644 --- a/Simulation/G4Extensions/G4CosmicFilter/python/G4CosmicFilterConfig.py +++ b/Simulation/G4Extensions/G4CosmicFilter/python/G4CosmicFilterConfig.py @@ -1,4 +1,6 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration +# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration + +from __future__ import print_function from AthenaCommon import CfgMgr from G4AtlasApps import PyG4Atlas, AtlasG4Eng @@ -71,7 +73,7 @@ def getCosmicFilterTool(name="G4UA::G4CosmicFilterTool", **kwargs): kwargs.setdefault("PtMax", simFlags.CosmicFilterPTmax.get_Value()) kwargs.setdefault("CollectionName",volumes[0]) - print 'G4CosmicFilter: Filter volume is %s' % volumes[0] + print ('G4CosmicFilter: Filter volume is %s' % volumes[0]) return CfgMgr.G4UA__G4CosmicFilterTool(name, **kwargs) -- GitLab