-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdoAll.sh
50 lines (38 loc) · 1.74 KB
/
doAll.sh
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
#!/bin/bash
echo "executing doAll.C"
root -b -q doAll.C >& doAll.log
echo "determining histogram root file from doAll.C, using first to find in results/ except hist_noCuts.root"
rootfile=`ls -1 results/*.root | grep -v hist_noCuts.root | head -1 | sed -e 's/results\///g'`
echo "histogram root file: $rootfile"
echo "extracting yields"
root -b -q 'macro_getYields.C("'$rootfile'")' >& macro_getYields.log &
echo "produce plots"
root -b -q 'macro_drawHists.C("'$rootfile'")' >& macro_drawHists.log &
echo "produce reco level plots"
root -b -q macro_recoLevel.C >& macro_recoLevel.log &
root -b -q macro_2DrecoLevel.C >& macro_2DrecoLevel.log &
root -b -q macro_2DrecoLevelttpt.C >& macro_2DrecoLevelttpt.log &
root -b -q macro_2DrecoLevelttrapidity2.C >& macro_2DrecoLevelttrapidity2.log &
echo "executing doAll_nocuts.C"
root -b -q doAll_nocuts.C >& doAll_nocuts.log
echo "create acceptance histograms"
root -b -q 'macro_acceptanceHists.C("'$rootfile'")' >& macro_acceptanceHists.log
mkdir -p acceptance/mcnlo/
mv -f accept_*.* acceptance/mcnlo/
echo "making temporary copy of acceptance histograms ***TO BE REPLACED WITH RESULTS WITH NO TOP PT REWEIGHTING***"
cp -pr acceptance/mcnlo acceptance/mcnlo_nopTreweighting
echo "run 1D unfolding"
cd RooUnfold
make
root -b -q macro_1DUnfolding.C >& macro_1DUnfolding.log
echo "re-building using custom TSVDUnfold.cxx for 2D unfolding"
make clean
mv GNUmakefile GNUmakefile_for1D
cp -p GNUmakefile_for2D GNUmakefile
make
echo "run 2D unfolding"
root -b -q macro_2DUnfolding.C >& macro_2DUnfolding.log &
echo "run 2D unfolding ttpt"
root -b -q macro_2DUnfolding_ttpt.C >& macro_2DUnfolding_ttpt.log &
echo "run 2D unfolding ttrapidity2"
root -b -q macro_2DUnfolding_ttrapidity2.C >& macro_2DUnfolding_ttrapidity2.log &