-
Notifications
You must be signed in to change notification settings - Fork 1
/
qRunPp.csh
executable file
·88 lines (60 loc) · 1.78 KB
/
qRunPp.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
#! /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 pico
setenv chainname JetTree
setenv etacut 1
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 bg 1
setenv pjmin 5
setenv pjmax 2000
set ResultDir = Results
setenv pcmin 0.2
#setenv OutBase Groom_McGeant
#setenv pcmin 2.0
#setenv NameBase HighConsGroom
setenv R 0.4
setenv ht 5.4
setenv trig ppHT
setenv bg 0
setenv hadcorr 0.999999
setenv OutBase Recut_Pp_HT54_NoEff_NoBgSub
# setenv bg 0
# setenv hadcorr -1
# setenv OutBase Recut_Pp_HT54_MIP_NoEff_NoBgSub
# setenv bg 1
# setenv OutBase Pp_HT54_NoEff_AreaSub
# setenv bg 2
# setenv OutBase Pp_HT54_NoEff_ConstSubPre
set noglob
set Files = Data/ppHT/*.root
set LogFile = logs/${OutBase}.out
set ErrFile = logs/${OutBase}.err
set OutName = ${ResultDir}/${OutBase}.root
set Args = ( -i $Files -intype ${intype} -c ${chainname} -trig ${trig} -o ${OutName} -bg ${bg} -ht ${ht} )
set Args = ( $Args -N $Nevent -pj ${pjmin} ${pjmax} -pc ${pcmin} ${pcmax} -lja $lja -ec $etacut -R $R -embi ${embi} -hadcorr ${hadcorr} )
echo Submitting:
echo $Exec $Args
echo "Logging output to " $LogFile
echo "Logging errors to " $ErrFile
echo to resubmit:
echo qsub -V -p 10 -q erhiq -l mem=2gb -W umask=0022 -N PpGroom -o $LogFile -e $ErrFile -- ${ExecPath}/qwrap.sh ${ExecPath} $Exec $Args
echo
qsub -V -p 10 -q erhiq -l mem=2gb -W umask=0022 -N PpGroom -o $LogFile -e $ErrFile -- ${ExecPath}/qwrap.sh ${ExecPath} $Exec $Args
unset noglob