1 | {
|
---|
2 | //=========Macro generated from canvas: c1/c1
|
---|
3 | //========= (Thu Jan 1 22:38:12 2009) by ROOT version5.18/00
|
---|
4 | TCanvas *c1 = new TCanvas("c1", "c1",14,37,700,310);
|
---|
5 | gStyle->SetOptStat(0);
|
---|
6 | c1->Range(-0.3716337,-5.413333,3.37702,47.22667);
|
---|
7 | c1->SetFillColor(0);
|
---|
8 | c1->SetBorderMode(0);
|
---|
9 | c1->SetBorderSize(2);
|
---|
10 | c1->SetFrameBorderMode(0);
|
---|
11 | c1->SetFrameBorderMode(0);
|
---|
12 |
|
---|
13 | TH1 *tau = new TH1F("tau","b tagging of jets",3,0,3);
|
---|
14 | tau->SetBinContent(1,40);
|
---|
15 | tau->SetBinContent(2,10);
|
---|
16 | tau->SetBinContent(3,1);
|
---|
17 | tau->SetEntries(3);
|
---|
18 | tau->SetLineWidth(3);
|
---|
19 | tau->GetXaxis()->SetBinLabel(1,"b-jets");
|
---|
20 | tau->GetXaxis()->SetBinLabel(2,"c-jets");
|
---|
21 | tau->GetXaxis()->SetBinLabel(3,"light jets");
|
---|
22 | tau->GetXaxis()->SetLabelSize(0.1);
|
---|
23 | tau->GetYaxis()->SetTitle("(mis)tagging efficiency (%)");
|
---|
24 | tau->GetYaxis()->SetLabelSize(0.06);
|
---|
25 | tau->GetYaxis()->SetTitleSize(0.06);
|
---|
26 | tau->GetYaxis()->SetTitleOffset(0.6);
|
---|
27 | tau->Draw("");
|
---|
28 |
|
---|
29 | TPaveText *pt = new TPaveText(0.01005747,0.9255319,0.8965517,0.9822695,"blNDC");
|
---|
30 | pt->SetName("title");
|
---|
31 | pt->SetBorderSize(1);
|
---|
32 | pt->SetLineColor(0);
|
---|
33 | pt->SetTextSize(0.08510639);
|
---|
34 | TText *text = pt->AddText("b tagging of jets");
|
---|
35 | pt->Draw();
|
---|
36 | c1->Modified();
|
---|
37 | c1->cd();
|
---|
38 | c1->SetSelected(c1);
|
---|
39 | }
|
---|