-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathh_DeltaM_physics.C
141 lines (138 loc) · 5.63 KB
/
h_DeltaM_physics.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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
//=========Macro generated from canvas: c1/c1
//========= (Wed Feb 9 18:50:18 2011) by ROOT version4.03/04
TCanvas *c1 = new TCanvas("c1", "c1",130,195,700,500);
c1->Range(-0.05,-3.50312,0.45,31.5281);
c1->SetBorderSize(2);
c1->SetFrameFillColor(0);
TH1 *h_DeltaM_physics = new TH1D("h_DeltaM_physics","#delta m Data",80,0,0.4);
h_DeltaM_physics->SetBinContent(13,2);
h_DeltaM_physics->SetBinContent(14,1);
h_DeltaM_physics->SetBinContent(15,3);
h_DeltaM_physics->SetBinContent(16,2);
h_DeltaM_physics->SetBinContent(17,2);
h_DeltaM_physics->SetBinContent(18,2);
h_DeltaM_physics->SetBinContent(19,1);
h_DeltaM_physics->SetBinContent(20,2);
h_DeltaM_physics->SetBinContent(21,7);
h_DeltaM_physics->SetBinContent(22,2);
h_DeltaM_physics->SetBinContent(23,2);
h_DeltaM_physics->SetBinContent(24,1);
h_DeltaM_physics->SetBinContent(25,4);
h_DeltaM_physics->SetBinContent(26,4);
h_DeltaM_physics->SetBinContent(27,6);
h_DeltaM_physics->SetBinContent(28,6);
h_DeltaM_physics->SetBinContent(29,22);
h_DeltaM_physics->SetBinContent(30,20);
h_DeltaM_physics->SetBinContent(31,9);
h_DeltaM_physics->SetBinContent(32,3);
h_DeltaM_physics->SetBinContent(33,3);
h_DeltaM_physics->SetBinContent(34,8);
h_DeltaM_physics->SetBinContent(35,1);
h_DeltaM_physics->SetBinContent(36,3);
h_DeltaM_physics->SetBinContent(37,8);
h_DeltaM_physics->SetBinContent(38,5);
h_DeltaM_physics->SetBinContent(39,3);
h_DeltaM_physics->SetBinContent(40,10);
h_DeltaM_physics->SetBinContent(41,3);
h_DeltaM_physics->SetBinContent(42,5);
h_DeltaM_physics->SetBinContent(43,4);
h_DeltaM_physics->SetBinContent(44,7);
h_DeltaM_physics->SetBinContent(45,3);
h_DeltaM_physics->SetBinContent(46,5);
h_DeltaM_physics->SetBinContent(47,4);
h_DeltaM_physics->SetBinContent(48,4);
h_DeltaM_physics->SetBinContent(49,3);
h_DeltaM_physics->SetBinContent(50,1);
h_DeltaM_physics->SetBinContent(51,2);
h_DeltaM_physics->SetBinContent(52,1);
h_DeltaM_physics->SetBinContent(53,2);
h_DeltaM_physics->SetBinContent(54,2);
h_DeltaM_physics->SetBinContent(55,2);
h_DeltaM_physics->SetBinContent(57,1);
h_DeltaM_physics->SetBinContent(58,1);
h_DeltaM_physics->SetBinContent(59,2);
h_DeltaM_physics->SetBinContent(61,1);
h_DeltaM_physics->SetBinContent(65,2);
h_DeltaM_physics->SetBinContent(72,1);
h_DeltaM_physics->SetBinContent(74,1);
h_DeltaM_physics->SetBinError(13,1.41421);
h_DeltaM_physics->SetBinError(14,1);
h_DeltaM_physics->SetBinError(15,1.73205);
h_DeltaM_physics->SetBinError(16,1.41421);
h_DeltaM_physics->SetBinError(17,1.41421);
h_DeltaM_physics->SetBinError(18,1.41421);
h_DeltaM_physics->SetBinError(19,1);
h_DeltaM_physics->SetBinError(20,1.41421);
h_DeltaM_physics->SetBinError(21,2.64575);
h_DeltaM_physics->SetBinError(22,1.41421);
h_DeltaM_physics->SetBinError(23,1.41421);
h_DeltaM_physics->SetBinError(24,1);
h_DeltaM_physics->SetBinError(25,2);
h_DeltaM_physics->SetBinError(26,2);
h_DeltaM_physics->SetBinError(27,2.44949);
h_DeltaM_physics->SetBinError(28,2.44949);
h_DeltaM_physics->SetBinError(29,4.69042);
h_DeltaM_physics->SetBinError(30,4.47214);
h_DeltaM_physics->SetBinError(31,3);
h_DeltaM_physics->SetBinError(32,1.73205);
h_DeltaM_physics->SetBinError(33,1.73205);
h_DeltaM_physics->SetBinError(34,2.82843);
h_DeltaM_physics->SetBinError(35,1);
h_DeltaM_physics->SetBinError(36,1.73205);
h_DeltaM_physics->SetBinError(37,2.82843);
h_DeltaM_physics->SetBinError(38,2.23607);
h_DeltaM_physics->SetBinError(39,1.73205);
h_DeltaM_physics->SetBinError(40,3.16228);
h_DeltaM_physics->SetBinError(41,1.73205);
h_DeltaM_physics->SetBinError(42,2.23607);
h_DeltaM_physics->SetBinError(43,2);
h_DeltaM_physics->SetBinError(44,2.64575);
h_DeltaM_physics->SetBinError(45,1.73205);
h_DeltaM_physics->SetBinError(46,2.23607);
h_DeltaM_physics->SetBinError(47,2);
h_DeltaM_physics->SetBinError(48,2);
h_DeltaM_physics->SetBinError(49,1.73205);
h_DeltaM_physics->SetBinError(50,1);
h_DeltaM_physics->SetBinError(51,1.41421);
h_DeltaM_physics->SetBinError(52,1);
h_DeltaM_physics->SetBinError(53,1.41421);
h_DeltaM_physics->SetBinError(54,1.41421);
h_DeltaM_physics->SetBinError(55,1.41421);
h_DeltaM_physics->SetBinError(57,1);
h_DeltaM_physics->SetBinError(58,1);
h_DeltaM_physics->SetBinError(59,1.41421);
h_DeltaM_physics->SetBinError(61,1);
h_DeltaM_physics->SetBinError(65,1.41421);
h_DeltaM_physics->SetBinError(72,1);
h_DeltaM_physics->SetBinError(74,1);
h_DeltaM_physics->SetEntries(199);
TPaveStats *ptstats = new TPaveStats(0.78,0.835,0.98,0.995,"brNDC");
ptstats->SetName("stats");
ptstats->SetBorderSize(2);
ptstats->SetFillColor(19);
ptstats->SetTextAlign(12);
TText *text = ptstats->AddText("h_DeltaM_physics");
text->SetTextSize(0.0368);
text = ptstats->AddText("Entries = 199 ");
text = ptstats->AddText("Mean = 0.1728");
text = ptstats->AddText("RMS = 0.05649");
ptstats->SetOptStat(1111);
ptstats->SetOptFit(0);
ptstats->Draw();
h_DeltaM_physics->GetListOfFunctions()->Add(ptstats);
ptstats->SetParent(h_DeltaM_physics->GetListOfFunctions());
h_DeltaM_physics->SetLineColor(6);
h_DeltaM_physics->GetXaxis()->SetTitle(" #deltam (GeV)");
h_DeltaM_physics->GetYaxis()->SetTitle(" Number of Events");
h_DeltaM_physics->Draw("");
TPaveText *pt = new TPaveText(0.01,0.945,0.15931,0.995,"blNDC");
pt->SetName("title");
pt->SetBorderSize(2);
pt->SetFillColor(19);
text = pt->AddText("#delta m Data");
pt->Draw();
c1->Modified();
c1->cd();
c1->SetSelected(c1);
}