Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
D0_BUP2020_AuAu_v2_3yr_20wk_comp.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file D0_BUP2020_AuAu_v2_3yr_20wk_comp.C
2 {
3 //=========Macro generated from canvas: D0_BUP2020_AuAu_v2_3yr_20wk_comp/D0_BUP2020_AuAu_v2_3yr_20wk_comp
4 //========= (Wed May 12 23:46:26 2021) by ROOT version 6.22/02
5  TCanvas *D0_BUP2020_AuAu_v2_3yr_20wk_comp = new TCanvas("D0_BUP2020_AuAu_v2_3yr_20wk_comp", "D0_BUP2020_AuAu_v2_3yr_20wk_comp",0,0,1100,800);
6  gStyle->SetOptFit(1);
7  gStyle->SetOptStat(0);
8  gStyle->SetOptTitle(0);
9  D0_BUP2020_AuAu_v2_3yr_20wk_comp->SetHighLightColor(2);
10  D0_BUP2020_AuAu_v2_3yr_20wk_comp->Range(0,0,1,1);
11  D0_BUP2020_AuAu_v2_3yr_20wk_comp->SetFillColor(0);
12  D0_BUP2020_AuAu_v2_3yr_20wk_comp->SetBorderMode(0);
13  D0_BUP2020_AuAu_v2_3yr_20wk_comp->SetBorderSize(2);
14  D0_BUP2020_AuAu_v2_3yr_20wk_comp->SetTickx(1);
15  D0_BUP2020_AuAu_v2_3yr_20wk_comp->SetTicky(1);
16  D0_BUP2020_AuAu_v2_3yr_20wk_comp->SetLeftMargin(0.16);
17  D0_BUP2020_AuAu_v2_3yr_20wk_comp->SetRightMargin(0.05);
18  D0_BUP2020_AuAu_v2_3yr_20wk_comp->SetTopMargin(0.05);
19  D0_BUP2020_AuAu_v2_3yr_20wk_comp->SetBottomMargin(0.16);
20  D0_BUP2020_AuAu_v2_3yr_20wk_comp->SetFrameBorderMode(0);
21 
22 // ------------>Primitives in pad: D0_BUP2020_AuAu_v2_3yr_20wk_comp_1
23  TPad *D0_BUP2020_AuAu_v2_3yr_20wk_comp_1 = new TPad("D0_BUP2020_AuAu_v2_3yr_20wk_comp_1", "D0_BUP2020_AuAu_v2_3yr_20wk_comp_1",0.01,0.01,0.99,0.99);
24  D0_BUP2020_AuAu_v2_3yr_20wk_comp_1->Draw();
25  D0_BUP2020_AuAu_v2_3yr_20wk_comp_1->cd();
26  D0_BUP2020_AuAu_v2_3yr_20wk_comp_1->Range(-2.227848,-0.1708861,11.6962,0.2721519);
27  D0_BUP2020_AuAu_v2_3yr_20wk_comp_1->SetFillColor(0);
28  D0_BUP2020_AuAu_v2_3yr_20wk_comp_1->SetBorderMode(0);
29  D0_BUP2020_AuAu_v2_3yr_20wk_comp_1->SetBorderSize(2);
30  D0_BUP2020_AuAu_v2_3yr_20wk_comp_1->SetTickx(1);
31  D0_BUP2020_AuAu_v2_3yr_20wk_comp_1->SetTicky(1);
32  D0_BUP2020_AuAu_v2_3yr_20wk_comp_1->SetLeftMargin(0.16);
33  D0_BUP2020_AuAu_v2_3yr_20wk_comp_1->SetRightMargin(0.05);
34  D0_BUP2020_AuAu_v2_3yr_20wk_comp_1->SetTopMargin(0.05);
35  D0_BUP2020_AuAu_v2_3yr_20wk_comp_1->SetBottomMargin(0.16);
36  D0_BUP2020_AuAu_v2_3yr_20wk_comp_1->SetFrameBorderMode(0);
37  D0_BUP2020_AuAu_v2_3yr_20wk_comp_1->SetFrameBorderMode(0);
38 
39  TH1F *hframe__23 = new TH1F("hframe__23","",1000,0,11);
40  hframe__23->SetMinimum(-0.1);
41  hframe__23->SetMaximum(0.25);
42  hframe__23->SetDirectory(0);
43  hframe__23->SetStats(0);
44  hframe__23->SetLineWidth(2);
45  hframe__23->SetMarkerStyle(20);
46  hframe__23->SetMarkerSize(1.2);
47  hframe__23->GetXaxis()->SetTitle("#it{p}_{T} [GeV]");
48  hframe__23->GetXaxis()->SetLabelFont(42);
49  hframe__23->GetXaxis()->SetLabelSize(0.05);
50  hframe__23->GetXaxis()->SetTitleSize(0.05);
51  hframe__23->GetXaxis()->SetTitleOffset(1.4);
52  hframe__23->GetXaxis()->SetTitleFont(42);
53  hframe__23->GetYaxis()->SetTitle("v_{2}");
54  hframe__23->GetYaxis()->SetLabelFont(42);
55  hframe__23->GetYaxis()->SetLabelSize(0.05);
56  hframe__23->GetYaxis()->SetTitleSize(0.05);
57  hframe__23->GetYaxis()->SetTitleOffset(1.4);
58  hframe__23->GetYaxis()->SetTitleFont(42);
59  hframe__23->GetZaxis()->SetLabelFont(42);
60  hframe__23->GetZaxis()->SetLabelSize(0.05);
61  hframe__23->GetZaxis()->SetTitleSize(0.05);
62  hframe__23->GetZaxis()->SetTitleOffset(1);
63  hframe__23->GetZaxis()->SetTitleFont(42);
64  hframe__23->Draw(" ");
65  TLine *line = new TLine(0,-0,11,0);
66  line->Draw();
67 
68  Double_t v2_B_fx31[20] = {
69  0.4200009,
70  1.246444,
71  2.039168,
72  2.791197,
73  3.50468,
74  4.185221,
75  4.838745,
76  5.470381,
77  6.084274,
78  6.683685,
79  7.271172,
80  7.848745,
81  8.418,
82  8.980208,
83  9.5364,
84  10.08741,
85  10.63394,
86  11.17655,
87  11.71573,
88  12.25187};
89  Double_t v2_B_fy31[20] = {
90  0.003230484,
91  0.02045627,
92  0.05875515,
93  0.1035772,
94  0.1351997,
95  0.1468273,
96  0.1426436,
97  0.1296975,
98  0.1135213,
99  0.09734482,
100  0.08267526,
101  0.07001466,
102  0.05936532,
103  0.05052002,
104  0.04320955,
105  0.03716986,
106  0.03216805,
107  0.02800891,
108  0.02453305,
109  0.0216121};
110  TGraph *graph = new TGraph(20,v2_B_fx31,v2_B_fy31);
111  graph->SetName("v2_B");
112  graph->SetTitle("Graph");
113 
114  Int_t ci; // for color index setting
115  TColor *color; // for color definition with alpha
116  ci = TColor::GetColor("#3333ff");
117  graph->SetLineColor(ci);
118  graph->SetLineWidth(2);
119  graph->SetMarkerStyle(20);
120  graph->SetMarkerSize(1.2);
121 
122  TH1F *Graph_v2_B31 = new TH1F("Graph_v2_B31","Graph",100,0,13.43505);
123  Graph_v2_B31->SetMinimum(0);
124  Graph_v2_B31->SetMaximum(0.1611869);
125  Graph_v2_B31->SetDirectory(0);
126  Graph_v2_B31->SetLineWidth(2);
127  Graph_v2_B31->SetMarkerStyle(20);
128  Graph_v2_B31->SetMarkerSize(1.2);
129  Graph_v2_B31->GetXaxis()->SetLabelFont(42);
130  Graph_v2_B31->GetXaxis()->SetLabelSize(0.05);
131  Graph_v2_B31->GetXaxis()->SetTitleSize(0.05);
132  Graph_v2_B31->GetXaxis()->SetTitleOffset(1.4);
133  Graph_v2_B31->GetXaxis()->SetTitleFont(42);
134  Graph_v2_B31->GetYaxis()->SetLabelFont(42);
135  Graph_v2_B31->GetYaxis()->SetLabelSize(0.05);
136  Graph_v2_B31->GetYaxis()->SetTitleSize(0.05);
137  Graph_v2_B31->GetYaxis()->SetTitleOffset(1.4);
138  Graph_v2_B31->GetYaxis()->SetTitleFont(42);
139  Graph_v2_B31->GetZaxis()->SetLabelFont(42);
140  Graph_v2_B31->GetZaxis()->SetLabelSize(0.05);
141  Graph_v2_B31->GetZaxis()->SetTitleSize(0.05);
142  Graph_v2_B31->GetZaxis()->SetTitleOffset(1);
143  Graph_v2_B31->GetZaxis()->SetTitleFont(42);
144  graph->SetHistogram(Graph_v2_B31);
145 
146  graph->Draw("");
147 
148  Double_t v2_D_fx32[20] = {
149  0.25,
150  0.75,
151  1.25,
152  1.75,
153  2.25,
154  2.75,
155  3.25,
156  3.75,
157  4.25,
158  4.75,
159  5.25,
160  5.75,
161  6.25,
162  6.75,
163  7.25,
164  7.75,
165  8.25,
166  8.75,
167  9.25,
168  9.75};
169  Double_t v2_D_fy32[20] = {
170  0.003230484,
171  0.02045627,
172  0.05875515,
173  0.1035772,
174  0.1351997,
175  0.1468273,
176  0.1426436,
177  0.1296975,
178  0.1135213,
179  0.09734482,
180  0.08267526,
181  0.07001466,
182  0.05936532,
183  0.05052002,
184  0.04320955,
185  0.03716986,
186  0.03216805,
187  0.02800891,
188  0.02453305,
189  0.0216121};
190  graph = new TGraph(20,v2_D_fx32,v2_D_fy32);
191  graph->SetName("v2_D");
192  graph->SetTitle("Graph");
193 
194  ci = TColor::GetColor("#000000");
195  graph->SetLineColor(ci);
196  graph->SetLineStyle(2);
197  graph->SetLineWidth(2);
198  graph->SetMarkerStyle(20);
199  graph->SetMarkerSize(1.2);
200 
201  TH1F *Graph_v2_D32 = new TH1F("Graph_v2_D32","Graph",100,0,10.7);
202  Graph_v2_D32->SetMinimum(0);
203  Graph_v2_D32->SetMaximum(0.1611869);
204  Graph_v2_D32->SetDirectory(0);
205  Graph_v2_D32->SetLineWidth(2);
206  Graph_v2_D32->SetMarkerStyle(20);
207  Graph_v2_D32->SetMarkerSize(1.2);
208  Graph_v2_D32->GetXaxis()->SetLabelFont(42);
209  Graph_v2_D32->GetXaxis()->SetLabelSize(0.05);
210  Graph_v2_D32->GetXaxis()->SetTitleSize(0.05);
211  Graph_v2_D32->GetXaxis()->SetTitleOffset(1.4);
212  Graph_v2_D32->GetXaxis()->SetTitleFont(42);
213  Graph_v2_D32->GetYaxis()->SetLabelFont(42);
214  Graph_v2_D32->GetYaxis()->SetLabelSize(0.05);
215  Graph_v2_D32->GetYaxis()->SetTitleSize(0.05);
216  Graph_v2_D32->GetYaxis()->SetTitleOffset(1.4);
217  Graph_v2_D32->GetYaxis()->SetTitleFont(42);
218  Graph_v2_D32->GetZaxis()->SetLabelFont(42);
219  Graph_v2_D32->GetZaxis()->SetLabelSize(0.05);
220  Graph_v2_D32->GetZaxis()->SetTitleSize(0.05);
221  Graph_v2_D32->GetZaxis()->SetTitleOffset(1);
222  Graph_v2_D32->GetZaxis()->SetTitleFont(42);
223  graph->SetHistogram(Graph_v2_D32);
224 
225  graph->Draw("");
226 
227  Double_t Graph0_fx1013[8] = {
228  2.5,
229  3.5,
230  4.5,
231  5.5,
232  6.5,
233  7.5,
234  8.5,
235  9.5};
236  Double_t Graph0_fy1013[8] = {
237  0,
238  0,
239  0,
240  0,
241  0,
242  0,
243  0,
244  0};
245  Double_t Graph0_fex1013[8] = {
246  0,
247  0,
248  0,
249  0,
250  0,
251  0,
252  0,
253  0};
254  Double_t Graph0_fey1013[8] = {
255  0.02921846,
256  0.01773862,
257  0.01631992,
258  0.01913001,
259  0.02379811,
260  0.03436945,
261  0.04452312,
262  0.06111874};
263  TGraphErrors *gre = new TGraphErrors(8,Graph0_fx1013,Graph0_fy1013,Graph0_fex1013,Graph0_fey1013);
264  gre->SetName("Graph0");
265  gre->SetTitle("Graph");
266  gre->SetFillStyle(1000);
267 
268  ci = TColor::GetColor("#0000cc");
269  gre->SetLineColor(ci);
270  gre->SetLineWidth(4);
271 
272  ci = TColor::GetColor("#0000cc");
273  gre->SetMarkerColor(ci);
274  gre->SetMarkerStyle(21);
275  gre->SetMarkerSize(2);
276 
277  TH1F *Graph_Graph01013 = new TH1F("Graph_Graph01013","Graph",100,1.8,10.2);
278  Graph_Graph01013->SetMinimum(-0.07334249);
279  Graph_Graph01013->SetMaximum(0.07334249);
280  Graph_Graph01013->SetDirectory(0);
281  Graph_Graph01013->SetStats(0);
282  Graph_Graph01013->SetLineWidth(2);
283  Graph_Graph01013->SetMarkerStyle(20);
284  Graph_Graph01013->SetMarkerSize(1.2);
285  Graph_Graph01013->GetXaxis()->SetLabelFont(42);
286  Graph_Graph01013->GetXaxis()->SetLabelSize(0.05);
287  Graph_Graph01013->GetXaxis()->SetTitleSize(0.05);
288  Graph_Graph01013->GetXaxis()->SetTitleOffset(1.4);
289  Graph_Graph01013->GetXaxis()->SetTitleFont(42);
290  Graph_Graph01013->GetYaxis()->SetLabelFont(42);
291  Graph_Graph01013->GetYaxis()->SetLabelSize(0.05);
292  Graph_Graph01013->GetYaxis()->SetTitleSize(0.05);
293  Graph_Graph01013->GetYaxis()->SetTitleOffset(1.4);
294  Graph_Graph01013->GetYaxis()->SetTitleFont(42);
295  Graph_Graph01013->GetZaxis()->SetLabelFont(42);
296  Graph_Graph01013->GetZaxis()->SetLabelSize(0.05);
297  Graph_Graph01013->GetZaxis()->SetTitleSize(0.05);
298  Graph_Graph01013->GetZaxis()->SetTitleOffset(1);
299  Graph_Graph01013->GetZaxis()->SetTitleFont(42);
300  gre->SetHistogram(Graph_Graph01013);
301 
302  gre->Draw("p");
303 
304  Double_t Graph1_fx1014[8] = {
305  2.75,
306  3.75,
307  4.75,
308  5.75,
309  6.75,
310  7.75,
311  8.75,
312  9.75};
313  Double_t Graph1_fy1014[8] = {
314  0.025,
315  0.025,
316  0.025,
317  0.025,
318  0.025,
319  0.025,
320  0.025,
321  0.025};
322  Double_t Graph1_fex1014[8] = {
323  0,
324  0,
325  0,
326  0,
327  0,
328  0,
329  0,
330  0};
331  Double_t Graph1_fey1014[8] = {
332  0.03884449,
333  0.02358262,
334  0.02169652,
335  0.02543239,
336  0.0316384,
337  0.04569247,
338  0.05919128,
339  0.08125433};
340  gre = new TGraphErrors(8,Graph1_fx1014,Graph1_fy1014,Graph1_fex1014,Graph1_fey1014);
341  gre->SetName("Graph1");
342  gre->SetTitle("Graph");
343  gre->SetFillStyle(1000);
344 
345  ci = TColor::GetColor("#00cccc");
346  gre->SetLineColor(ci);
347  gre->SetLineWidth(4);
348 
349  ci = TColor::GetColor("#00cccc");
350  gre->SetMarkerColor(ci);
351  gre->SetMarkerStyle(20);
352  gre->SetMarkerSize(2);
353 
354  TH1F *Graph_Graph11014 = new TH1F("Graph_Graph11014","Graph",100,2.05,10.45);
355  Graph_Graph11014->SetMinimum(-0.07250519);
356  Graph_Graph11014->SetMaximum(0.1225052);
357  Graph_Graph11014->SetDirectory(0);
358  Graph_Graph11014->SetStats(0);
359  Graph_Graph11014->SetLineWidth(2);
360  Graph_Graph11014->SetMarkerStyle(20);
361  Graph_Graph11014->SetMarkerSize(1.2);
362  Graph_Graph11014->GetXaxis()->SetLabelFont(42);
363  Graph_Graph11014->GetXaxis()->SetLabelSize(0.05);
364  Graph_Graph11014->GetXaxis()->SetTitleSize(0.05);
365  Graph_Graph11014->GetXaxis()->SetTitleOffset(1.4);
366  Graph_Graph11014->GetXaxis()->SetTitleFont(42);
367  Graph_Graph11014->GetYaxis()->SetLabelFont(42);
368  Graph_Graph11014->GetYaxis()->SetLabelSize(0.05);
369  Graph_Graph11014->GetYaxis()->SetTitleSize(0.05);
370  Graph_Graph11014->GetYaxis()->SetTitleOffset(1.4);
371  Graph_Graph11014->GetYaxis()->SetTitleFont(42);
372  Graph_Graph11014->GetZaxis()->SetLabelFont(42);
373  Graph_Graph11014->GetZaxis()->SetLabelSize(0.05);
374  Graph_Graph11014->GetZaxis()->SetTitleSize(0.05);
375  Graph_Graph11014->GetZaxis()->SetTitleOffset(1);
376  Graph_Graph11014->GetZaxis()->SetTitleFont(42);
377  gre->SetHistogram(Graph_Graph11014);
378 
379  gre->Draw("p");
380 
381  TLegend *leg = new TLegend(0,0.78,0.85,0.9,NULL,"brNDC");
382  leg->SetBorderSize(0);
383  leg->SetLineColor(1);
384  leg->SetLineStyle(1);
385  leg->SetLineWidth(1);
386  leg->SetFillColor(0);
387  leg->SetFillStyle(0);
388  TLegendEntry *entry=leg->AddEntry("NULL","#it{#bf{sPHENIX}} Projection, 0-80% Au+Au, Years 1-3","");
389  entry->SetLineColor(1);
390  entry->SetLineStyle(1);
391  entry->SetLineWidth(1);
392  entry->SetMarkerColor(1);
393  entry->SetMarkerStyle(21);
394  entry->SetMarkerSize(1);
395  entry->SetTextFont(42);
396  entry=leg->AddEntry("NULL","#it{B}#rightarrow#it{D}^{0}, Res(#Psi_{2})=0.5","");
397  entry->SetLineColor(1);
398  entry->SetLineStyle(1);
399  entry->SetLineWidth(1);
400  entry->SetMarkerColor(1);
401  entry->SetMarkerStyle(21);
402  entry->SetMarkerSize(1);
403  entry->SetTextFont(42);
404  leg->Draw();
405 
406  leg = new TLegend(0.55,0.65,0.85,0.83,NULL,"brNDC");
407  leg->SetBorderSize(0);
408  leg->SetLineColor(1);
409  leg->SetLineStyle(1);
410  leg->SetLineWidth(1);
411  leg->SetFillColor(0);
412  leg->SetFillStyle(0);
413  entry=leg->AddEntry("Graph","28wk: 21 nb^{-1} rec. ","lp");
414 
415  ci = TColor::GetColor("#0000cc");
416  entry->SetLineColor(ci);
417  entry->SetLineStyle(1);
418  entry->SetLineWidth(4);
419 
420  ci = TColor::GetColor("#0000cc");
421  entry->SetMarkerColor(ci);
422  entry->SetMarkerStyle(21);
423  entry->SetMarkerSize(2);
424  entry->SetTextFont(42);
425  entry=leg->AddEntry("Graph","20wk: 12 nb^{-1} rec.","lp");
426 
427  ci = TColor::GetColor("#00cccc");
428  entry->SetLineColor(ci);
429  entry->SetLineStyle(1);
430  entry->SetLineWidth(4);
431 
432  ci = TColor::GetColor("#00cccc");
433  entry->SetMarkerColor(ci);
434  entry->SetMarkerStyle(20);
435  entry->SetMarkerSize(2);
436  entry->SetTextFont(42);
437  leg->Draw();
438 
439  leg = new TLegend(0.2,0.2,0.7,0.3,NULL,"brNDC");
440  leg->SetBorderSize(0);
441  leg->SetLineColor(1);
442  leg->SetLineStyle(1);
443  leg->SetLineWidth(1);
444  leg->SetFillColor(0);
445  leg->SetFillStyle(0);
446  entry=leg->AddEntry("v2_D","#it{D}-meson (fit to STAR PRL#bf{118})","l");
447 
448  ci = TColor::GetColor("#000000");
449  entry->SetLineColor(ci);
450  entry->SetLineStyle(2);
451  entry->SetLineWidth(2);
452  entry->SetMarkerColor(1);
453  entry->SetMarkerStyle(21);
454  entry->SetMarkerSize(1);
455  entry->SetTextFont(42);
456  entry=leg->AddEntry("v2_B","#it{B}-meson (m_{T} scaling)","l");
457 
458  ci = TColor::GetColor("#3333ff");
459  entry->SetLineColor(ci);
460  entry->SetLineStyle(1);
461  entry->SetLineWidth(2);
462  entry->SetMarkerColor(1);
463  entry->SetMarkerStyle(21);
464  entry->SetMarkerSize(1);
465  entry->SetTextFont(42);
466  leg->Draw();
467  D0_BUP2020_AuAu_v2_3yr_20wk_comp_1->Modified();
468  D0_BUP2020_AuAu_v2_3yr_20wk_comp->cd();
469  D0_BUP2020_AuAu_v2_3yr_20wk_comp->Modified();
470  D0_BUP2020_AuAu_v2_3yr_20wk_comp->cd();
471  D0_BUP2020_AuAu_v2_3yr_20wk_comp->SetSelected(D0_BUP2020_AuAu_v2_3yr_20wk_comp);
472 }