Skip to content

Commit

Permalink
Merge pull request #46176 from iarspider/iarspider-patches-20240930-21
Browse files Browse the repository at this point in the history
[L1] Fix syntax in python scripts
  • Loading branch information
cmsbuild authored Oct 15, 2024
2 parents 5dd85e8 + 625c7b3 commit 1b425b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def IsMatched(muon1,muon2,sharedFrac=0.5):
##
files = ['../../../../DTTriggerPhase2Primitives.root']

print "Number of files: %d" % len(files)
print("Number of files: %d" % len(files))

events = Events(files)

Expand Down Expand Up @@ -191,7 +191,7 @@ def IsMatched(muon1,muon2,sharedFrac=0.5):
hTimeRes_MB_q8.append(ROOT.TH1F("hTimeRes_MB_MB%i_MB_Wh%i_MB_q8_MB_%s" %(st, wh, fracname), "", 20, -100, 100.))


print "now save into dictionary"
print("now save into dictionary")
outputDict[fracname] = {}
for st in range(1,5):
outputDict[fracname]['hMatchingEff_MB%i'%st] = hMatchingEff[st-1]
Expand Down Expand Up @@ -260,7 +260,7 @@ def IsMatched(muon1,muon2,sharedFrac=0.5):
f= open("EventDumpList_StdToBayes.log","w+")

for ev in events:
if not count%1000: print count, events.size()
if not count%1000: print(count, events.size())
count = count+1

ev.getByLabel(muoBayesLabel, muoBayesHandle)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,14 @@
outpath = "../../../../Groupings/"
if not os.path.exists(outpath):
os.mkdir(outpath)
print "cp /afs/cern.ch/user/n/ntrevisa/public/utils/index.php %s/" %outpath
print("cp /afs/cern.ch/user/n/ntrevisa/public/utils/index.php %s/" %outpath)
os.system("cp /afs/cern.ch/user/n/ntrevisa/public/utils/index.php %s/" %outpath)
os.system("cp EventDumpList_StdToBayes.log %s/" %outpath)

outpath = outpath + "StdToBayes/"
if not os.path.exists(outpath):
os.mkdir(outpath)
print "cp /afs/cern.ch/user/n/ntrevisa/public/utils/index.php %s/" %outpath
print("cp /afs/cern.ch/user/n/ntrevisa/public/utils/index.php %s/" %outpath)
os.system("cp /afs/cern.ch/user/n/ntrevisa/public/utils/index.php %s/" %outpath)


Expand Down

0 comments on commit 1b425b3

Please sign in to comment.