-
Notifications
You must be signed in to change notification settings - Fork 1
/
qRunPp12.csh
executable file
·101 lines (75 loc) · 2.31 KB
/
qRunPp12.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
100
#! /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
set ResultDir = Results/Pieces
setenv pcmin 0.2
# setenv R 0.4
# setenv ht 5.4
# setenv trig ppJP2
# setenv bg 0
# setenv OutBase ForPaper_Pp12_HT54_JP2_NoEff_NoBgSub
setenv R 0.4
setenv ht -1
setenv trig ppJP2
setenv bg 0
setenv hadcorr 0.9999999
#setenv OutBase ForPaper_Pp12_JP2_NoEff_NoBgSub
setenv OutBase RESHUFFLED_Pp12_JP2_NoEff_NoBgSub
# setenv hadcorr 0.5
# setenv OutBase ForPaper_Pp12_JP2_HC50_NoEff_NoBgSub
# setenv hadcorr -1
# setenv OutBase ForPaper_Pp12_JP2_MIP_NoEff_NoBgSub
# setenv R 0.6
# setenv ht -1
# setenv trig ppJP2
# setenv bg 1
# setenv hadcorr 0.9999999
# setenv OutBase CrossCheck_Pp12_JP2_NoEff_AreaSub
if ( $R != 0.4 ) then
setenv OutBase R${R}_$OutBase
endif
set submitted=0
foreach File ( Data/ppJP2Run12/sum*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} )
set Args = ( $Args -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 -q erhiq -l mem=2gb -W umask=0022 -N Pp12Groom -o $LogFile -e $ErrFile -- ${ExecPath}/qwrap.sh ${ExecPath} $Exec $Args
echo
qsub -V -p 10 -q erhiq -l mem=2gb -W umask=0022 -N Pp12Groom -o $LogFile -e $ErrFile -- ${ExecPath}/qwrap.sh ${ExecPath} $Exec $Args
@ submitted = $submitted + 1
end
unset noglob
echo Submitted $submitted jobs to the grid.