-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRunGroom.csh
83 lines (58 loc) · 1.69 KB
/
RunGroom.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
#! /usr/bin/env csh
set Exec = "./bin/Groom"
# make sure executable exists
make $Exec || exit
#parameters
set lja=antikt
#set lja=cambri
set Nevent=-1
# set base=Data/LhcPythia/*root
# set etacut=3
set base=Data/RhicPythia/*root
set etacut=1
# set base=Data/LhcPythiaAndMc_
# set etacut=3
# # set base=Data/PythiaAndMc_0_ptHat
# # set etacut=1
set embi=FAKERHIC
set pjmin=10
set pjmax=2000
####### Initialize condor file
echo "" > CondorFile
echo "Universe = vanilla" >> CondorFile
echo "Executable = ${Exec}" >> CondorFile
echo "getenv = true" >>CondorFile
set R=0.4
#set R=0.2
set ReclusterString=""
set pcmax=10000
#set pcmin=0.2
#set NameBase=Groom
set pcmin=2.0
set NameBase=Hi_Groom
# different declustering algorithm?
set ReclusterString="-rcja antikt"
set NameBase=${NameBase}_RcAntiKt
# set ReclusterString="-rcja kt"
# set NameBase=${NameBase}_RcKt
#foreach input ( ${base}* )
foreach input ( ${base} )
#construct output name
# arguments
set OutBase=`basename $input | sed 's/.root//g'`
set OutName = Results/${NameBase}_${OutBase}.root
set LogFile = logs/${NameBase}_${OutBase}.out
set ErrFile = logs/${NameBase}_${OutBase}.err
set Args = ( -i $input -o ${OutName} -N $Nevent -pj ${pjmin} ${pjmax} -lja $lja ${ReclusterString} -ec $etacut -R $R -embi $embi -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