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

G4CosmicFilter: python 3 fixes

 - print function
parent 9c538064
No related branches found
No related tags found
No related merge requests found
# 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 AthenaCommon import CfgMgr
from G4AtlasApps import PyG4Atlas, AtlasG4Eng from G4AtlasApps import PyG4Atlas, AtlasG4Eng
...@@ -71,7 +73,7 @@ def getCosmicFilterTool(name="G4UA::G4CosmicFilterTool", **kwargs): ...@@ -71,7 +73,7 @@ def getCosmicFilterTool(name="G4UA::G4CosmicFilterTool", **kwargs):
kwargs.setdefault("PtMax", simFlags.CosmicFilterPTmax.get_Value()) kwargs.setdefault("PtMax", simFlags.CosmicFilterPTmax.get_Value())
kwargs.setdefault("CollectionName",volumes[0]) 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) return CfgMgr.G4UA__G4CosmicFilterTool(name, **kwargs)
......
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