Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
D0_BUP2020ArAr_significance_5yr.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file D0_BUP2020ArAr_significance_5yr.C
2 {
3 //=========Macro generated from canvas: D0_BUP2020ArAr_significance_5yr/D0_BUP2020ArAr_significance_5yr
4 //========= (Wed May 12 23:46:24 2021) by ROOT version 6.22/02
5  TCanvas *D0_BUP2020ArAr_significance_5yr = new TCanvas("D0_BUP2020ArAr_significance_5yr", "D0_BUP2020ArAr_significance_5yr",0,0,1100,800);
6  gStyle->SetOptFit(1);
7  gStyle->SetOptStat(0);
8  gStyle->SetOptTitle(0);
9  D0_BUP2020ArAr_significance_5yr->SetHighLightColor(2);
10  D0_BUP2020ArAr_significance_5yr->Range(0,0,1,1);
11  D0_BUP2020ArAr_significance_5yr->SetFillColor(0);
12  D0_BUP2020ArAr_significance_5yr->SetBorderMode(0);
13  D0_BUP2020ArAr_significance_5yr->SetBorderSize(2);
14  D0_BUP2020ArAr_significance_5yr->SetTickx(1);
15  D0_BUP2020ArAr_significance_5yr->SetTicky(1);
16  D0_BUP2020ArAr_significance_5yr->SetLeftMargin(0.16);
17  D0_BUP2020ArAr_significance_5yr->SetRightMargin(0.05);
18  D0_BUP2020ArAr_significance_5yr->SetTopMargin(0.05);
19  D0_BUP2020ArAr_significance_5yr->SetBottomMargin(0.16);
20  D0_BUP2020ArAr_significance_5yr->SetFrameBorderMode(0);
21 
22 // ------------>Primitives in pad: D0_BUP2020ArAr_significance_5yr_1
23  TPad *D0_BUP2020ArAr_significance_5yr_1 = new TPad("D0_BUP2020ArAr_significance_5yr_1", "D0_BUP2020ArAr_significance_5yr_1",0.01,0.01,0.49,0.99);
24  D0_BUP2020ArAr_significance_5yr_1->Draw();
25  D0_BUP2020ArAr_significance_5yr_1->cd();
26  D0_BUP2020ArAr_significance_5yr_1->Range(-2.43038,-131.5052,12.75949,690.4023);
27  D0_BUP2020ArAr_significance_5yr_1->SetFillColor(0);
28  D0_BUP2020ArAr_significance_5yr_1->SetBorderMode(0);
29  D0_BUP2020ArAr_significance_5yr_1->SetBorderSize(2);
30  D0_BUP2020ArAr_significance_5yr_1->SetTickx(1);
31  D0_BUP2020ArAr_significance_5yr_1->SetTicky(1);
32  D0_BUP2020ArAr_significance_5yr_1->SetLeftMargin(0.16);
33  D0_BUP2020ArAr_significance_5yr_1->SetRightMargin(0.05);
34  D0_BUP2020ArAr_significance_5yr_1->SetTopMargin(0.05);
35  D0_BUP2020ArAr_significance_5yr_1->SetBottomMargin(0.16);
36  D0_BUP2020ArAr_significance_5yr_1->SetFrameBorderMode(0);
37  D0_BUP2020ArAr_significance_5yr_1->SetFrameBorderMode(0);
38 
39  TH1F *hframe__17 = new TH1F("hframe__17","",1000,0,12);
40  hframe__17->SetMinimum(0);
41  hframe__17->SetMaximum(649.307);
42  hframe__17->SetDirectory(0);
43  hframe__17->SetStats(0);
44  hframe__17->SetLineWidth(2);
45  hframe__17->SetMarkerStyle(20);
46  hframe__17->SetMarkerSize(1.2);
47  hframe__17->GetXaxis()->SetTitle("p_{T} [GeV]");
48  hframe__17->GetXaxis()->SetLabelFont(42);
49  hframe__17->GetXaxis()->SetLabelSize(0.05);
50  hframe__17->GetXaxis()->SetTitleSize(0.05);
51  hframe__17->GetXaxis()->SetTitleOffset(1.4);
52  hframe__17->GetXaxis()->SetTitleFont(42);
53  hframe__17->GetYaxis()->SetTitle("Significance");
54  hframe__17->GetYaxis()->SetLabelFont(42);
55  hframe__17->GetYaxis()->SetLabelSize(0.05);
56  hframe__17->GetYaxis()->SetTitleSize(0.05);
57  hframe__17->GetYaxis()->SetTitleOffset(1.4);
58  hframe__17->GetYaxis()->SetTitleFont(42);
59  hframe__17->GetZaxis()->SetLabelFont(42);
60  hframe__17->GetZaxis()->SetLabelSize(0.05);
61  hframe__17->GetZaxis()->SetTitleSize(0.05);
62  hframe__17->GetZaxis()->SetTitleOffset(1);
63  hframe__17->GetZaxis()->SetTitleFont(42);
64  hframe__17->Draw(" ");
65 
66  Double_t Graph0_fx23[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_fy23[20] = {
88  222.3935,
89  343.2285,
90  501.669,
91  541.0891,
92  506.3098,
93  433.4075,
94  393.0577,
95  309.3987,
96  237.8936,
97  179.1467,
98  141.0528,
99  109.2993,
100  84.59671,
101  65.7418,
102  59.24393,
103  45.92914,
104  35.87951,
105  28.27625,
106  22.50334,
107  18.03735};
108  TGraph *graph = new TGraph(20,Graph0_fx23,Graph0_fy23);
109  graph->SetName("Graph0");
110  graph->SetTitle("Significance for N_Collision = 2.8108e+10 centrality_ncoll = 2.8500e+01, based on 60-80%, w/o TOF, 48B");
111  graph->SetLineWidth(2);
112 
113  Int_t ci; // for color index setting
114  TColor *color; // for color definition with alpha
115  ci = TColor::GetColor("#00cc00");
116  graph->SetMarkerColor(ci);
117  graph->SetMarkerStyle(20);
118  graph->SetMarkerSize(1.2);
119 
120  TH1F *Graph_Graph023 = new TH1F("Graph_Graph023","Significance for N_Collision = 2.8108e+10 centrality_ncoll = 2.8500e+01, based on 60-80%, w/o TOF, 48B",100,0,10.7);
121  Graph_Graph023->SetMinimum(18.29657);
122  Graph_Graph023->SetMaximum(649.307);
123  Graph_Graph023->SetDirectory(0);
124  Graph_Graph023->SetLineWidth(2);
125  Graph_Graph023->SetMarkerStyle(20);
126  Graph_Graph023->SetMarkerSize(1.2);
127  Graph_Graph023->GetXaxis()->SetTitle(" p_{T} [GeV/c]");
128  Graph_Graph023->GetXaxis()->SetRange(1,94);
129  Graph_Graph023->GetXaxis()->SetLabelFont(42);
130  Graph_Graph023->GetXaxis()->SetLabelSize(0.05);
131  Graph_Graph023->GetXaxis()->SetTitleSize(0.05);
132  Graph_Graph023->GetXaxis()->SetTitleOffset(1.4);
133  Graph_Graph023->GetXaxis()->SetTitleFont(42);
134  Graph_Graph023->GetYaxis()->SetTitle(" S / #sqrt{S + B}");
135  Graph_Graph023->GetYaxis()->SetLabelFont(42);
136  Graph_Graph023->GetYaxis()->SetLabelSize(0.05);
137  Graph_Graph023->GetYaxis()->SetTitleSize(0.05);
138  Graph_Graph023->GetYaxis()->SetTitleOffset(1.4);
139  Graph_Graph023->GetYaxis()->SetTitleFont(42);
140  Graph_Graph023->GetZaxis()->SetLabelFont(42);
141  Graph_Graph023->GetZaxis()->SetLabelSize(0.05);
142  Graph_Graph023->GetZaxis()->SetTitleSize(0.05);
143  Graph_Graph023->GetZaxis()->SetTitleOffset(1);
144  Graph_Graph023->GetZaxis()->SetTitleFont(42);
145  graph->SetHistogram(Graph_Graph023);
146 
147  graph->Draw("p");
148  D0_BUP2020ArAr_significance_5yr_1->Modified();
149  D0_BUP2020ArAr_significance_5yr->cd();
150 
151 // ------------>Primitives in pad: D0_BUP2020ArAr_significance_5yr_2
152  TPad *D0_BUP2020ArAr_significance_5yr_2 = new TPad("D0_BUP2020ArAr_significance_5yr_2", "D0_BUP2020ArAr_significance_5yr_2",0.51,0.01,0.99,0.99);
153  D0_BUP2020ArAr_significance_5yr_2->Draw();
154  D0_BUP2020ArAr_significance_5yr_2->cd();
155  D0_BUP2020ArAr_significance_5yr_2->Range(-2.43038,-6.928021,12.75949,36.37211);
156  D0_BUP2020ArAr_significance_5yr_2->SetFillColor(0);
157  D0_BUP2020ArAr_significance_5yr_2->SetBorderMode(0);
158  D0_BUP2020ArAr_significance_5yr_2->SetBorderSize(2);
159  D0_BUP2020ArAr_significance_5yr_2->SetTickx(1);
160  D0_BUP2020ArAr_significance_5yr_2->SetTicky(1);
161  D0_BUP2020ArAr_significance_5yr_2->SetLeftMargin(0.16);
162  D0_BUP2020ArAr_significance_5yr_2->SetRightMargin(0.05);
163  D0_BUP2020ArAr_significance_5yr_2->SetTopMargin(0.05);
164  D0_BUP2020ArAr_significance_5yr_2->SetBottomMargin(0.16);
165  D0_BUP2020ArAr_significance_5yr_2->SetFrameBorderMode(0);
166  D0_BUP2020ArAr_significance_5yr_2->SetFrameBorderMode(0);
167 
168  TH1F *hframe__18 = new TH1F("hframe__18","",1000,0,12);
169  hframe__18->SetMinimum(0);
170  hframe__18->SetMaximum(34.20711);
171  hframe__18->SetDirectory(0);
172  hframe__18->SetStats(0);
173  hframe__18->SetLineWidth(2);
174  hframe__18->SetMarkerStyle(20);
175  hframe__18->SetMarkerSize(1.2);
176  hframe__18->GetXaxis()->SetTitle("p_{T} [GeV]");
177  hframe__18->GetXaxis()->SetLabelFont(42);
178  hframe__18->GetXaxis()->SetLabelSize(0.05);
179  hframe__18->GetXaxis()->SetTitleSize(0.05);
180  hframe__18->GetXaxis()->SetTitleOffset(1.4);
181  hframe__18->GetXaxis()->SetTitleFont(42);
182  hframe__18->GetYaxis()->SetTitle("Significance");
183  hframe__18->GetYaxis()->SetLabelFont(42);
184  hframe__18->GetYaxis()->SetLabelSize(0.05);
185  hframe__18->GetYaxis()->SetTitleSize(0.05);
186  hframe__18->GetYaxis()->SetTitleOffset(1.4);
187  hframe__18->GetYaxis()->SetTitleFont(42);
188  hframe__18->GetZaxis()->SetLabelFont(42);
189  hframe__18->GetZaxis()->SetLabelSize(0.05);
190  hframe__18->GetZaxis()->SetTitleSize(0.05);
191  hframe__18->GetZaxis()->SetTitleOffset(1);
192  hframe__18->GetZaxis()->SetTitleFont(42);
193  hframe__18->Draw(" ");
194 
195  Double_t Graph0_fx24[10] = {
196  0.5,
197  1.5,
198  2.5,
199  3.5,
200  4.5,
201  5.5,
202  6.5,
203  7.5,
204  8.5,
205  9.5};
206  Double_t Graph0_fy24[10] = {
207  5.835771,
208  11.85677,
209  24.78042,
210  28.50592,
211  27.43669,
212  21.93302,
213  16.5096,
214  11.17191,
215  8.522349,
216  6.414102};
217  graph = new TGraph(10,Graph0_fx24,Graph0_fy24);
218  graph->SetName("Graph0");
219  graph->SetTitle("Significance for N_Collision = 2.8108e+10 centrality_ncoll = 2.8500e+01, based on 60-80%, w/o TOF, 48B");
220  graph->SetLineWidth(2);
221 
222  ci = TColor::GetColor("#00cc00");
223  graph->SetMarkerColor(ci);
224  graph->SetMarkerStyle(20);
225  graph->SetMarkerSize(1.2);
226 
227  TH1F *Graph_Graph024 = new TH1F("Graph_Graph024","Significance for N_Collision = 2.8108e+10 centrality_ncoll = 2.8500e+01, based on 60-80%, w/o TOF, 48B",100,0,10.4);
228  Graph_Graph024->SetMinimum(4.022269);
229  Graph_Graph024->SetMaximum(34.20711);
230  Graph_Graph024->SetDirectory(0);
231  Graph_Graph024->SetLineWidth(2);
232  Graph_Graph024->SetMarkerStyle(20);
233  Graph_Graph024->SetMarkerSize(1.2);
234  Graph_Graph024->GetXaxis()->SetTitle(" p_{T} [GeV/c]");
235  Graph_Graph024->GetXaxis()->SetRange(1,97);
236  Graph_Graph024->GetXaxis()->SetLabelFont(42);
237  Graph_Graph024->GetXaxis()->SetLabelSize(0.05);
238  Graph_Graph024->GetXaxis()->SetTitleSize(0.05);
239  Graph_Graph024->GetXaxis()->SetTitleOffset(1.4);
240  Graph_Graph024->GetXaxis()->SetTitleFont(42);
241  Graph_Graph024->GetYaxis()->SetTitle(" S / #sqrt{S + B}");
242  Graph_Graph024->GetYaxis()->SetLabelFont(42);
243  Graph_Graph024->GetYaxis()->SetLabelSize(0.05);
244  Graph_Graph024->GetYaxis()->SetTitleSize(0.05);
245  Graph_Graph024->GetYaxis()->SetTitleOffset(1.4);
246  Graph_Graph024->GetYaxis()->SetTitleFont(42);
247  Graph_Graph024->GetZaxis()->SetLabelFont(42);
248  Graph_Graph024->GetZaxis()->SetLabelSize(0.05);
249  Graph_Graph024->GetZaxis()->SetTitleSize(0.05);
250  Graph_Graph024->GetZaxis()->SetTitleOffset(1);
251  Graph_Graph024->GetZaxis()->SetTitleFont(42);
252  graph->SetHistogram(Graph_Graph024);
253 
254  graph->Draw("p");
255  D0_BUP2020ArAr_significance_5yr_2->Modified();
256  D0_BUP2020ArAr_significance_5yr->cd();
257  D0_BUP2020ArAr_significance_5yr->Modified();
258  D0_BUP2020ArAr_significance_5yr->cd();
259  D0_BUP2020ArAr_significance_5yr->SetSelected(D0_BUP2020ArAr_significance_5yr);
260 }