forked from latinos/DatacardsConfigurations
-
Notifications
You must be signed in to change notification settings - Fork 1
/
prepare.sh
69 lines (37 loc) · 2.36 KB
/
prepare.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
mkdir nominals
eos cp /eos/cms/store/user/maiko/ww/ntuples/systematics2013/nominals/*.root nominals/
mkdir data
eos cp /eos/cms/store/user/maiko/ww/ntuples/systematics2013/data/*.root data/
mkdir wjets
eos cp /eos/cms/store/user/maiko/ww/ntuples/systematics2013/wjets/*.root wjets/
mkdir vgTemplate
eos cp /eos/cms/store/user/maiko/ww/ntuples/systematics2013/vgTemplate/*.root vgTemplate/
mkdir templates
cd templates
ln -s ../vgTemplate/*root .
ln -s ../nominals/*root .
cd ..
# filter otherwise it will never end!
gardener.py filter -f "njet>=2 && pfmet>20 && mpmet>20" -r tree_skim_all/nominals/ tree_skim_2j_met20/nominals/
gardener.py filter -f "njet>=2 && pfmet>20 && mpmet>20" -r tree_skim_all/data/ tree_skim_2j_met20/data/
gardener.py filter -f "njet>=2 && pfmet>20 && mpmet>20" -r tree_skim_all/wjets/ tree_skim_2j_met20/wjets/
mkdir jetEnergyScale_down
mkdir jetEnergyScale_up
mkdir electronScale_down
mkdir electronScale_up
mkdir muonScale_down
mkdir muonScale_up
mkdir metResolution
mkdir electronResolution
cd /home/amassiro/Latinos/CMSSW_5_3_11_patch6/src/HWWAnalysis/ShapeAnalysis/
eval `scramv1 runtime -sh`
source test/env.sh
cd -
ls --color=none nominals/ | grep .root | awk '{print "scaleAndSmearTree.py -i nominals/"$1" -o jetEnergyScale_up/"$1" -a jetEnergyScale -v up"}' | /bin/sh
ls --color=none nominals/ | grep .root | awk '{print "scaleAndSmearTree.py -i nominals/"$1" -o jetEnergyScale_down/"$1" -a jetEnergyScale -v down"}'| /bin/sh
ls --color=none nominals/ | grep .root | awk '{print "scaleAndSmearTree.py -i nominals/"$1" -o electronScale_up/"$1" -a electronScale -v up"}'| /bin/sh
ls --color=none nominals/ | grep .root | awk '{print "scaleAndSmearTree.py -i nominals/"$1" -o electronScale_down/"$1" -a electronScale -v down"}'| /bin/sh
ls --color=none nominals/ | grep .root | awk '{print "scaleAndSmearTree.py -i nominals/"$1" -o muonScale_up/"$1" -a muonScale -v up"}'| /bin/sh
ls --color=none nominals/ | grep .root | awk '{print "scaleAndSmearTree.py -i nominals/"$1" -o muonScale_down/"$1" -a muonScale -v down"}'| /bin/sh
ls --color=none nominals/ | grep .root | awk '{print "scaleAndSmearTree.py -i nominals/"$1" -o metResolution/"$1" -a metResolution"}'| /bin/sh
ls --color=none nominals/ | grep .root | awk '{print "scaleAndSmearTree.py -i nominals/"$1" -o electronResolution/"$1" -a electronResolution"}'| /bin/sh