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_5yr.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file D0_BUP2020AuAu_0_80_significance_5yr.C
2 {
3 //=========Macro generated from canvas: D0_BUP2020AuAu_0_80_significance_5yr/D0_BUP2020AuAu_0_80_significance_5yr
4 //========= (Wed May 12 23:46:21 2021) by ROOT version 6.22/02
5  TCanvas *D0_BUP2020AuAu_0_80_significance_5yr = new TCanvas("D0_BUP2020AuAu_0_80_significance_5yr", "D0_BUP2020AuAu_0_80_significance_5yr",0,0,1100,800);
6  gStyle->SetOptFit(1);
7  gStyle->SetOptStat(0);
8  gStyle->SetOptTitle(0);
9  D0_BUP2020AuAu_0_80_significance_5yr->SetHighLightColor(2);
10  D0_BUP2020AuAu_0_80_significance_5yr->Range(0,0,1,1);
11  D0_BUP2020AuAu_0_80_significance_5yr->SetFillColor(0);
12  D0_BUP2020AuAu_0_80_significance_5yr->SetBorderMode(0);
13  D0_BUP2020AuAu_0_80_significance_5yr->SetBorderSize(2);
14  D0_BUP2020AuAu_0_80_significance_5yr->SetTickx(1);
15  D0_BUP2020AuAu_0_80_significance_5yr->SetTicky(1);
16  D0_BUP2020AuAu_0_80_significance_5yr->SetLeftMargin(0.16);
17  D0_BUP2020AuAu_0_80_significance_5yr->SetRightMargin(0.05);
18  D0_BUP2020AuAu_0_80_significance_5yr->SetTopMargin(0.05);
19  D0_BUP2020AuAu_0_80_significance_5yr->SetBottomMargin(0.16);
20  D0_BUP2020AuAu_0_80_significance_5yr->SetFrameBorderMode(0);
21 
22 // ------------>Primitives in pad: D0_BUP2020AuAu_0_80_significance_5yr_1
23  TPad *D0_BUP2020AuAu_0_80_significance_5yr_1 = new TPad("D0_BUP2020AuAu_0_80_significance_5yr_1", "D0_BUP2020AuAu_0_80_significance_5yr_1",0.01,0.01,0.49,0.99);
24  D0_BUP2020AuAu_0_80_significance_5yr_1->Draw();
25  D0_BUP2020AuAu_0_80_significance_5yr_1->cd();
26  D0_BUP2020AuAu_0_80_significance_5yr_1->Range(-2.43038,-833.3988,12.75949,4375.344);
27  D0_BUP2020AuAu_0_80_significance_5yr_1->SetFillColor(0);
28  D0_BUP2020AuAu_0_80_significance_5yr_1->SetBorderMode(0);
29  D0_BUP2020AuAu_0_80_significance_5yr_1->SetBorderSize(2);
30  D0_BUP2020AuAu_0_80_significance_5yr_1->SetTickx(1);
31  D0_BUP2020AuAu_0_80_significance_5yr_1->SetTicky(1);
32  D0_BUP2020AuAu_0_80_significance_5yr_1->SetLeftMargin(0.16);
33  D0_BUP2020AuAu_0_80_significance_5yr_1->SetRightMargin(0.05);
34  D0_BUP2020AuAu_0_80_significance_5yr_1->SetTopMargin(0.05);
35  D0_BUP2020AuAu_0_80_significance_5yr_1->SetBottomMargin(0.16);
36  D0_BUP2020AuAu_0_80_significance_5yr_1->SetFrameBorderMode(0);
37  D0_BUP2020AuAu_0_80_significance_5yr_1->SetFrameBorderMode(0);
38 
39  TH1F *hframe__13 = new TH1F("hframe__13","",1000,0,12);
40  hframe__13->SetMinimum(0);
41  hframe__13->SetMaximum(4114.907);
42  hframe__13->SetDirectory(0);
43  hframe__13->SetStats(0);
44  hframe__13->SetLineWidth(2);
45  hframe__13->SetMarkerStyle(20);
46  hframe__13->SetMarkerSize(1.2);
47  hframe__13->GetXaxis()->SetTitle("p_{T} [GeV]");
48  hframe__13->GetXaxis()->SetLabelFont(42);
49  hframe__13->GetXaxis()->SetLabelSize(0.05);
50  hframe__13->GetXaxis()->SetTitleSize(0.05);
51  hframe__13->GetXaxis()->SetTitleOffset(1.4);
52  hframe__13->GetXaxis()->SetTitleFont(42);
53  hframe__13->GetYaxis()->SetTitle("Significance");
54  hframe__13->GetYaxis()->SetLabelFont(42);
55  hframe__13->GetYaxis()->SetLabelSize(0.05);
56  hframe__13->GetYaxis()->SetTitleSize(0.05);
57  hframe__13->GetYaxis()->SetTitleOffset(1.4);
58  hframe__13->GetYaxis()->SetTitleFont(42);
59  hframe__13->GetZaxis()->SetLabelFont(42);
60  hframe__13->GetZaxis()->SetLabelSize(0.05);
61  hframe__13->GetZaxis()->SetTitleSize(0.05);
62  hframe__13->GetZaxis()->SetTitleOffset(1);
63  hframe__13->GetZaxis()->SetTitleFont(42);
64  hframe__13->Draw(" ");
65 
66  Double_t Graph0_fx19[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_fy19[20] = {
88  1151.598,
89  1811.788,
90  2784.259,
91  3408.165,
92  3429.089,
93  3055.78,
94  2249.232,
95  1741.873,
96  1325.764,
97  1019.804,
98  797.0617,
99  610.9829,
100  466.8747,
101  357.0955,
102  277.3544,
103  212.74,
104  163.9314,
105  127.8765,
106  99.74263,
107  79.00544};
108  TGraph *graph = new TGraph(20,Graph0_fx19,Graph0_fy19);
109  graph->SetName("Graph0");
110  graph->SetTitle("Significance for N_Collision = 3.4604e+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_Graph019 = new TH1F("Graph_Graph019","Significance for N_Collision = 3.4604e+11 centrality_ncoll = 1.9080e+02, based on 0-80%, w/o TOF, 192B",100,0,10.7);
116  Graph_Graph019->SetMinimum(59.2166);
117  Graph_Graph019->SetMaximum(4114.907);
118  Graph_Graph019->SetDirectory(0);
119  Graph_Graph019->SetLineWidth(2);
120  Graph_Graph019->SetMarkerStyle(20);
121  Graph_Graph019->SetMarkerSize(1.2);
122  Graph_Graph019->GetXaxis()->SetTitle(" p_{T} [GeV/c]");
123  Graph_Graph019->GetXaxis()->SetRange(1,94);
124  Graph_Graph019->GetXaxis()->SetLabelFont(42);
125  Graph_Graph019->GetXaxis()->SetLabelSize(0.05);
126  Graph_Graph019->GetXaxis()->SetTitleSize(0.05);
127  Graph_Graph019->GetXaxis()->SetTitleOffset(1.4);
128  Graph_Graph019->GetXaxis()->SetTitleFont(42);
129  Graph_Graph019->GetYaxis()->SetTitle(" S / #sqrt{S + B}");
130  Graph_Graph019->GetYaxis()->SetLabelFont(42);
131  Graph_Graph019->GetYaxis()->SetLabelSize(0.05);
132  Graph_Graph019->GetYaxis()->SetTitleSize(0.05);
133  Graph_Graph019->GetYaxis()->SetTitleOffset(1.4);
134  Graph_Graph019->GetYaxis()->SetTitleFont(42);
135  Graph_Graph019->GetZaxis()->SetLabelFont(42);
136  Graph_Graph019->GetZaxis()->SetLabelSize(0.05);
137  Graph_Graph019->GetZaxis()->SetTitleSize(0.05);
138  Graph_Graph019->GetZaxis()->SetTitleOffset(1);
139  Graph_Graph019->GetZaxis()->SetTitleFont(42);
140  graph->SetHistogram(Graph_Graph019);
141 
142  graph->Draw("p");
143  D0_BUP2020AuAu_0_80_significance_5yr_1->Modified();
144  D0_BUP2020AuAu_0_80_significance_5yr->cd();
145 
146 // ------------>Primitives in pad: D0_BUP2020AuAu_0_80_significance_5yr_2
147  TPad *D0_BUP2020AuAu_0_80_significance_5yr_2 = new TPad("D0_BUP2020AuAu_0_80_significance_5yr_2", "D0_BUP2020AuAu_0_80_significance_5yr_2",0.51,0.01,0.99,0.99);
148  D0_BUP2020AuAu_0_80_significance_5yr_2->Draw();
149  D0_BUP2020AuAu_0_80_significance_5yr_2->cd();
150  D0_BUP2020AuAu_0_80_significance_5yr_2->Range(-2.43038,-36.60958,12.75949,192.2003);
151  D0_BUP2020AuAu_0_80_significance_5yr_2->SetFillColor(0);
152  D0_BUP2020AuAu_0_80_significance_5yr_2->SetBorderMode(0);
153  D0_BUP2020AuAu_0_80_significance_5yr_2->SetBorderSize(2);
154  D0_BUP2020AuAu_0_80_significance_5yr_2->SetTickx(1);
155  D0_BUP2020AuAu_0_80_significance_5yr_2->SetTicky(1);
156  D0_BUP2020AuAu_0_80_significance_5yr_2->SetLeftMargin(0.16);
157  D0_BUP2020AuAu_0_80_significance_5yr_2->SetRightMargin(0.05);
158  D0_BUP2020AuAu_0_80_significance_5yr_2->SetTopMargin(0.05);
159  D0_BUP2020AuAu_0_80_significance_5yr_2->SetBottomMargin(0.16);
160  D0_BUP2020AuAu_0_80_significance_5yr_2->SetFrameBorderMode(0);
161  D0_BUP2020AuAu_0_80_significance_5yr_2->SetFrameBorderMode(0);
162 
163  TH1F *hframe__14 = new TH1F("hframe__14","",1000,0,12);
164  hframe__14->SetMinimum(0);
165  hframe__14->SetMaximum(180.7598);
166  hframe__14->SetDirectory(0);
167  hframe__14->SetStats(0);
168  hframe__14->SetLineWidth(2);
169  hframe__14->SetMarkerStyle(20);
170  hframe__14->SetMarkerSize(1.2);
171  hframe__14->GetXaxis()->SetTitle("p_{T} [GeV]");
172  hframe__14->GetXaxis()->SetLabelFont(42);
173  hframe__14->GetXaxis()->SetLabelSize(0.05);
174  hframe__14->GetXaxis()->SetTitleSize(0.05);
175  hframe__14->GetXaxis()->SetTitleOffset(1.4);
176  hframe__14->GetXaxis()->SetTitleFont(42);
177  hframe__14->GetYaxis()->SetTitle("Significance");
178  hframe__14->GetYaxis()->SetLabelFont(42);
179  hframe__14->GetYaxis()->SetLabelSize(0.05);
180  hframe__14->GetYaxis()->SetTitleSize(0.05);
181  hframe__14->GetYaxis()->SetTitleOffset(1.4);
182  hframe__14->GetYaxis()->SetTitleFont(42);
183  hframe__14->GetZaxis()->SetLabelFont(42);
184  hframe__14->GetZaxis()->SetLabelSize(0.05);
185  hframe__14->GetZaxis()->SetTitleSize(0.05);
186  hframe__14->GetZaxis()->SetTitleOffset(1);
187  hframe__14->GetZaxis()->SetTitleFont(42);
188  hframe__14->Draw(" ");
189 
190  Double_t Graph0_fx20[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_fy20[10] = {
202  17.92239,
203  35.53991,
204  84.13591,
205  138.5858,
206  150.6332,
207  128.5061,
208  103.299,
209  71.52636,
210  55.21449,
211  40.22206};
212  graph = new TGraph(10,Graph0_fx20,Graph0_fy20);
213  graph->SetName("Graph0");
214  graph->SetTitle("Significance for N_Collision = 3.4604e+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_Graph020 = new TH1F("Graph_Graph020","Significance for N_Collision = 3.4604e+11 centrality_ncoll = 1.9080e+02, based on 0-80%, w/o TOF, 192B",100,0,10.4);
220  Graph_Graph020->SetMinimum(3.873636);
221  Graph_Graph020->SetMaximum(180.7598);
222  Graph_Graph020->SetDirectory(0);
223  Graph_Graph020->SetLineWidth(2);
224  Graph_Graph020->SetMarkerStyle(20);
225  Graph_Graph020->SetMarkerSize(1.2);
226  Graph_Graph020->GetXaxis()->SetTitle(" p_{T} [GeV/c]");
227  Graph_Graph020->GetXaxis()->SetRange(1,97);
228  Graph_Graph020->GetXaxis()->SetLabelFont(42);
229  Graph_Graph020->GetXaxis()->SetLabelSize(0.05);
230  Graph_Graph020->GetXaxis()->SetTitleSize(0.05);
231  Graph_Graph020->GetXaxis()->SetTitleOffset(1.4);
232  Graph_Graph020->GetXaxis()->SetTitleFont(42);
233  Graph_Graph020->GetYaxis()->SetTitle(" S / #sqrt{S + B}");
234  Graph_Graph020->GetYaxis()->SetLabelFont(42);
235  Graph_Graph020->GetYaxis()->SetLabelSize(0.05);
236  Graph_Graph020->GetYaxis()->SetTitleSize(0.05);
237  Graph_Graph020->GetYaxis()->SetTitleOffset(1.4);
238  Graph_Graph020->GetYaxis()->SetTitleFont(42);
239  Graph_Graph020->GetZaxis()->SetLabelFont(42);
240  Graph_Graph020->GetZaxis()->SetLabelSize(0.05);
241  Graph_Graph020->GetZaxis()->SetTitleSize(0.05);
242  Graph_Graph020->GetZaxis()->SetTitleOffset(1);
243  Graph_Graph020->GetZaxis()->SetTitleFont(42);
244  graph->SetHistogram(Graph_Graph020);
245 
246  graph->Draw("p");
247  D0_BUP2020AuAu_0_80_significance_5yr_2->Modified();
248  D0_BUP2020AuAu_0_80_significance_5yr->cd();
249  D0_BUP2020AuAu_0_80_significance_5yr->Modified();
250  D0_BUP2020AuAu_0_80_significance_5yr->cd();
251  D0_BUP2020AuAu_0_80_significance_5yr->SetSelected(D0_BUP2020AuAu_0_80_significance_5yr);
252 }