-
Notifications
You must be signed in to change notification settings - Fork 1
/
qRunPythia.csh
executable file
·90 lines (64 loc) · 2.08 KB
/
qRunPythia.csh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#! /usr/bin/env csh
set ExecPath = `pwd`
set Exec = "./bin/RunPpZg"
# make sure executable exists
make $Exec || exit
#parameters
setenv lja antikt
#setenv lja cambri
setenv pcmax 10000
setenv Nevent -1
setenv intype mctree
setenv chainname tree
setenv etacut 1
#setenv etacut 7
# if ( $etacut != 7 ) then
# echo Please double check the eta cut
# exit
# endif
setenv embi NONE
setenv bg 1
setenv pjmin 5
setenv pjmax 2000
#set ResultDir = Results
set ResultDir = Results/Pieces
setenv pcmin 0.2
setenv R 0.4
setenv ht -1
setenv trig all
setenv bg 0
setenv OutBase ForPaper_Pythia8_NoEff_NoBgSub
setenv trig all
# setenv R 0.4
# setenv ht -1
# setenv trig all
# setenv bg 0
# setenv OutBase RESHUFFLED_Pythia8_NoEff_NoBgSub
# setenv trig all
if ( $R != 0.4 ) then
setenv OutBase R${R}_$OutBase
endif
set submitted=0
#foreach File ( Data/AlternateRhicPythia/LargeEtaPythiaOnly_1_*root )
#foreach File ( Data/AlternateRhicPythia/NoHadronization_LargeEtaPythiaOnly_1_*root )
foreach File ( Data/AlternateRhicPythia/NoHadronization_NoMPI_LargeEtaPythiaOnly_1_*root )
set nefcut=' -jetnef 1'
#set nefcut ''
set FileBase = `basename ${File} | sed s/.root//g`
set OutName = ${ResultDir}/${OutBase}_${FileBase}.root
# Logfiles.
set LogFile = logs/${OutBase}_${FileBase}.out
set ErrFile = logs/${OutBase}_${FileBase}.err
set Args = ( -i $File -intype ${intype} -c ${chainname} -trig ${trig} -o ${OutName} -bg ${bg} -ht ${ht} -N $Nevent -pj ${pjmin} ${pjmax} -pc ${pcmin} ${pcmax} -lja $lja -ec $etacut -R $R -embi ${embi} ${nefcut} )
echo Submitting:
echo $Exec $Args
echo "Logging output to " $LogFile
echo "Logging errors to " $ErrFile
echo to resubmit:
echo qsub -V -q erhiq -l mem=2gb -W umask=0022 -N PythiaGroom -o $LogFile -e $ErrFile -- ${ExecPath}/qwrap.sh ${ExecPath} $Exec $Args
echo
qsub -V -q erhiq -l mem=2gb -W umask=0022 -N PythiaGroom -o $LogFile -e $ErrFile -- ${ExecPath}/qwrap.sh ${ExecPath} $Exec $Args
@ submitted = $submitted + 1
end
unset noglob
echo Submitted $submitted jobs to the grid.