Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
D0_BUP2020OOArAr_v2_5yr.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file D0_BUP2020OOArAr_v2_5yr.C
2 {
3 //=========Macro generated from canvas: D0_BUP2020OOArAr_v2_5yr/D0_BUP2020OOArArO_v2_5yr
4 //========= (Wed May 12 23:46:27 2021) by ROOT version 6.22/02
5  TCanvas *D0_BUP2020OOArAr_v2_5yr = new TCanvas("D0_BUP2020OOArAr_v2_5yr", "D0_BUP2020OOArArO_v2_5yr",0,0,1100,800);
6  gStyle->SetOptFit(1);
7  gStyle->SetOptStat(0);
8  gStyle->SetOptTitle(0);
9  D0_BUP2020OOArAr_v2_5yr->SetHighLightColor(2);
10  D0_BUP2020OOArAr_v2_5yr->Range(0,0,1,1);
11  D0_BUP2020OOArAr_v2_5yr->SetFillColor(0);
12  D0_BUP2020OOArAr_v2_5yr->SetBorderMode(0);
13  D0_BUP2020OOArAr_v2_5yr->SetBorderSize(2);
14  D0_BUP2020OOArAr_v2_5yr->SetTickx(1);
15  D0_BUP2020OOArAr_v2_5yr->SetTicky(1);
16  D0_BUP2020OOArAr_v2_5yr->SetLeftMargin(0.16);
17  D0_BUP2020OOArAr_v2_5yr->SetRightMargin(0.05);
18  D0_BUP2020OOArAr_v2_5yr->SetTopMargin(0.05);
19  D0_BUP2020OOArAr_v2_5yr->SetBottomMargin(0.16);
20  D0_BUP2020OOArAr_v2_5yr->SetFrameBorderMode(0);
21 
22 // ------------>Primitives in pad: D0_BUP2020OOArAr_v2_5yr_1
23  TPad *D0_BUP2020OOArAr_v2_5yr_1 = new TPad("D0_BUP2020OOArAr_v2_5yr_1", "D0_BUP2020OOArAr_v2_5yr_1",0.01,0.01,0.99,0.99);
24  D0_BUP2020OOArAr_v2_5yr_1->Draw();
25  D0_BUP2020OOArAr_v2_5yr_1->cd();
26  D0_BUP2020OOArAr_v2_5yr_1->Range(-2.227848,-0.3512658,11.6962,0.2816456);
27  D0_BUP2020OOArAr_v2_5yr_1->SetFillColor(0);
28  D0_BUP2020OOArAr_v2_5yr_1->SetBorderMode(0);
29  D0_BUP2020OOArAr_v2_5yr_1->SetBorderSize(2);
30  D0_BUP2020OOArAr_v2_5yr_1->SetTickx(1);
31  D0_BUP2020OOArAr_v2_5yr_1->SetTicky(1);
32  D0_BUP2020OOArAr_v2_5yr_1->SetLeftMargin(0.16);
33  D0_BUP2020OOArAr_v2_5yr_1->SetRightMargin(0.05);
34  D0_BUP2020OOArAr_v2_5yr_1->SetTopMargin(0.05);
35  D0_BUP2020OOArAr_v2_5yr_1->SetBottomMargin(0.16);
36  D0_BUP2020OOArAr_v2_5yr_1->SetFrameBorderMode(0);
37  D0_BUP2020OOArAr_v2_5yr_1->SetFrameBorderMode(0);
38 
39  TH1F *hframe__24 = new TH1F("hframe__24","",1000,0,11);
40  hframe__24->SetMinimum(-0.25);
41  hframe__24->SetMaximum(0.25);
42  hframe__24->SetDirectory(0);
43  hframe__24->SetStats(0);
44  hframe__24->SetLineWidth(2);
45  hframe__24->SetMarkerStyle(20);
46  hframe__24->SetMarkerSize(1.2);
47  hframe__24->GetXaxis()->SetTitle("#it{p}_{T} [GeV]");
48  hframe__24->GetXaxis()->SetLabelFont(42);
49  hframe__24->GetXaxis()->SetLabelSize(0.05);
50  hframe__24->GetXaxis()->SetTitleSize(0.05);
51  hframe__24->GetXaxis()->SetTitleOffset(1.4);
52  hframe__24->GetXaxis()->SetTitleFont(42);
53  hframe__24->GetYaxis()->SetTitle("v_{2}");
54  hframe__24->GetYaxis()->SetLabelFont(42);
55  hframe__24->GetYaxis()->SetLabelSize(0.05);
56  hframe__24->GetYaxis()->SetTitleSize(0.05);
57  hframe__24->GetYaxis()->SetTitleOffset(1.4);
58  hframe__24->GetYaxis()->SetTitleFont(42);
59  hframe__24->GetZaxis()->SetLabelFont(42);
60  hframe__24->GetZaxis()->SetLabelSize(0.05);
61  hframe__24->GetZaxis()->SetTitleSize(0.05);
62  hframe__24->GetZaxis()->SetTitleOffset(1);
63  hframe__24->GetZaxis()->SetTitleFont(42);
64  hframe__24->Draw(" ");
65 
66  Double_t Graph0_fx1015[10] = {
67  0.7,
68  1.7,
69  2.7,
70  3.7,
71  4.7,
72  5.7,
73  6.7,
74  7.7,
75  8.7,
76  9.7};
77  Double_t Graph0_fy1015[10] = {
78  0,
79  0,
80  0,
81  0,
82  0,
83  0,
84  0,
85  0,
86  0,
87  0};
88  Double_t Graph0_fex1015[10] = {
89  0,
90  0,
91  0,
92  0,
93  0,
94  0,
95  0,
96  0,
97  0,
98  0};
99  Double_t Graph0_fey1015[10] = {
100  0.00907488,
101  0.005029957,
102  0.00556875,
103  0.007419596,
104  0.01246273,
105  0.02079894,
106  0.03464166,
107  0.04951089,
108  0.08124443,
109  0.1286908};
110  TGraphErrors *gre = new TGraphErrors(10,Graph0_fx1015,Graph0_fy1015,Graph0_fex1015,Graph0_fey1015);
111  gre->SetName("Graph0");
112  gre->SetTitle("Graph");
113  gre->SetFillStyle(1000);
114 
115  Int_t ci; // for color index setting
116  TColor *color; // for color definition with alpha
117  ci = TColor::GetColor("#000000");
118  gre->SetLineColor(ci);
119  gre->SetLineWidth(4);
120 
121  ci = TColor::GetColor("#000000");
122  gre->SetMarkerColor(ci);
123  gre->SetMarkerStyle(24);
124  gre->SetMarkerSize(2);
125 
126  TH1F *Graph_Graph01015 = new TH1F("Graph_Graph01015","Graph",100,0,10.6);
127  Graph_Graph01015->SetMinimum(-0.154429);
128  Graph_Graph01015->SetMaximum(0.154429);
129  Graph_Graph01015->SetDirectory(0);
130  Graph_Graph01015->SetStats(0);
131  Graph_Graph01015->SetLineWidth(2);
132  Graph_Graph01015->SetMarkerStyle(20);
133  Graph_Graph01015->SetMarkerSize(1.2);
134  Graph_Graph01015->GetXaxis()->SetLabelFont(42);
135  Graph_Graph01015->GetXaxis()->SetLabelSize(0.05);
136  Graph_Graph01015->GetXaxis()->SetTitleSize(0.05);
137  Graph_Graph01015->GetXaxis()->SetTitleOffset(1.4);
138  Graph_Graph01015->GetXaxis()->SetTitleFont(42);
139  Graph_Graph01015->GetYaxis()->SetLabelFont(42);
140  Graph_Graph01015->GetYaxis()->SetLabelSize(0.05);
141  Graph_Graph01015->GetYaxis()->SetTitleSize(0.05);
142  Graph_Graph01015->GetYaxis()->SetTitleOffset(1.4);
143  Graph_Graph01015->GetYaxis()->SetTitleFont(42);
144  Graph_Graph01015->GetZaxis()->SetLabelFont(42);
145  Graph_Graph01015->GetZaxis()->SetLabelSize(0.05);
146  Graph_Graph01015->GetZaxis()->SetTitleSize(0.05);
147  Graph_Graph01015->GetZaxis()->SetTitleOffset(1);
148  Graph_Graph01015->GetZaxis()->SetTitleFont(42);
149  gre->SetHistogram(Graph_Graph01015);
150 
151  gre->Draw("p");
152 
153  Double_t Graph1_fx1016[2] = {
154  2.3,
155  7.3};
156  Double_t Graph1_fy1016[2] = {
157  0,
158  0};
159  Double_t Graph1_fex1016[2] = {
160  0,
161  0};
162  Double_t Graph1_fey1016[2] = {
163  0.07649507,
164  0.1178262};
165  gre = new TGraphErrors(2,Graph1_fx1016,Graph1_fy1016,Graph1_fex1016,Graph1_fey1016);
166  gre->SetName("Graph1");
167  gre->SetTitle("Graph");
168  gre->SetFillStyle(1000);
169 
170  ci = TColor::GetColor("#000099");
171  gre->SetLineColor(ci);
172  gre->SetLineWidth(4);
173 
174  ci = TColor::GetColor("#000099");
175  gre->SetMarkerColor(ci);
176  gre->SetMarkerStyle(25);
177  gre->SetMarkerSize(2);
178 
179  TH1F *Graph_Graph11016 = new TH1F("Graph_Graph11016","Graph",100,1.8,7.8);
180  Graph_Graph11016->SetMinimum(-0.1413914);
181  Graph_Graph11016->SetMaximum(0.1413914);
182  Graph_Graph11016->SetDirectory(0);
183  Graph_Graph11016->SetStats(0);
184  Graph_Graph11016->SetLineWidth(2);
185  Graph_Graph11016->SetMarkerStyle(20);
186  Graph_Graph11016->SetMarkerSize(1.2);
187  Graph_Graph11016->GetXaxis()->SetLabelFont(42);
188  Graph_Graph11016->GetXaxis()->SetLabelSize(0.05);
189  Graph_Graph11016->GetXaxis()->SetTitleSize(0.05);
190  Graph_Graph11016->GetXaxis()->SetTitleOffset(1.4);
191  Graph_Graph11016->GetXaxis()->SetTitleFont(42);
192  Graph_Graph11016->GetYaxis()->SetLabelFont(42);
193  Graph_Graph11016->GetYaxis()->SetLabelSize(0.05);
194  Graph_Graph11016->GetYaxis()->SetTitleSize(0.05);
195  Graph_Graph11016->GetYaxis()->SetTitleOffset(1.4);
196  Graph_Graph11016->GetYaxis()->SetTitleFont(42);
197  Graph_Graph11016->GetZaxis()->SetLabelFont(42);
198  Graph_Graph11016->GetZaxis()->SetLabelSize(0.05);
199  Graph_Graph11016->GetZaxis()->SetTitleSize(0.05);
200  Graph_Graph11016->GetZaxis()->SetTitleOffset(1);
201  Graph_Graph11016->GetZaxis()->SetTitleFont(42);
202  gre->SetHistogram(Graph_Graph11016);
203 
204  gre->Draw("p");
205 
206  Double_t Graph2_fx1017[10] = {
207  0.5,
208  1.5,
209  2.5,
210  3.5,
211  4.5,
212  5.5,
213  6.5,
214  7.5,
215  8.5,
216  9.5};
217  Double_t Graph2_fy1017[10] = {
218  0,
219  0,
220  0,
221  0,
222  0,
223  0,
224  0,
225  0,
226  0,
227  0};
228  Double_t Graph2_fex1017[10] = {
229  0,
230  0,
231  0,
232  0,
233  0,
234  0,
235  0,
236  0,
237  0,
238  0};
239  Double_t Graph2_fey1017[10] = {
240  0.004800957,
241  0.002661039,
242  0.002946081,
243  0.003925249,
244  0.006593259,
245  0.01100343,
246  0.01832676,
247  0.02619315,
248  0.0429814,
249  0.06808234};
250  gre = new TGraphErrors(10,Graph2_fx1017,Graph2_fy1017,Graph2_fex1017,Graph2_fey1017);
251  gre->SetName("Graph2");
252  gre->SetTitle("Graph");
253  gre->SetFillStyle(1000);
254 
255  ci = TColor::GetColor("#000000");
256  gre->SetLineColor(ci);
257  gre->SetLineWidth(4);
258 
259  ci = TColor::GetColor("#000000");
260  gre->SetMarkerColor(ci);
261  gre->SetMarkerStyle(20);
262  gre->SetMarkerSize(2);
263 
264  TH1F *Graph_Graph21017 = new TH1F("Graph_Graph21017","Graph",100,0,10.4);
265  Graph_Graph21017->SetMinimum(-0.0816988);
266  Graph_Graph21017->SetMaximum(0.0816988);
267  Graph_Graph21017->SetDirectory(0);
268  Graph_Graph21017->SetStats(0);
269  Graph_Graph21017->SetLineWidth(2);
270  Graph_Graph21017->SetMarkerStyle(20);
271  Graph_Graph21017->SetMarkerSize(1.2);
272  Graph_Graph21017->GetXaxis()->SetLabelFont(42);
273  Graph_Graph21017->GetXaxis()->SetLabelSize(0.05);
274  Graph_Graph21017->GetXaxis()->SetTitleSize(0.05);
275  Graph_Graph21017->GetXaxis()->SetTitleOffset(1.4);
276  Graph_Graph21017->GetXaxis()->SetTitleFont(42);
277  Graph_Graph21017->GetYaxis()->SetLabelFont(42);
278  Graph_Graph21017->GetYaxis()->SetLabelSize(0.05);
279  Graph_Graph21017->GetYaxis()->SetTitleSize(0.05);
280  Graph_Graph21017->GetYaxis()->SetTitleOffset(1.4);
281  Graph_Graph21017->GetYaxis()->SetTitleFont(42);
282  Graph_Graph21017->GetZaxis()->SetLabelFont(42);
283  Graph_Graph21017->GetZaxis()->SetLabelSize(0.05);
284  Graph_Graph21017->GetZaxis()->SetTitleSize(0.05);
285  Graph_Graph21017->GetZaxis()->SetTitleOffset(1);
286  Graph_Graph21017->GetZaxis()->SetTitleFont(42);
287  gre->SetHistogram(Graph_Graph21017);
288 
289  gre->Draw("p");
290 
291  Double_t Graph3_fx1018[2] = {
292  2.1,
293  7.1};
294  Double_t Graph3_fy1018[2] = {
295  0,
296  0};
297  Double_t Graph3_fex1018[2] = {
298  0,
299  0};
300  Double_t Graph3_fey1018[2] = {
301  0.04046881,
302  0.06233454};
303  gre = new TGraphErrors(2,Graph3_fx1018,Graph3_fy1018,Graph3_fex1018,Graph3_fey1018);
304  gre->SetName("Graph3");
305  gre->SetTitle("Graph");
306  gre->SetFillStyle(1000);
307 
308  ci = TColor::GetColor("#000099");
309  gre->SetLineColor(ci);
310  gre->SetLineWidth(4);
311 
312  ci = TColor::GetColor("#000099");
313  gre->SetMarkerColor(ci);
314  gre->SetMarkerStyle(21);
315  gre->SetMarkerSize(2);
316 
317  TH1F *Graph_Graph31018 = new TH1F("Graph_Graph31018","Graph",100,1.6,7.6);
318  Graph_Graph31018->SetMinimum(-0.07480145);
319  Graph_Graph31018->SetMaximum(0.07480145);
320  Graph_Graph31018->SetDirectory(0);
321  Graph_Graph31018->SetStats(0);
322  Graph_Graph31018->SetLineWidth(2);
323  Graph_Graph31018->SetMarkerStyle(20);
324  Graph_Graph31018->SetMarkerSize(1.2);
325  Graph_Graph31018->GetXaxis()->SetLabelFont(42);
326  Graph_Graph31018->GetXaxis()->SetLabelSize(0.05);
327  Graph_Graph31018->GetXaxis()->SetTitleSize(0.05);
328  Graph_Graph31018->GetXaxis()->SetTitleOffset(1.4);
329  Graph_Graph31018->GetXaxis()->SetTitleFont(42);
330  Graph_Graph31018->GetYaxis()->SetLabelFont(42);
331  Graph_Graph31018->GetYaxis()->SetLabelSize(0.05);
332  Graph_Graph31018->GetYaxis()->SetTitleSize(0.05);
333  Graph_Graph31018->GetYaxis()->SetTitleOffset(1.4);
334  Graph_Graph31018->GetYaxis()->SetTitleFont(42);
335  Graph_Graph31018->GetZaxis()->SetLabelFont(42);
336  Graph_Graph31018->GetZaxis()->SetLabelSize(0.05);
337  Graph_Graph31018->GetZaxis()->SetTitleSize(0.05);
338  Graph_Graph31018->GetZaxis()->SetTitleOffset(1);
339  Graph_Graph31018->GetZaxis()->SetTitleFont(42);
340  gre->SetHistogram(Graph_Graph31018);
341 
342  gre->Draw("p");
343 
344  TLegend *leg = new TLegend(0.1,0.8,0.55,0.9,NULL,"brNDC");
345  leg->SetBorderSize(0);
346  leg->SetLineColor(1);
347  leg->SetLineStyle(1);
348  leg->SetLineWidth(1);
349  leg->SetFillColor(0);
350  leg->SetFillStyle(0);
351  TLegendEntry *entry=leg->AddEntry("NULL","#it{#bf{sPHENIX}} Projection, Years 1-5","");
352  entry->SetLineColor(1);
353  entry->SetLineStyle(1);
354  entry->SetLineWidth(1);
355  entry->SetMarkerColor(1);
356  entry->SetMarkerStyle(21);
357  entry->SetMarkerSize(1);
358  entry->SetTextFont(42);
359  leg->Draw();
360 
361  leg = new TLegend(0.2,0.2,1,0.4,NULL,"brNDC");
362  leg->SetBorderSize(0);
363  leg->SetLineColor(1);
364  leg->SetLineStyle(1);
365  leg->SetLineWidth(1);
366  leg->SetFillColor(0);
367  leg->SetFillStyle(0);
368  entry=leg->AddEntry("NULL","Prompt #it{D}^{0}","h");
369  entry->SetLineColor(1);
370  entry->SetLineStyle(1);
371  entry->SetLineWidth(1);
372  entry->SetMarkerColor(1);
373  entry->SetMarkerStyle(21);
374  entry->SetMarkerSize(1);
375  entry->SetTextFont(42);
376  entry=leg->AddEntry("Graph"," ","p");
377  entry->SetLineColor(1);
378  entry->SetLineStyle(1);
379  entry->SetLineWidth(1);
380 
381  ci = TColor::GetColor("#000000");
382  entry->SetMarkerColor(ci);
383  entry->SetMarkerStyle(24);
384  entry->SetMarkerSize(2);
385  entry->SetTextFont(42);
386  entry=leg->AddEntry("Graph"," ","p");
387  entry->SetLineColor(1);
388  entry->SetLineStyle(1);
389  entry->SetLineWidth(1);
390 
391  ci = TColor::GetColor("#000000");
392  entry->SetMarkerColor(ci);
393  entry->SetMarkerStyle(20);
394  entry->SetMarkerSize(2);
395  entry->SetTextFont(42);
396  leg->Draw();
397 
398  leg = new TLegend(0.4,0.2,0.65,0.4,NULL,"brNDC");
399  leg->SetBorderSize(0);
400  leg->SetLineColor(1);
401  leg->SetLineStyle(1);
402  leg->SetLineWidth(1);
403  leg->SetFillColor(0);
404  leg->SetFillStyle(0);
405  entry=leg->AddEntry("NULL","#it{B}#rightarrow#it{D}^{0}","h");
406  entry->SetLineColor(1);
407  entry->SetLineStyle(1);
408  entry->SetLineWidth(1);
409  entry->SetMarkerColor(1);
410  entry->SetMarkerStyle(21);
411  entry->SetMarkerSize(1);
412  entry->SetTextFont(42);
413  entry=leg->AddEntry("Graph","37 nb^{-1} str. O+O, Res(#Psi_{2})=0.3","p");
414  entry->SetLineColor(1);
415  entry->SetLineStyle(1);
416  entry->SetLineWidth(1);
417 
418  ci = TColor::GetColor("#000099");
419  entry->SetMarkerColor(ci);
420  entry->SetMarkerStyle(25);
421  entry->SetMarkerSize(2);
422  entry->SetTextFont(42);
423  entry=leg->AddEntry("Graph","12 nb^{-1} str. Ar+Ar, Res(#Psi_{2})=0.4","p");
424  entry->SetLineColor(1);
425  entry->SetLineStyle(1);
426  entry->SetLineWidth(1);
427 
428  ci = TColor::GetColor("#000099");
429  entry->SetMarkerColor(ci);
430  entry->SetMarkerStyle(21);
431  entry->SetMarkerSize(2);
432  entry->SetTextFont(42);
433  leg->Draw();
434  D0_BUP2020OOArAr_v2_5yr_1->Modified();
435  D0_BUP2020OOArAr_v2_5yr->cd();
436  D0_BUP2020OOArAr_v2_5yr->Modified();
437  D0_BUP2020OOArAr_v2_5yr->cd();
438  D0_BUP2020OOArAr_v2_5yr->SetSelected(D0_BUP2020OOArAr_v2_5yr);
439 }