-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPlotter.C
More file actions
96 lines (72 loc) · 2.33 KB
/
Copy pathPlotter.C
File metadata and controls
96 lines (72 loc) · 2.33 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
void Plotter(){
TFile *_file0 = TFile::Open("Draw.root");
TH1F *hm = (TH1F *)_file0->Get("omegabar_rho_minus");
TH1F *hp = (TH1F *)_file0->Get("omegabar_rho_plus");
TString Title("#tau #rightarrow #rho #nu");
TString LabelMinus("#tau_{L}");
TString LabelPlus("#tau_{R}");
hm->SetStats(0);
hp->SetStats(0);
hm->SetTitle(0);
hp->SetTitle(0);
Int_t ci; // for color index setting
TColor *color; // for color definition with alpha
ci = TColor::GetColor("#333333");
hm->SetLineColor(ci);
hm->SetLineWidth(2);
hm->GetXaxis()->SetLabelFont(42);
hm->GetXaxis()->SetLabelSize(0.035);
hm->GetXaxis()->SetTitleSize(0.035);
hm->GetXaxis()->SetTitleFont(42);
hm->GetYaxis()->SetLabelFont(42);
hm->GetYaxis()->SetTitleSize(0.035);
hm->GetYaxis()->SetTitleFont(42);
hm->GetZaxis()->SetLabelFont(42);
hm->GetZaxis()->SetLabelSize(0.035);
hm->GetZaxis()->SetTitleSize(0.035);
hm->GetZaxis()->SetTitleFont(42);
ci = TColor::GetColor("#6666ff");
hp->SetLineColor(ci);
hp->SetLineWidth(2);
hp->GetXaxis()->SetLabelFont(42);
hp->GetXaxis()->SetLabelSize(0.035);
hp->GetXaxis()->SetTitleSize(0.035);
hp->GetXaxis()->SetTitleFont(42);
hp->GetYaxis()->SetLabelFont(42);
hp->GetYaxis()->SetLabelSize(0.035);
hp->GetYaxis()->SetTitleSize(0.035);
hp->GetYaxis()->SetTitleFont(42);
hp->GetZaxis()->SetLabelFont(42);
hp->GetZaxis()->SetLabelSize(0.035);
hp->GetZaxis()->SetTitleSize(0.035);
hp->GetZaxis()->SetTitleFont(42);
hm->DrawNormalized();
hp->DrawNormalized("same");
pt = new TPaveText(-0.9494986,0.02809341,-0.6224928,0.03286091,"br");
pt->SetBorderSize(0);
pt->SetFillColor(0);
pt->SetFillStyle(0);
ci = TColor::GetColor("#333333");
pt->SetTextColor(ci);
pt->SetTextFont(42);
AText = pt->AddText(LabelMinus);
pt->Draw();
pt = new TPaveText(0.6540115,0.02815155,0.9810172,0.03291905,"br");
pt->SetBorderSize(0);
pt->SetFillColor(0);
pt->SetFillStyle(0);
ci = TColor::GetColor("#6666ff");
pt->SetTextColor(ci);
pt->SetTextFont(42);
AText = pt->AddText(LabelPlus);
pt->Draw();
pt = new TPaveText(-0.2679083,0.04355873,0.2679083,0.04832624,"br");
pt->SetBorderSize(0);
pt->SetFillColor(0);
pt->SetFillStyle(0);
ci = TColor::GetColor("#660066");
pt->SetTextColor(ci);
pt->SetTextFont(42);
AText = pt->AddText(Title);
pt->Draw();
}