Skip to content

Commit f2ef4ee

Browse files
authored
Merge pull request #46170 from iarspider/iarspider-patches-20240930-14
[RECONSTRUCTION] Fix syntax in python scripts
2 parents f1f20a4 + bbfc92f commit f2ef4ee

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

RecoHI/HiEvtPlaneAlgos/test/hievtplaneflat_cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
process.GlobalTag.toGet.extend([
5858
cms.PSet(record = cms.string("HeavyIonRPRcd"),
59-
tag = cms.string('HeavyIonRPRcd_Hydjet_74x_v02_mc')
59+
tag = cms.string('HeavyIonRPRcd_Hydjet_74x_v02_mc'),
6060
connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_PAT_000")
6161
)
6262
])

RecoTracker/MkFitCore/standalone/plotting/compareTotals.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def getRatioAxes( xMin, xMax, yMin, yMax ):
8787
subrate = []
8888

8989
for subdir in subdirs:
90-
print "In subdir %s:"%subdir
90+
print("In subdir %s:"%subdir)
9191
fs[d].cd(subdir)
9292

9393
thiseff_obj = []
@@ -104,7 +104,7 @@ def getRatioAxes( xMin, xMax, yMin, yMax ):
104104
obj = key.ReadObj()
105105
if obj.IsA().InheritsFrom("TH1"):
106106
h = obj
107-
#print "Found TH1 %s"%h.GetName()
107+
#print("Found TH1 %s"%h.GetName())
108108

109109
thishist.append(h)
110110
thishist[nh].Sumw2()
@@ -118,7 +118,7 @@ def getRatioAxes( xMin, xMax, yMin, yMax ):
118118

119119
if obj.IsA().InheritsFrom("TEfficiency"):
120120
e = obj
121-
#print "Found TEfficiency %s"%e.GetName()
121+
#print("Found TEfficiency %s"%e.GetName())
122122

123123
thiseff_obj .append(e)
124124
thiseff_obj[ne].SetLineColor(colors[d])

RecoTracker/MkFitCore/standalone/plotting/makeBenchmarkPlots.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def run():
2626
elif arch == 'SNB' :
2727
vuvals.append('8int')
2828
else :
29-
print arch,'is not a valid architecture! Exiting...'
29+
print(arch,'is not a valid architecture! Exiting...')
3030
sys.exit(0)
3131

3232
# call the make plots function
@@ -50,7 +50,7 @@ def run():
5050
nvu = '16int'
5151
thvals = ['1','2','4','8','16','32','48','64']
5252
else :
53-
print arch,'is not a valid architecture! Exiting...'
53+
print(arch,'is not a valid architecture! Exiting...')
5454
sys.exit(0)
5555

5656
# call the make plots function
@@ -67,11 +67,11 @@ def makeplots(arch,sample,build,vals,nC,text):
6767
elif build == 'CE' : pos = 14
6868
elif build == 'FV' : pos = 17
6969
else :
70-
print build,'is not a valid test! Exiting...'
70+
print(build,'is not a valid test! Exiting...')
7171
sys.exit(0)
7272

7373
# time
74-
print arch,sample,build,text
74+
print(arch,sample,build,text)
7575

7676
# define tgraphs vs absolute time and speedup
7777
g_time = ROOT.TGraphErrors(len(vals)-1)
@@ -98,7 +98,7 @@ def makeplots(arch,sample,build,vals,nC,text):
9898
if text is 'VU' : os.system('grep Matriplex log_'+arch+'_'+sample+'_'+build+'_NVU'+val+'_NTH'+nC +'.txt >& log_'+arch+'_'+sample+'_'+build+'_'+text+'.txt')
9999
elif text is 'TH' : os.system('grep Matriplex log_'+arch+'_'+sample+'_'+build+'_NVU'+nC +'_NTH'+val+'.txt >& log_'+arch+'_'+sample+'_'+build+'_'+text+'.txt')
100100
else :
101-
print 'VU or TH are the only options for extra text! Exiting...'
101+
print('VU or TH are the only options for extra text! Exiting...')
102102
exit
103103

104104
# open temp file, store event times into yvals
@@ -130,7 +130,7 @@ def makeplots(arch,sample,build,vals,nC,text):
130130
emean = 0
131131

132132
# Printout value for good measure
133-
print val,mean,'+/-',emean
133+
print(val,mean,'+/-',emean)
134134

135135
# store intrinsics val into separate plot
136136
if 'int' not in val :

RecoTracker/MkFitCore/standalone/plotting/makeMEIFBenchmarkPlots.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
thvals = ['1','2','4','8','16','32','48','64']
3434
evvals = ['1','2','4','8','16','32','64']
3535
else :
36-
print arch,"is not a valid architecture! Exiting..."
36+
print(arch,"is not a valid architecture! Exiting...")
3737
sys.exit(0)
3838

3939
# extra text label
@@ -49,7 +49,7 @@
4949

5050
# time
5151
for evval in evvals :
52-
print arch,sample,build,"nEV:",evval
52+
print(arch,sample,build,"nEV:",evval)
5353

5454
# define event float
5555
ev = float(evval)
@@ -80,7 +80,7 @@
8080
yval /= nev
8181

8282
# Printout value for good measure
83-
print xval,yval
83+
print(xval,yval)
8484

8585
# store val
8686
g_time.SetPoint(point,xval,yval)

0 commit comments

Comments
 (0)