From a9407426a1257a286e017a6726c4d3a90e0d3dd9 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Mon, 26 Nov 2018 16:51:55 -0600 Subject: [PATCH] add signal tagger printout --- testing/tf.C | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/testing/tf.C b/testing/tf.C index 42d6627..202f902 100644 --- a/testing/tf.C +++ b/testing/tf.C @@ -112,7 +112,7 @@ TH1F* make_h_r(TString process, TString from_name, TString to_name, TString SB){ void sb_data(TString from_name, TString to_name){ - TString SB = "SB"; //SB, SBL + TString SB = "SBL"; //SB, SBL TString full_name = "DataMC_"+from_name+"_to_"+to_name; std::vector rvec_mc; @@ -179,7 +179,7 @@ void sb_data(TString from_name, TString to_name){ void plot_tf(TString process, TString from_name, TString to_name){ - TString SB = "SB";//SB, SBL + TString SB = "SBL";//SB, SBL TString full_name = process+"_"+from_name+"_to_"+to_name; //////////////// @@ -210,7 +210,9 @@ void plot_tf(TString process, TString from_name, TString to_name){ cout << "Weighted average of "+SB+"s, 0 tag: " << a0 << " +/- " << da0 << endl; cout << "Weighted average of "+SB+"s, 1 tag: " << a1 << " +/- " << da1 << endl; cout << "Weighted average of "+SB+"s, 2 tag: " << a2 << " +/- " << da2 << endl; - + cout << "Signal tagger, 0 tag: " << h_r->GetBinContent(1) << " +/- " << h_r->GetBinError(1) << endl; + cout << "Signal tagger, 1 tag: " << h_r->GetBinContent(2) << " +/- " << h_r->GetBinError(2) << endl; + cout << "Signal tagger, 2 tag: " << h_r->GetBinContent(3) << " +/- " << h_r->GetBinError(3) << endl; /////////////// // Plot