-
Notifications
You must be signed in to change notification settings - Fork 0
/
RunUnifiedSubjet.csh
85 lines (61 loc) · 1.99 KB
/
RunUnifiedSubjet.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
#! /usr/bin/env csh
set Exec = "./bin/UnifiedSubjetWrapper"
# make sure executable exists
make $Exec || exit
#parameters
setenv lja antikt
#setenv sja kt
setenv sja antikt
setenv R 0.4
setenv S 0.1
setenv pcmin 0.2
setenv pcmax 1000
#setenv pscmin 2.0
# setenv pscmin 0.2
# setenv pscmax 1000
setenv Nevent -1
setenv base Data/PythiaAndMc_
# setenv pjmin 20
# setenv pjmax 30
setenv pjmin 1
setenv pjmax 100
# setenv infile Data/pytest40.root
# setenv pjmin 40
# setenv pjmax 60
####### Initialize condor file
echo "" > CondorFile
echo "Universe = vanilla" >> CondorFile
echo "Executable = ${Exec}" >> CondorFile
echo "getenv = true" >>CondorFile
foreach input ( ${base}* )
#construct output name
# arguments
set OutBase=`basename $input | sed 's/.root//g'`
set OutName = Results/Subjets_${OutBase}.root
set LogFile = logs/Subjets_${OutBase}.out
set ErrFile = logs/Subjets_${OutBase}.err
set Args = ( -i $input -o ${OutName} -N $Nevent -pj ${pjmin} ${pjmax} -lja $lja -sja $sja -R $R -S $S -pc $pcmin $pcmax )
echo "" >> CondorFile
echo "Output = ${LogFile}" >> CondorFile
echo "Error = ${ErrFile}" >> CondorFile
echo "Arguments = ${Args}" >> CondorFile
echo "Queue" >> CondorFile
echo Submitting:
echo $Exec $Args
echo "Logging output to " $LogFile
echo "Logging errors to " $ErrFile
echo
end
condor_submit CondorFile
# foreach pcmin (0.2 2.0 )
# # foreach S ( 0.05 0.75 0.1 0.125 0.15 0.175 0.2 )
# foreach S ( 0.05 0.1 0.15 0.2 )
# foreach sja ( kt antikt )
# #construct output name
# set namebase=${base}_${lja}_R${R}_pcmin${pcmin}_${sja}_SR${S}
# # echo $namebase
# # echo SubjetWrapper -N $Nevent -lja $lja -sja $sja -R $R -S $S -pc $pcmin $pcmax -o Results/${namebase}.root
# ./bin/DevSubjetWrapper -i $infile -N $Nevent -pj ${pjmin} ${pjmax} -lja $lja -sja $sja -R $R -S $S -pc $pcmin $pcmax -o Results/${namebase}.root >& logs/${namebase}.log &
# end
# end
# end