-
Notifications
You must be signed in to change notification settings - Fork 1
/
qGeantAdder.csh
executable file
·58 lines (39 loc) · 1.92 KB
/
qGeantAdder.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
#!/usr/bin/env csh
# ls -lt logs/McGeant_NoEff_NoBg_MB*out|wc -l --> 116
# grep -l Done logs/Geant_NoEff_NoBg_HT54_picoDst_*out
# grep -l Done logs/McGeant_NoEff_NoBg_MB*out
set ExecPath = `pwd`
#set RMod = ""
#set RMod = R0.2_
#set RMod = Pt1_
# set inbase = Recut_McGeant_NoEff_NoBg_MB_picoDst
# set outbase = Recut_McGeant_NoEff_NoBg_MB
# set inbase = Recut_Geant_NoEff_NoBg_HT54_picoDst
# set outbase = Recut_Geant_NoEff_NoBg_HT54
# set inbase = Geant_NoEff_NoBg_MB_picoDst
# set outbase = Geant_NoEff_NoBg_MB
set inbase = Recut_McGeant_NoEff_NoBg_MB_picoDst
set outbase = Recut_McGeant_NoEff_NoBg_MB
set binjobs=''
set binouts=''
#set ab25binouts=''
foreach bin ( `find Data/GeantPythia/ -name '[0-9]*' -exec basename {} \; ` )
set In = Results/Pieces/${inbase}_${bin}*.root
set Out = Results/${outbase}_${bin}.root
# Logfiles.
set LogFile = logs/Add_${inbase}_${bin}.out
set ErrFile = logs/Add_${inbase}_${bin}.err
set binjobs=${binjobs}:`qsub -V -p 10 -q erhiq -l mem=2gb -W umask=0022 -N AddGeantPart -o $LogFile -e $ErrFile -- ${ExecPath}/qwrap.sh ${ExecPath} hadd -f ${Out} ${In}`
set binouts="${binouts} $Out"
# if ( $bin =~ *25_35* || $bin =~ *35_45* || $bin =~ *45_55* || $bin =~ *55_65* ) set ab25binouts="${ab25binouts} $Out"
end
# finalize
set Out = Results/${outbase}.root
set LogFile = logs/Add_${inbase}.out
set ErrFile = logs/Add_${inbase}.err
qsub -W depend=afterok${binjobs} -V -p 10 -q erhiq -l mem=2gb -W umask=0022 -N AddGeant -o $LogFile -e $ErrFile -- ${ExecPath}/qwrap.sh ${ExecPath} hadd -f ${Out} ${binouts}
# # finalize
# set Out = Results/Above25_${outbase}.root
# set LogFile = logs/Add_Above25_${inbase}.out
# set ErrFile = logs/Add_Above25_${inbase}.err
# qsub -W depend=afterok${binjobs} -V -p 10 -q erhiq -l mem=2gb -W umask=0022 -N AddGeant -o $LogFile -e $ErrFile -- ${ExecPath}/qwrap.sh ${ExecPath} hadd -f ${Out} ${ab25binouts}