Skip to content

Commit 3639cfc

Browse files
committed
Merge pull request #627 from ajgilbert/ch-may-15
CombineHarvester May updates
2 parents 0b1894d + 87df71d commit 3639cfc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+2665
-639
lines changed

CombineHarvester/CombinePdfs/test/MorphingMSSM.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,7 @@ int main() {
268268
}
269269

270270
cout << "Setting standardised bin names...";
271-
cb.ForEachObs(ch::SetStandardBinName<ch::Observation>);
272-
cb.ForEachProc(ch::SetStandardBinName<ch::Process>);
273-
cb.ForEachSyst(ch::SetStandardBinName<ch::Systematic>);
271+
ch::SetStandardBinNames(cb);
274272
cout << " done\n";
275273

276274
RooWorkspace ws("htt", "htt");
@@ -300,8 +298,8 @@ int main() {
300298
}
301299
}
302300
demo.Close();
303-
cb.AddWorkspace(&ws);
304-
cb.cp().signals().ExtractPdfs("htt", "$BIN_$PROCESS_morph", &cb);
301+
cb.AddWorkspace(ws);
302+
cb.cp().signals().ExtractPdfs(cb, "htt", "$BIN_$PROCESS_morph");
305303
cb.PrintAll();
306304

307305
// cout << "Adding bbb...\n";

CombineHarvester/CombinePdfs/test/ParametricMSSM.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ int main() {
101101
cb.era({"8TeV"});
102102

103103
std::cout << "Setting standardised bin names...";
104-
cb.ForEachObs(ch::SetStandardBinName<ch::Observation>);
105-
cb.ForEachProc(ch::SetStandardBinName<ch::Process>);
106-
cb.ForEachSyst(ch::SetStandardBinName<ch::Systematic>);
104+
ch::SetStandardBinNames(cb);
107105
std::cout << " done\n";
108106

109107
// cb.era({"8TeV"}).bin_id({8});
@@ -219,8 +217,8 @@ int main() {
219217
}
220218
cb_hm.process({"ggH", "bbH", "bkg"});
221219

222-
cb_hm.AddWorkspace(&ws);
223-
cb_hm.cp().backgrounds().ExtractPdfs("htt", "$CHANNEL_bkgpdf");
220+
cb_hm.AddWorkspace(ws);
221+
cb_hm.cp().backgrounds().ExtractPdfs(cb_hm, "htt", "$CHANNEL_bkgpdf");
224222
// cb_hm.PrintAll();
225223
} else {
226224
cb_hm.cp().bin_id({8}).VariableRebin(

CombineHarvester/CombinePdfs/test/Test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,8 @@ int main() {
297297
}
298298
}
299299
}
300-
cb.AddWorkspace(&ws);
301-
cb.cp().signals().ExtractPdfs("htt", "$BIN_$PROCESS_morph", &cb);
300+
cb.AddWorkspace(ws);
301+
cb.cp().signals().ExtractPdfs(cb, "htt", "$BIN_$PROCESS_morph");
302302

303303
string folder = "output/sm_cards_morphed";
304304
boost::filesystem::create_directories(folder);

CombineHarvester/CombineTools/Rules.mk

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
SUBDIRS :=
22
LIB_DEPS :=
3-
LIB_EXTRA := -lboost_python -L$(shell scramv1 tool tag python LIBDIR) -l$(shell scramv1 tool tag python LIB) -lPyROOT
3+
LIB_EXTRA := -lRooStats -lboost_python -L$(shell scramv1 tool tag python LIBDIR) -l$(shell scramv1 tool tag python LIB) -lPyROOT
4+
PY_MODULES := combineharvester
5+
PY_SRC_combineharvester := CombineHarvester_Python.pycc
46

57
$(d)/interface/GitVersion.h: $(TOP)/../.git/logs/HEAD
68
@echo -e "Updating $@"
@@ -14,4 +16,3 @@ clean_$(d) : clean_$(d)/interface/GitVersion.h
1416
dir_$(d) : | $(d)/interface/GitVersion.h
1517
tree_$(d) : | $(d)/interface/GitVersion.h
1618
all_proxy :: | $(d)/interface/GitVersion.h
17-

CombineHarvester/CombineTools/input/xsecs_brs/WH_7TeV_YR3.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
mH xsec scale_hi scale_lo pdf_hi pdf_lo
12
80.0 2.341 +1.0 -1.0 +2.3 -2.3
23
81.0 2.258 +0.9 -0.9 +2.3 -2.3
34
82.0 2.179 +0.9 -0.9 +2.3 -2.3
@@ -282,4 +283,4 @@
282283
370.0 0.008106 +1.8 -1.8 +5.0 -5.0
283284
380.0 0.007225 +1.8 -1.8 +5.1 -5.1
284285
390.0 0.006457 +1.8 -1.8 +5.2 -5.2
285-
400.0 0.005783 +1.8 -1.8 +5.1 -5.1
286+
400.0 0.005783 +1.8 -1.8 +5.1 -5.1

