-
Notifications
You must be signed in to change notification settings - Fork 0
/
RunEmbPpGroom.csh
84 lines (58 loc) · 1.75 KB
/
RunEmbPpGroom.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
setenv lja antikt
#setenv lja cambri
setenv R 0.4
setenv pcmax 10000
setenv Nevent -1
set noglob
set input='Data/ppHT/*root'
#unset noglob
set intype=pico
set chainname=JetTree
# set embbase='Data/NewPicoDst_AuAuCentralMB/newpicoDstcentralMB*.root'
# set embintype=pico
# set embchainname=JetTree
set embi=FAKERHIC
set embintype=tree
set embchainname=tree
set etacut=1
set pjmin=10
set pjmax=2000
####### Initialize condor file
echo "" > CondorFile
echo "Universe = vanilla" >> CondorFile
echo "Executable = ${Exec}" >> CondorFile
echo "getenv = true" >>CondorFile
setenv pcmin 0.2
setenv NameBase Groom
#setenv pcmin 2.0
#setenv NameBase HighConsGroom
setenv trig ppHT
#foreach embi ( ${embbase} )
#set noglob
#construct output name
# arguments
#set OutBase=`basename $embi | sed 's/.root//g'`
set OutBase=PpEmb
echo Results/${NameBase}_${OutBase}.root
set OutName=Results/${NameBase}_${OutBase}.root
set LogFile = logs/${NameBase}_${OutBase}.out
set ErrFile = logs/${NameBase}_${OutBase}.err
set Args = ( -i $input -intype ${intype} -c ${chainname} -trig ${trig} -o ${OutName} -N $Nevent -pj ${pjmin} ${pjmax} -pc ${pcmin} ${pcmax} -lja $lja -ec $etacut -R $R -embi ${embi} -embintype ${embintype} -embc ${embchainname} )
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
unset noglob