-
Notifications
You must be signed in to change notification settings - Fork 1
/
qRunGeant12.csh
executable file
·104 lines (79 loc) · 2.3 KB
/
qRunGeant12.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#! /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 pcmin 0.2
# setenv R 0.4
# setenv bg 0
# setenv ht -1
# setenv chainname JetTree
# setenv intype pico
# setenv etacut 1
# setenv OutBase Geant12_NoEff_NoBg_MB
# setenv trig all
# setenv pcmin 0.2
# setenv R 0.4
# setenv bg 0
# setenv ht 5.4
# setenv chainname JetTree
# setenv intype pico
# setenv etacut 1
# setenv OutBase ReCut_Geant12_NoEff_NoBg_HT54_JP
# setenv trig ppJP
setenv pcmin 0.2
setenv R 0.4
setenv bg 0
setenv chainname JetTreeMc
setenv intype mcpico
setenv etacut 7
setenv trig all
setenv ht -1
setenv OutBase McGeant12_NoEff_NoBg_all
if ( $chainname == JetTreeMc ) then
if ( $etacut != 7 ) then
echo Please double check the eta cut
exit
endif
else if ( $etacut != 1 ) then
echo Please double check the eta cut
exit
endif
setenv embi NONE
setenv pjmin 5
setenv pjmax 2000
#set ResultDir = Results
set ResultDir = Results/Pieces
if ( $R != 0.4 ) then
setenv OutBase R${R}_$OutBase
endif
set submitted=0
foreach File ( Data/AddedEmbedPythiaRun12pp200/Cleanpp12*root )
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} )
echo Submitting:
echo $Exec $Args
echo "Logging output to " $LogFile
echo "Logging errors to " $ErrFile
echo
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 Geant12Groom -o $LogFile -e $ErrFile -- ${ExecPath}/qwrap.sh ${ExecPath} $Exec $Args
echo
qsub -V -p 10 -q erhiq -l mem=2gb -W umask=0022 -N Geant12Groom -o $LogFile -e $ErrFile -- ${ExecPath}/qwrap.sh ${ExecPath} $Exec $Args
@ submitted = $submitted + 1
end
unset noglob
echo Submitted $submitted jobs to the grid.