diff --git a/Reconstruction/HeavyIonRec/HIJetRec/python/HIJetRecConfig.py b/Reconstruction/HeavyIonRec/HIJetRec/python/HIJetRecConfig.py index 9c1666c97ab0d4fbe63f07ef1b6520b74e780004..8e3194723d6c522e890ca03cf31b66bcdde4d18a 100644 --- a/Reconstruction/HeavyIonRec/HIJetRec/python/HIJetRecConfig.py +++ b/Reconstruction/HeavyIonRec/HIJetRec/python/HIJetRecConfig.py @@ -1,5 +1,7 @@ # Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration +from __future__ import print_function + from HIJetRec.HIJetRecFlags import HIJetFlags import AthenaCommon.SystemOfUnits as Units from RecExConfig.RecFlags import rec @@ -7,7 +9,7 @@ from JetRec.JetRecFlags import jetFlags def SetHIPMode() : if not rec.doHIP() : return - print 'Setting HIJetRec in HIPMode' + print ('Setting HIJetRec in HIPMode') HIJetFlags.HarmonicsForSubtraction.set_Value_and_Lock([]) HIJetFlags.ExtraFlowMoments.set_Value_and_Lock(False) HIJetFlags.SeedPtMin.set_Value_and_Lock(8*Units.GeV) @@ -15,7 +17,7 @@ def SetHIPMode() : HIJetFlags.TrackJetPtMin.set_Value_and_Lock(4*Units.GeV) def SetDebugMode(): - print 'Setting HIJetRec in DEBUG mode' + print ('Setting HIJetRec in DEBUG mode') HIJetFlags.ExtraFlowMoments.set_Value_and_Lock(True) HIJetFlags.RecoOutputPtMin.set_Value_and_Lock(8*Units.GeV) HIJetFlags.WriteSeeds.set_Value_and_Lock(True) diff --git a/Reconstruction/HeavyIonRec/HIJetRec/share/HIJetRec_jobOptions.py b/Reconstruction/HeavyIonRec/HIJetRec/share/HIJetRec_jobOptions.py index 323392936f9122cdf3560e88c3bee633b3544620..285c0578cc5c57846426aa6e15edceaffa8f16b9 100644 --- a/Reconstruction/HeavyIonRec/HIJetRec/share/HIJetRec_jobOptions.py +++ b/Reconstruction/HeavyIonRec/HIJetRec/share/HIJetRec_jobOptions.py @@ -37,12 +37,12 @@ if jetFlags.useTruth(): inputcontent = objKeyStore['inputFile'].list() for t in inputcontent : if tname in t: - print 'Truth collection %s already exists, no need to rebuild it' % tname + printfunc ('Truth collection %s already exists, no need to rebuild it' % tname) collExists=True break if collExists: continue f=jtm.addJetFinder(tname,"AntiKt", R,"truth", ptmin= HIJetFlags.TruthJetPtMin()) - print 'Adding %s' %tname + printfunc ('Adding %s' %tname) AddToOutputList(tname) jtm.HIJetRecs+=[f] @@ -151,9 +151,9 @@ if HIJetFlags.DoHIBTagging(): jetname.JetModifiers += [ btagger ] jetname.lock() if BTaggingFlags.OutputLevel < 3: - print ConfInstance.getJetCollectionTool(jet[:-4]) + printfunc (ConfInstance.getJetCollectionTool(jet[:-4])) except AttributeError as error: - print '#BTAG# --> ' + str(error) + printfunc ('#BTAG# --> ' + str(error)) NotInJetToolManager.append(AuthorSubString[i]) if len(NotInJetToolManager) > 0: