Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
D0_BUP2020AuAu_0_80_significance_3yr.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file D0_BUP2020AuAu_0_80_significance_3yr.C
2 {
3 //=========Macro generated from canvas: D0_BUP2020AuAu_0_80_significance_3yr/D0_BUP2020AuAu_0_80_significance_3yr
4 //========= (Wed May 12 23:46:21 2021) by ROOT version 6.22/02
5  TCanvas *D0_BUP2020AuAu_0_80_significance_3yr = new TCanvas("D0_BUP2020AuAu_0_80_significance_3yr", "D0_BUP2020AuAu_0_80_significance_3yr",0,0,1100,800);
6  gStyle->SetOptFit(1);
7  gStyle->SetOptStat(0);
8  gStyle->SetOptTitle(0);
9  D0_BUP2020AuAu_0_80_significance_3yr->SetHighLightColor(2);
10  D0_BUP2020AuAu_0_80_significance_3yr->Range(0,0,1,1);
11  D0_BUP2020AuAu_0_80_significance_3yr->SetFillColor(0);
12  D0_BUP2020AuAu_0_80_significance_3yr->SetBorderMode(0);
13  D0_BUP2020AuAu_0_80_significance_3yr->SetBorderSize(2);
14  D0_BUP2020AuAu_0_80_significance_3yr->SetTickx(1);
15  D0_BUP2020AuAu_0_80_significance_3yr->SetTicky(1);
16  D0_BUP2020AuAu_0_80_significance_3yr->SetLeftMargin(0.16);
17  D0_BUP2020AuAu_0_80_significance_3yr->SetRightMargin(0.05);
18  D0_BUP2020AuAu_0_80_significance_3yr->SetTopMargin(0.05);
19  D0_BUP2020AuAu_0_80_significance_3yr->SetBottomMargin(0.16);
20  D0_BUP2020AuAu_0_80_significance_3yr->SetFrameBorderMode(0);
21 
22 // ------------>Primitives in pad: D0_BUP2020AuAu_0_80_significance_3yr_1
23  TPad *D0_BUP2020AuAu_0_80_significance_3yr_1 = new TPad("D0_BUP2020AuAu_0_80_significance_3yr_1", "D0_BUP2020AuAu_0_80_significance_3yr_1",0.01,0.01,0.49,0.99);
24  D0_BUP2020AuAu_0_80_significance_3yr_1->Draw();
25  D0_BUP2020AuAu_0_80_significance_3yr_1->cd();
26  D0_BUP2020AuAu_0_80_significance_3yr_1->Range(-2.43038,-532.5177,12.75949,2795.718);
27  D0_BUP2020AuAu_0_80_significance_3yr_1->SetFillColor(0);
28  D0_BUP2020AuAu_0_80_significance_3yr_1->SetBorderMode(0);
29  D0_BUP2020AuAu_0_80_significance_3yr_1->SetBorderSize(2);
30  D0_BUP2020AuAu_0_80_significance_3yr_1->SetTickx(1);
31  D0_BUP2020AuAu_0_80_significance_3yr_1->SetTicky(1);
32  D0_BUP2020AuAu_0_80_significance_3yr_1->SetLeftMargin(0.16);
33  D0_BUP2020AuAu_0_80_significance_3yr_1->SetRightMargin(0.05);
34  D0_BUP2020AuAu_0_80_significance_3yr_1->SetTopMargin(0.05);
35  D0_BUP2020AuAu_0_80_significance_3yr_1->SetBottomMargin(0.16);
36  D0_BUP2020AuAu_0_80_significance_3yr_1->SetFrameBorderMode(0);
37  D0_BUP2020AuAu_0_80_significance_3yr_1->SetFrameBorderMode(0);
38 
39  TH1F *hframe__11 = new TH1F("hframe__11","",1000,0,12);
40  hframe__11->SetMinimum(0);
41  hframe__11->SetMaximum(2629.306);
42  hframe__11->SetDirectory(0);
43  hframe__11->SetStats(0);
44  hframe__11->SetLineWidth(2);
45  hframe__11->SetMarkerStyle(20);
46  hframe__11->SetMarkerSize(1.2);
47  hframe__11->GetXaxis()->SetTitle("p_{T} [GeV]");
48  hframe__11->GetXaxis()->SetLabelFont(42);
49  hframe__11->GetXaxis()->SetLabelSize(0.05);
50  hframe__11->GetXaxis()->SetTitleSize(0.05);
51  hframe__11->GetXaxis()->SetTitleOffset(1.4);
52  hframe__11->GetXaxis()->SetTitleFont(42);
53  hframe__11->GetYaxis()->SetTitle("Significance");
54  hframe__11->GetYaxis()->SetLabelFont(42);
55  hframe__11->GetYaxis()->SetLabelSize(0.05);
56  hframe__11->GetYaxis()->SetTitleSize(0.05);
57  hframe__11->GetYaxis()->SetTitleOffset(1.4);
58  hframe__11->GetYaxis()->SetTitleFont(42);
59  hframe__11->GetZaxis()->SetLabelFont(42);
60  hframe__11->GetZaxis()->SetLabelSize(0.05);
61  hframe__11->GetZaxis()->SetTitleSize(0.05);
62  hframe__11->GetZaxis()->SetTitleOffset(1);
63  hframe__11->GetZaxis()->SetTitleFont(42);
64  hframe__11->Draw(" ");
65 
66  Double_t Graph0_fx17[20] = {
67  0.25,
68  0.75,
69  1.25,
70  1.75,
71  2.25,
72  2.75,
73  3.25,
74  3.75,
75  4.25,
76  4.75,
77  5.25,
78  5.75,
79  6.25,
80  6.75,
81  7.25,
82  7.75,
83  8.25,
84  8.75,
85  9.25,
86  9.75};
87  Double_t Graph0_fy17[20] = {
88  735.8376,
89  1157.68,
90  1779.061,
91  2177.719,
92  2191.089,
93  1952.555,
94  1437.194,
95  1113.006,
96  847.1249,
97  651.6253,
98  509.2994,
99  390.4004,
100  298.3194,
101  228.1737,
102  177.2215,
103  135.9347,
104  104.7474,
105  81.70937,
106  63.73266,
107  50.48219};
108  TGraph *graph = new TGraph(20,Graph0_fx17,Graph0_fy17);
109  graph->SetName("Graph0");
110  graph->SetTitle("Significance for N_Collision = 1.4128e+11 centrality_ncoll = 1.9080e+02, based on 0-80%, w/o TOF, 192B");
111  graph->SetLineWidth(2);
112  graph->SetMarkerStyle(20);
113  graph->SetMarkerSize(1.2);
114 
115  TH1F *Graph_Graph017 = new TH1F("Graph_Graph017","Significance for N_Collision = 1.4128e+11 centrality_ncoll = 1.9080e+02, based on 0-80%, w/o TOF, 192B",100,0,10.7);
116  Graph_Graph017->SetMinimum(59.2166);
117  Graph_Graph017->SetMaximum(2629.306);
118  Graph_Graph017->SetDirectory(0);
119  Graph_Graph017->SetLineWidth(2);
120  Graph_Graph017->SetMarkerStyle(20);
121  Graph_Graph017->SetMarkerSize(1.2);
122  Graph_Graph017->GetXaxis()->SetTitle(" p_{T} [GeV/c]");
123  Graph_Graph017->GetXaxis()->SetRange(1,94);
124  Graph_Graph017->GetXaxis()->SetLabelFont(42);
125  Graph_Graph017->GetXaxis()->SetLabelSize(0.05);
126  Graph_Graph017->GetXaxis()->SetTitleSize(0.05);
127  Graph_Graph017->GetXaxis()->SetTitleOffset(1.4);
128  Graph_Graph017->GetXaxis()->SetTitleFont(42);
129  Graph_Graph017->GetYaxis()->SetTitle(" S / #sqrt{S + B}");
130  Graph_Graph017->GetYaxis()->SetLabelFont(42);
131  Graph_Graph017->GetYaxis()->SetLabelSize(0.05);
132  Graph_Graph017->GetYaxis()->SetTitleSize(0.05);
133  Graph_Graph017->GetYaxis()->SetTitleOffset(1.4);
134  Graph_Graph017->GetYaxis()->SetTitleFont(42);
135  Graph_Graph017->GetZaxis()->SetLabelFont(42);
136  Graph_Graph017->GetZaxis()->SetLabelSize(0.05);
137  Graph_Graph017->GetZaxis()->SetTitleSize(0.05);
138  Graph_Graph017->GetZaxis()->SetTitleOffset(1);
139  Graph_Graph017->GetZaxis()->SetTitleFont(42);
140  graph->SetHistogram(Graph_Graph017);
141 
142  graph->Draw("p");
143  D0_BUP2020AuAu_0_80_significance_3yr_1->Modified();
144  D0_BUP2020AuAu_0_80_significance_3yr->cd();
145 
146 // ------------>Primitives in pad: D0_BUP2020AuAu_0_80_significance_3yr_2
147  TPad *D0_BUP2020AuAu_0_80_significance_3yr_2 = new TPad("D0_BUP2020AuAu_0_80_significance_3yr_2", "D0_BUP2020AuAu_0_80_significance_3yr_2",0.51,0.01,0.99,0.99);
148  D0_BUP2020AuAu_0_80_significance_3yr_2->Draw();
149  D0_BUP2020AuAu_0_80_significance_3yr_2->cd();
150  D0_BUP2020AuAu_0_80_significance_3yr_2->Range(-2.43038,-23.39246,12.75949,122.8104);
151  D0_BUP2020AuAu_0_80_significance_3yr_2->SetFillColor(0);
152  D0_BUP2020AuAu_0_80_significance_3yr_2->SetBorderMode(0);
153  D0_BUP2020AuAu_0_80_significance_3yr_2->SetBorderSize(2);
154  D0_BUP2020AuAu_0_80_significance_3yr_2->SetTickx(1);
155  D0_BUP2020AuAu_0_80_significance_3yr_2->SetTicky(1);
156  D0_BUP2020AuAu_0_80_significance_3yr_2->SetLeftMargin(0.16);
157  D0_BUP2020AuAu_0_80_significance_3yr_2->SetRightMargin(0.05);
158  D0_BUP2020AuAu_0_80_significance_3yr_2->SetTopMargin(0.05);
159  D0_BUP2020AuAu_0_80_significance_3yr_2->SetBottomMargin(0.16);
160  D0_BUP2020AuAu_0_80_significance_3yr_2->SetFrameBorderMode(0);
161  D0_BUP2020AuAu_0_80_significance_3yr_2->SetFrameBorderMode(0);
162 
163  TH1F *hframe__12 = new TH1F("hframe__12","",1000,0,12);
164  hframe__12->SetMinimum(0);
165  hframe__12->SetMaximum(115.5003);
166  hframe__12->SetDirectory(0);
167  hframe__12->SetStats(0);
168  hframe__12->SetLineWidth(2);
169  hframe__12->SetMarkerStyle(20);
170  hframe__12->SetMarkerSize(1.2);
171  hframe__12->GetXaxis()->SetTitle("p_{T} [GeV]");
172  hframe__12->GetXaxis()->SetLabelFont(42);
173  hframe__12->GetXaxis()->SetLabelSize(0.05);
174  hframe__12->GetXaxis()->SetTitleSize(0.05);
175  hframe__12->GetXaxis()->SetTitleOffset(1.4);
176  hframe__12->GetXaxis()->SetTitleFont(42);
177  hframe__12->GetYaxis()->SetTitle("Significance");
178  hframe__12->GetYaxis()->SetLabelFont(42);
179  hframe__12->GetYaxis()->SetLabelSize(0.05);
180  hframe__12->GetYaxis()->SetTitleSize(0.05);
181  hframe__12->GetYaxis()->SetTitleOffset(1.4);
182  hframe__12->GetYaxis()->SetTitleFont(42);
183  hframe__12->GetZaxis()->SetLabelFont(42);
184  hframe__12->GetZaxis()->SetLabelSize(0.05);
185  hframe__12->GetZaxis()->SetTitleSize(0.05);
186  hframe__12->GetZaxis()->SetTitleOffset(1);
187  hframe__12->GetZaxis()->SetTitleFont(42);
188  hframe__12->Draw(" ");
189 
190  Double_t Graph0_fx18[10] = {
191  0.5,
192  1.5,
193  2.5,
194  3.5,
195  4.5,
196  5.5,
197  6.5,
198  7.5,
199  8.5,
200  9.5};
201  Double_t Graph0_fy18[10] = {
202  11.45189,
203  22.70898,
204  53.76041,
205  88.55232,
206  96.25025,
207  82.11165,
208  66.0051,
209  45.70327,
210  35.28046,
211  25.70073};
212  graph = new TGraph(10,Graph0_fx18,Graph0_fy18);
213  graph->SetName("Graph0");
214  graph->SetTitle("Significance for N_Collision = 1.4128e+11 centrality_ncoll = 1.9080e+02, based on 0-80%, w/o TOF, 192B");
215  graph->SetLineWidth(2);
216  graph->SetMarkerStyle(20);
217  graph->SetMarkerSize(1.2);
218 
219  TH1F *Graph_Graph018 = new TH1F("Graph_Graph018","Significance for N_Collision = 1.4128e+11 centrality_ncoll = 1.9080e+02, based on 0-80%, w/o TOF, 192B",100,0,10.4);
220  Graph_Graph018->SetMinimum(3.873636);
221  Graph_Graph018->SetMaximum(115.5003);
222  Graph_Graph018->SetDirectory(0);
223  Graph_Graph018->SetLineWidth(2);
224  Graph_Graph018->SetMarkerStyle(20);
225  Graph_Graph018->SetMarkerSize(1.2);
226  Graph_Graph018->GetXaxis()->SetTitle(" p_{T} [GeV/c]");
227  Graph_Graph018->GetXaxis()->SetRange(1,97);
228  Graph_Graph018->GetXaxis()->SetLabelFont(42);
229  Graph_Graph018->GetXaxis()->SetLabelSize(0.05);
230  Graph_Graph018->GetXaxis()->SetTitleSize(0.05);
231  Graph_Graph018->GetXaxis()->SetTitleOffset(1.4);
232  Graph_Graph018->GetXaxis()->SetTitleFont(42);
233  Graph_Graph018->GetYaxis()->SetTitle(" S / #sqrt{S + B}");
234  Graph_Graph018->GetYaxis()->SetLabelFont(42);
235  Graph_Graph018->GetYaxis()->SetLabelSize(0.05);
236  Graph_Graph018->GetYaxis()->SetTitleSize(0.05);
237  Graph_Graph018->GetYaxis()->SetTitleOffset(1.4);
238  Graph_Graph018->GetYaxis()->SetTitleFont(42);
239  Graph_Graph018->GetZaxis()->SetLabelFont(42);
240  Graph_Graph018->GetZaxis()->SetLabelSize(0.05);
241  Graph_Graph018->GetZaxis()->SetTitleSize(0.05);
242  Graph_Graph018->GetZaxis()->SetTitleOffset(1);
243  Graph_Graph018->GetZaxis()->SetTitleFont(42);
244  graph->SetHistogram(Graph_Graph018);
245 
246  graph->Draw("p");
247  D0_BUP2020AuAu_0_80_significance_3yr_2->Modified();
248  D0_BUP2020AuAu_0_80_significance_3yr->cd();
249  D0_BUP2020AuAu_0_80_significance_3yr->Modified();
250  D0_BUP2020AuAu_0_80_significance_3yr->cd();
251  D0_BUP2020AuAu_0_80_significance_3yr->SetSelected(D0_BUP2020AuAu_0_80_significance_3yr);
252 }