Skip to content

Commit

Permalink
add signal tagger printout
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkreis committed Nov 26, 2018
1 parent fa2b7db commit a940742
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions testing/tf.C
Original file line number Diff line number Diff line change
Expand Up @@ -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<TH1F*> rvec_mc;
Expand Down Expand Up @@ -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;

////////////////
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a940742

Please sign in to comment.