CombineHarvester/CombineTools/input/xsecs_brs/WH_8TeV_YR3.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
mH xsec scale_hi scale_lo pdf_hi pdf_lo
12
80.0 2.808 +1.1 -1.1 +2.2 -2.2
23
81.0 2.711 +1.1 -1.1 +2.2 -2.2
34
82.0 2.619 +1.0 -1.0 +2.2 -2.2
@@ -282,4 +283,4 @@
282283
370.0 0.01076 +1.7 -1.7 +4.5 -4.5
283284
380.0 0.009627 +1.7 -1.7 +4.6 -4.6
284285
390.0 0.008629 +1.7 -1.7 +4.6 -4.6
285-
400.0 0.007765 +1.7 -1.7 +4.6 -4.6
286+
400.0 0.007765 +1.7 -1.7 +4.6 -4.6

CombineHarvester/CombineTools/input/xsecs_brs/ZH_7TeV_YR3.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
mH xsec scale_hi scale_lo pdf_hi pdf_lo
12
80.0 1.244 +1.8 -1.8 +2.3 -2.3
23
81.0 1.203 +1.8 -1.8 +2.3 -2.3
34
82.0 1.163 +1.8 -1.8 +2.4 -2.4
@@ -282,4 +283,4 @@
282283
370.0 0.004734 +2.7 -2.7 +5.4 -5.4
283284
380.0 0.004212 +2.8 -2.8 +5.5 -5.5
284285
390.0 0.003757 +2.8 -2.8 +5.6 -5.6
285-
400.0 0.003357 +2.8 -2.8 +5.5 -5.5
286+
400.0 0.003357 +2.8 -2.8 +5.5 -5.5

CombineHarvester/CombineTools/input/xsecs_brs/ZH_8TeV_YR3.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
mH xsec scale_hi scale_lo pdf_hi pdf_lo
12
80.0 1.508 +1.9 -1.9 +2.1 -2.1
23
81.0 1.459 +1.9 -1.9 +2.1 -2.1
34
82.0 1.411 +2.0 -2.0 +2.1 -2.1
@@ -282,4 +283,4 @@
282283
370.0 0.006364 +2.7 -2.7 +4.9 -4.9
283284
380.0 0.005684 +2.8 -2.8 +5.0 -5.0
284285
390.0 0.005090 +2.8 -2.8 +5.0 -5.0
285-
400.0 0.004568 +2.8 -2.8 +5.0 -5.0
286+
400.0 0.004568 +2.8 -2.8 +5.0 -5.0

CombineHarvester/CombineTools/input/xsecs_brs/ggH_7TeV_YR3.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
mH xsec scale_hi scale_lo pdf_hi pdf_lo
12
80.0 36.59 +8.3 -8.8 +7.8 -6.7
23
81.0 35.71 +8.3 -8.8 +7.8 -6.7
34
82.0 34.86 +8.3 -8.8 +7.8 -6.7
@@ -318,4 +319,4 @@
318319
950.0 0.0257 +6.8 -5.7 +13.5 -12.7
319320
960.0 0.0242 +6.8 -5.7 +13.7 -12.9
320321
980.0 0.0216 +6.9 -5.7 +14.0 -13.2
321-
1000.0 0.0192 +7.0 -5.7 +14.2 -13.5
322+
1000.0 0.0192 +7.0 -5.7 +14.2 -13.5

CombineHarvester/CombineTools/input/xsecs_brs/ggH_8TeV_YR3.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
mH xsec scale_hi scale_lo pdf_hi pdf_lo
12
80.0 45.37 +8.8 -9.2 +7.9 -6.7
23
81.0 44.31 +8.8 -9.1 +7.9 -6.7
34
82.0 43.28 +8.7 -9.1 +7.9 -6.6
@@ -318,4 +319,4 @@
318319
950.0 0.0424 +6.4 -5.4 +11.5 -10.7
319320
960.0 0.0400 +6.4 -5.4 +11.6 -10.8
320321
980.0 0.0357 +6.5 -5.4 +11.8 -11.0
321-
1000.0 0.0320 +6.9 -5.4 +12.0 -11.2
322+
1000.0 0.0320 +6.9 -5.4 +12.0 -11.2

0 commit comments

Comments
 (0)