Skip to content
Snippets Groups Projects
Commit 672ea813 authored by Edward Moyse's avatar Edward Moyse
Browse files

Merge branch 'FIXFlags' into 'master'

fix print for python 3

See merge request atlas/athena!34095
parents 0c323603 c3ace342
No related branches found
No related tags found
No related merge requests found
...@@ -108,12 +108,12 @@ if jetFlags.useTruth(): ...@@ -108,12 +108,12 @@ if jetFlags.useTruth():
inputcontent = objKeyStore['inputFile'].list() inputcontent = objKeyStore['inputFile'].list()
for t in inputcontent : for t in inputcontent :
if tname in t: if tname in t:
print 'Truth collection %s already exists, no need to rebuild it' % tname print("Truth collection %s already exists, no need to rebuild it" % tname)
collExists=True collExists=True
break break
if collExists: continue if collExists: continue
f=jtm.addJetFinder(tname,"AntiKt", R,"truth", ptmin= HIJetFlags.TruthJetPtMin()) f=jtm.addJetFinder(tname,"AntiKt", R,"truth", ptmin= HIJetFlags.TruthJetPtMin())
print 'Adding %s' %tname print("Adding %s" %tname)
AddToOutputList(tname) AddToOutputList(tname)
#jtm.HIJetRecs+=[f] #jtm.HIJetRecs+=[f]
...@@ -143,13 +143,13 @@ modulator0=iter0.Modulator ...@@ -143,13 +143,13 @@ modulator0=iter0.Modulator
subtr1=MakeSubtractionTool(iter0.OutputEventShapeKey,modulator=modulator0) subtr1=MakeSubtractionTool(iter0.OutputEventShapeKey,modulator=modulator0)
#now iterate #now iterate
print 'Now moving to iteration 1' print("Now moving to iteration 1")
seeds1=jtm.addJetCopier("%s_%s1" % (seed_prefix,HIJetFlags.SeedSuffix()),"%s_Unsubtracted" % seed_prefix,[subtr1,jtm.HICalibMap[seed_prefix],jtm.jetfilHISeeds],shallow=False) seeds1=jtm.addJetCopier("%s_%s1" % (seed_prefix,HIJetFlags.SeedSuffix()),"%s_Unsubtracted" % seed_prefix,[subtr1,jtm.HICalibMap[seed_prefix],jtm.jetfilHISeeds],shallow=False)
jtm.HIJetRecs+=[seeds1] jtm.HIJetRecs+=[seeds1]
iteration_dict=dict(suffix="iter1") iteration_dict=dict(suffix="iter1")
if jetFlags.useTracks() and HIJetFlags.TrackJetSeeds() : iteration_dict['track_jet_seeds']=HIJetFlags.TrackJetContainerName() if jetFlags.useTracks() and HIJetFlags.TrackJetSeeds() : iteration_dict['track_jet_seeds']=HIJetFlags.TrackJetContainerName()
print 'Adding iteration 1' print("Adding iteration 1")
iter1=AddIteration(seed_container=seeds1.OutputContainer,shape_name=EventShapeKey,**iteration_dict) iter1=AddIteration(seed_container=seeds1.OutputContainer,shape_name=EventShapeKey,**iteration_dict)
HIJetFlags.IteratedEventShapeKey=iter1.OutputEventShapeKey HIJetFlags.IteratedEventShapeKey=iter1.OutputEventShapeKey
...@@ -243,9 +243,9 @@ if HIJetFlags.DoHIBTagging(): ...@@ -243,9 +243,9 @@ if HIJetFlags.DoHIBTagging():
jetname.JetModifiers += [ btagger ] jetname.JetModifiers += [ btagger ]
jetname.lock() jetname.lock()
if BTaggingFlags.OutputLevel < 3: if BTaggingFlags.OutputLevel < 3:
print ConfInstance.getJetCollectionTool(jet[:-4]) print(ConfInstance.getJetCollectionTool(jet[:-4]))
except AttributeError as error: except AttributeError as error:
print '#BTAG# --> ' + str(error) print("#BTAG# --> " + str(error))
NotInJetToolManager.append(AuthorSubString[i]) NotInJetToolManager.append(AuthorSubString[i])
if len(NotInJetToolManager) > 0: if len(NotInJetToolManager) > 0:
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#-------------------------------- #--------------------------------
include.block ('HIRecExample/HIRec_jobOptions.py') include.block ('HIRecExample/HIRec_jobOptions.py')
print 'IN HEAVY ION REC' print("IN HEAVY ION REC")
# # General adjustments # # General adjustments
# topSequence.TimeOut=3600* Units.s # topSequence.TimeOut=3600* Units.s
...@@ -20,7 +20,7 @@ from HIRecExample.HIRecExampleFlags import jobproperties ...@@ -20,7 +20,7 @@ from HIRecExample.HIRecExampleFlags import jobproperties
# include reconstruction algorithms # include reconstruction algorithms
# only in ESD step # only in ESD step
if rec.doESD: if rec.doESD:
print "Including HI algorithms in ESD step" print("Including HI algorithms in ESD step")
if jobproperties.HIRecExampleFlags.doHIGlobal: if jobproperties.HIRecExampleFlags.doHIGlobal:
include( "HIGlobal/HIGlobal_jobOptions.py" ) include( "HIGlobal/HIGlobal_jobOptions.py" )
......
...@@ -13,7 +13,7 @@ rec.doDPD.set_Value_and_Lock(False) ...@@ -13,7 +13,7 @@ rec.doDPD.set_Value_and_Lock(False)
if not jobproperties.HIRecExampleFlags.ppMode : if not jobproperties.HIRecExampleFlags.ppMode :
if rec.doESD : if rec.doESD :
print "Applying HI ESD flags mods" print("Applying HI ESD flags mods")
# AO general # AO general
rec.Commissioning.set_Value_and_Lock(True) rec.Commissioning.set_Value_and_Lock(True)
...@@ -51,7 +51,7 @@ if not jobproperties.HIRecExampleFlags.ppMode : ...@@ -51,7 +51,7 @@ if not jobproperties.HIRecExampleFlags.ppMode :
jobproperties.egammaRecFlags.cellContainerName.set_On() jobproperties.egammaRecFlags.cellContainerName.set_On()
jobproperties.egammaRecFlags.cellContainerName.set_Value_and_Lock("SubtractedCells") jobproperties.egammaRecFlags.cellContainerName.set_Value_and_Lock("SubtractedCells")
print 'AO: CaloRecFlags doCaloCluster=False' print("AO: CaloRecFlags doCaloCluster=False")
jobproperties.CaloRecFlags.doCaloCluster=False # not working? jobproperties.CaloRecFlags.doCaloCluster=False # not working?
jobproperties.CaloRecFlags.doEmCluster=False jobproperties.CaloRecFlags.doEmCluster=False
#turning off TopoClusters #turning off TopoClusters
...@@ -90,9 +90,9 @@ if not jobproperties.HIRecExampleFlags.ppMode : ...@@ -90,9 +90,9 @@ if not jobproperties.HIRecExampleFlags.ppMode :
ptCutVal = 0.5 ptCutVal = 0.5
if jobproperties.HIRecExampleFlags.ptCutOn(): if jobproperties.HIRecExampleFlags.ptCutOn():
ptCutVal = jobproperties.HIRecExampleFlags.ptCut() ptCutVal = jobproperties.HIRecExampleFlags.ptCut()
print "ptCutOn: Modify ptCutVal to ", ptCutVal," GeV" print("ptCutOn: Modify ptCutVal to ", ptCutVal," GeV")
if ( rec.triggerStream() == "HardProbes" ) or ( globalflags.DataSource == "geant4" ): if ( rec.triggerStream() == "HardProbes" ) or ( globalflags.DataSource == "geant4" ):
print "Modify ConfiguredNewTrackingCuts__minPT to ", ptCutVal," GeV" print("Modify ConfiguredNewTrackingCuts__minPT to ", ptCutVal," GeV")
from InDetRecExample.ConfiguredNewTrackingCuts import ConfiguredNewTrackingCuts from InDetRecExample.ConfiguredNewTrackingCuts import ConfiguredNewTrackingCuts
InDetNewTrackingCuts = ConfiguredNewTrackingCuts("HeavyIon") InDetNewTrackingCuts = ConfiguredNewTrackingCuts("HeavyIon")
InDetNewTrackingCuts._ConfiguredNewTrackingCuts__minPT = ptCutVal * Units.GeV InDetNewTrackingCuts._ConfiguredNewTrackingCuts__minPT = ptCutVal * Units.GeV
......
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