SND@LHC Software
Loading...
Searching...
No Matches
submitPyG4prod.py
Go to the documentation of this file.
1import os,time
2path = '../'
3if not os.uname()[1].find('Ubuntu')<0: path = os.environ['HNL']
4os.system('cp '+path+'/g4Ex.py g4Ex_thisProduction.py ')
5nevents = {1:100000,10:1000000,100:10000000}
6ecut = 100.
7for run in range(30,40):
8 logfile = 'log'+str(run)+'_'+str(ecut)
9 if logfile in os.listdir('.'): os.system('rm '+logfile)
10 cmd = 'python g4Ex_thisProduction.py '+str(run)+' '+str(int(nevents[ecut]))+' '+str(ecut)+' > '+logfile+' &'
11 os.system(cmd)
12 time.sleep(10)
13
14# ecut 1, 1E4 events = 63000 seconds = 17.5h : for 1E9 -> 200yrs
15# ecut 10, 1E4 events = 940 seconds for 1E9 -> 3yrs