diff --git a/graphics/JiveXML/share/DataTypes_All.py b/graphics/JiveXML/share/DataTypes_All.py index cbf7f862bc56cf6282b17cb02f22eae26c9d526d..68a1ee5be4fb8f82d2fd8263927cf45f8c6a54df 100755 --- a/graphics/JiveXML/share/DataTypes_All.py +++ b/graphics/JiveXML/share/DataTypes_All.py @@ -1,3 +1,4 @@ +from __future__ import print_function #================================================================= #Run the Full Reconstruction -> XML converter #================================================================= @@ -12,4 +13,4 @@ include ("AnalysisJiveXML/AnalysisJiveXML_DataTypes.py") include ("TruthJiveXML/TruthJiveXML_DataTypes.py") include ("xAODJiveXML/xAODJiveXML_DataTypes.py") -print theEventData2XML +print(theEventData2XML) diff --git a/graphics/JiveXML/share/JiveXML_fromAOD.py b/graphics/JiveXML/share/JiveXML_fromAOD.py index 8809257d548c84f4e62d19d0da47c3bbed69f8b7..f601c050491b06ed3b9919f26a5ded89ff60ba0a 100755 --- a/graphics/JiveXML/share/JiveXML_fromAOD.py +++ b/graphics/JiveXML/share/JiveXML_fromAOD.py @@ -1,11 +1,12 @@ -print "=== JiveXML_fromAOD.py: " -print "=== Producing XML output for Atlantis event display" -print "=== 25 events processed by default." -print "=== Make sure you have a file AOD.pool.root connected with " -print "=== symbolic link in this directory, e.g." -print "=== ln -sf myAOD_runNumber.pool.root AOD.pool.root " -print "=== Make sure you have matching geometry, check with: " -print "=== os.system('dumpVersionTags.py AOD.pool.root | grep \"GeoAtlas \"') " +from __future__ import print_function +print("=== JiveXML_fromAOD.py: ") +print("=== Producing XML output for Atlantis event display") +print("=== 25 events processed by default.") +print("=== Make sure you have a file AOD.pool.root connected with ") +print("=== symbolic link in this directory, e.g.") +print("=== ln -sf myAOD_runNumber.pool.root AOD.pool.root ") +print("=== Make sure you have matching geometry, check with: ") +print("=== os.system('dumpVersionTags.py AOD.pool.root | grep \"GeoAtlas \"') ") import os import sys from RecExConfig.RecFlags import rec @@ -14,13 +15,13 @@ from AthenaCommon.AthenaCommonFlags import athenaCommonFlags from AthenaCommon.GlobalFlags import globalflags if os.path.isfile("AOD.pool.root"): athenaCommonFlags.PoolAODInput.set_Value_and_Lock(['AOD.pool.root']) - print "=== AOD file found ! " + print("=== AOD file found ! ") #### EDIT geometry version here if necessary: #globalflags.DetDescrVersion.set_Value_and_Lock('ATLAS-GEONF-08-00-00') #### EDIT number of events here, default 25: athenaCommonFlags.EvtMax.set_Value_and_Lock(25) include ("JiveXML/JiveXML_jobOptions_AODRecEx.py") else: - print "=== AOD.pool.root not found. Exiting." + print("=== AOD.pool.root not found. Exiting.") sys.exit(0)