Skip to content

Commit

Permalink
Merge pull request #23851 from davidlange6/printMig_180718T4_SimG4CMS…
Browse files Browse the repository at this point in the history
…_HcalTestBeam

Print function migration for SimG4CMS_HcalTestBeam
  • Loading branch information
cmsbuild committed Jul 21, 2018
2 parents 6ed3c90 + 5e81416 commit 7772eea
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions SimG4CMS/HcalTestBeam/test/python/run_tb06_all_cfg.py
@@ -1,17 +1,18 @@
#!/usr/bin/env python

from __future__ import print_function
import os, sys

#====================== check input ==========================

VERSION = os.environ.get('CMSSW_VERSION')
if VERSION is None:
print '''No environment CMSSW_VERSION'''
print('''No environment CMSSW_VERSION''')
sys.exit()

if len(sys.argv) < 5:
print 'Usage: python run.py PhysList Particle Fhcal VAR'
print 'Example: python run.py FTFP_BERT pi- 106.5 RR'
print('Usage: python run.py PhysList Particle Fhcal VAR')
print('Example: python run.py FTFP_BERT pi- 106.5 RR')
sys.exit()
else:
phys = sys.argv[1]
Expand All @@ -20,7 +21,7 @@
var = sys.argv[4]

text = 'Start RUN for ' + phys + ' ' + part + ' ' + hcal + ' ' + var
print text
print(text)

cmd = 'mkdir -p ' + VERSION
os.system(cmd)
Expand Down Expand Up @@ -98,7 +99,7 @@
cmd4 = 'rm -f ' + outf
os.system(cmd4)
cmd1 = 'echo "Start loop" > ' + outf
print cmd1
print(cmd1)
os.system(cmd1)

for i in range( nE) :
Expand Down

0 comments on commit 7772eea

Please sign in to comment.