-
Notifications
You must be signed in to change notification settings - Fork 0
/
CompareBtagEff.C
48 lines (38 loc) · 1.59 KB
/
CompareBtagEff.C
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
#include "CMSStyle.C"
#include "params_arg.h"
using namespace params;
using namespace std;
//Copy this into root
TFile * f = new TFile("LimitPackage_mst_210_mu_150_2JbMLm20gbar2_MET.root");
f->cd();
TCanvas *c = new TCanvas("asfd","asdf",800,800);
c->SetTopMargin(0.06);
c->SetBottomMargin(0.15);
PrettyHist(hMET2JbMLm20gbar2_MC);
hMET2JbMLm20gbar2_MC->Draw();
PrettyMarker(hMET2JbMLm20gbar2_MC);
hMET2JbMLm20gbar2_MC->Draw();
hMET2JbMLm20gbar2_MC->GetXaxis()->SetTitle("MET (GeV)");
hMET2JbMLm20gbar2_MC->Draw();
TLegend * l = new TLegend(0.405779,0.68956 ,0.605528,0.888736);
PrettyLegend(l);
l->AddEntry(hMET2JbMLm20gbar2_MC,"Unshifted");
PrettyHist(hMET2JbMLm20gbar2_BtagEffUp,kRed);
hMET2JbMLm20gbar2_BtagEffUp->Draw("same");
l->AddEntry(hMET2JbMLm20gbar2_BtagEffUp,"Btag Efficiency Up 1#sigma");
PrettyHist(hMET2JbMLm20gbar2_BtagEffDown,kBlue);
l->AddEntry(hMET2JbMLm20gbar2_BtagEffDown,"Btag Efficiency Down 1#sigma");
hMET2JbMLm20gbar2_BtagEffDown->Draw("same");
hMET2JbMLm20gbar2_MC->Draw("same");
l->Draw("same");
c->SaveAs("BtagEffcomp_mst_210_mu_150.pdf");
c->SaveAs("BtagEffcomp_mst_210_mu_150.jpg");
/* TLatex * TEX_CMSPrelim = new TLatex(1.177136,0.953368,"CMS Preliminary");
PrettyLatex(TEX_CMSPrelim,0.03);
TEX_CMSPrelim->Draw("same");
TLatex * TEX_E_TeV = new TLatex(0.800251,0.953368,"#sqrt{s} = 8 TeV");
PrettyLatex(TEX_E_TeV,0.03);
TEX_E_TeV->Draw("same");
TLatex * TEX_lumi_fb = new TLatex(0.621859,0.953368,Form("#intL dt = %.1f fb^{-1}",Integrated_Luminosity_Data));
PrettyLatex(TEX_lumi_fb,0.03);
TEX_lumi_fb->Draw("same");*/