SND@LHC Software
Loading...
Searching...
No Matches
submitPyG4prod.py
Go to the documentation of this file.
1
import
os,time
2
path =
'../'
3
if
not
os.uname()[1].find(
'Ubuntu'
)<0: path = os.environ[
'HNL'
]
4
os.system(
'cp '
+path+
'/g4Ex.py g4Ex_thisProduction.py '
)
5
nevents = {1:100000,10:1000000,100:10000000}
6
ecut = 100.
7
for
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
muonShieldOptimization
submitPyG4prod.py
Generated by
1.9.8