Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
D0_BUP2020OO_significance_5yr.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file D0_BUP2020OO_significance_5yr.C
2 {
3 //=========Macro generated from canvas: D0_BUP2020OO_significance_5yr/D0_BUP2020OO_significance_5yr
4 //========= (Wed May 12 23:46:22 2021) by ROOT version 6.22/02
5  TCanvas *D0_BUP2020OO_significance_5yr = new TCanvas("D0_BUP2020OO_significance_5yr", "D0_BUP2020OO_significance_5yr",0,0,1100,800);
6  gStyle->SetOptFit(1);
7  gStyle->SetOptStat(0);
8  gStyle->SetOptTitle(0);
9  D0_BUP2020OO_significance_5yr->SetHighLightColor(2);
10  D0_BUP2020OO_significance_5yr->Range(0,0,1,1);
11  D0_BUP2020OO_significance_5yr->SetFillColor(0);
12  D0_BUP2020OO_significance_5yr->SetBorderMode(0);
13  D0_BUP2020OO_significance_5yr->SetBorderSize(2);
14  D0_BUP2020OO_significance_5yr->SetTickx(1);
15  D0_BUP2020OO_significance_5yr->SetTicky(1);
16  D0_BUP2020OO_significance_5yr->SetLeftMargin(0.16);
17  D0_BUP2020OO_significance_5yr->SetRightMargin(0.05);
18  D0_BUP2020OO_significance_5yr->SetTopMargin(0.05);
19  D0_BUP2020OO_significance_5yr->SetBottomMargin(0.16);
20  D0_BUP2020OO_significance_5yr->SetFrameBorderMode(0);
21 
22 // ------------>Primitives in pad: D0_BUP2020OO_significance_5yr_1
23  TPad *D0_BUP2020OO_significance_5yr_1 = new TPad("D0_BUP2020OO_significance_5yr_1", "D0_BUP2020OO_significance_5yr_1",0.01,0.01,0.49,0.99);
24  D0_BUP2020OO_significance_5yr_1->Draw();
25  D0_BUP2020OO_significance_5yr_1->cd();
26  D0_BUP2020OO_significance_5yr_1->Range(-2.43038,-92.76168,12.75949,486.9989);
27  D0_BUP2020OO_significance_5yr_1->SetFillColor(0);
28  D0_BUP2020OO_significance_5yr_1->SetBorderMode(0);
29  D0_BUP2020OO_significance_5yr_1->SetBorderSize(2);
30  D0_BUP2020OO_significance_5yr_1->SetTickx(1);
31  D0_BUP2020OO_significance_5yr_1->SetTicky(1);
32  D0_BUP2020OO_significance_5yr_1->SetLeftMargin(0.16);
33  D0_BUP2020OO_significance_5yr_1->SetRightMargin(0.05);
34  D0_BUP2020OO_significance_5yr_1->SetTopMargin(0.05);
35  D0_BUP2020OO_significance_5yr_1->SetBottomMargin(0.16);
36  D0_BUP2020OO_significance_5yr_1->SetFrameBorderMode(0);
37  D0_BUP2020OO_significance_5yr_1->SetFrameBorderMode(0);
38 
39  TH1F *hframe__15 = new TH1F("hframe__15","",1000,0,12);
40  hframe__15->SetMinimum(0);
41  hframe__15->SetMaximum(458.0108);
42  hframe__15->SetDirectory(0);
43  hframe__15->SetStats(0);
44  hframe__15->SetLineWidth(2);
45  hframe__15->SetMarkerStyle(20);
46  hframe__15->SetMarkerSize(1.2);
47  hframe__15->GetXaxis()->SetTitle("p_{T} [GeV]");
48  hframe__15->GetXaxis()->SetLabelFont(42);
49  hframe__15->GetXaxis()->SetLabelSize(0.05);
50  hframe__15->GetXaxis()->SetTitleSize(0.05);
51  hframe__15->GetXaxis()->SetTitleOffset(1.4);
52  hframe__15->GetXaxis()->SetTitleFont(42);
53  hframe__15->GetYaxis()->SetTitle("Significance");
54  hframe__15->GetYaxis()->SetLabelFont(42);
55  hframe__15->GetYaxis()->SetLabelSize(0.05);
56  hframe__15->GetYaxis()->SetTitleSize(0.05);
57  hframe__15->GetYaxis()->SetTitleOffset(1.4);
58  hframe__15->GetYaxis()->SetTitleFont(42);
59  hframe__15->GetZaxis()->SetLabelFont(42);
60  hframe__15->GetZaxis()->SetLabelSize(0.05);
61  hframe__15->GetZaxis()->SetTitleSize(0.05);
62  hframe__15->GetZaxis()->SetTitleOffset(1);
63  hframe__15->GetZaxis()->SetTitleFont(42);
64  hframe__15->Draw(" ");
65 
66  Double_t Graph0_fx21[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_fy21[20] = {
88  156.8728,
89  242.1079,
90  353.8694,
91  381.6757,
92  357.1429,
93  305.7188,
94  277.2567,
95  218.2449,
96  167.8064,
97  126.3672,
98  99.49641,
99  77.09799,
100  59.67318,
101  46.37322,
102  41.78973,
103  32.39768,
104  25.30884,
105  19.94562,
106  15.8735,
107  12.72326};
108  TGraph *graph = new TGraph(20,Graph0_fx21,Graph0_fy21);
109  graph->SetName("Graph0");
110  graph->SetTitle("Significance for N_Collision = 4.1519e+10 centrality_ncoll = 9.6000e+00, 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_Graph021 = new TH1F("Graph_Graph021","Significance for N_Collision = 4.1519e+10 centrality_ncoll = 9.6000e+00, based on 60-80%, w/o TOF, 48B",100,0,10.7);
121  Graph_Graph021->SetMinimum(18.29657);
122  Graph_Graph021->SetMaximum(458.0108);
123  Graph_Graph021->SetDirectory(0);
124  Graph_Graph021->SetLineWidth(2);
125  Graph_Graph021->SetMarkerStyle(20);
126  Graph_Graph021->SetMarkerSize(1.2);
127  Graph_Graph021->GetXaxis()->SetTitle(" p_{T} [GeV/c]");
128  Graph_Graph021->GetXaxis()->SetRange(1,94);
129  Graph_Graph021->GetXaxis()->SetLabelFont(42);
130  Graph_Graph021->GetXaxis()->SetLabelSize(0.05);
131  Graph_Graph021->GetXaxis()->SetTitleSize(0.05);
132  Graph_Graph021->GetXaxis()->SetTitleOffset(1.4);
133  Graph_Graph021->GetXaxis()->SetTitleFont(42);
134  Graph_Graph021->GetYaxis()->SetTitle(" S / #sqrt{S + B}");
135  Graph_Graph021->GetYaxis()->SetLabelFont(42);
136  Graph_Graph021->GetYaxis()->SetLabelSize(0.05);
137  Graph_Graph021->GetYaxis()->SetTitleSize(0.05);
138  Graph_Graph021->GetYaxis()->SetTitleOffset(1.4);
139  Graph_Graph021->GetYaxis()->SetTitleFont(42);
140  Graph_Graph021->GetZaxis()->SetLabelFont(42);
141  Graph_Graph021->GetZaxis()->SetLabelSize(0.05);
142  Graph_Graph021->GetZaxis()->SetTitleSize(0.05);
143  Graph_Graph021->GetZaxis()->SetTitleOffset(1);
144  Graph_Graph021->GetZaxis()->SetTitleFont(42);
145  graph->SetHistogram(Graph_Graph021);
146 
147  graph->Draw("p");
148  D0_BUP2020OO_significance_5yr_1->Modified();
149  D0_BUP2020OO_significance_5yr->cd();
150 
151 // ------------>Primitives in pad: D0_BUP2020OO_significance_5yr_2
152  TPad *D0_BUP2020OO_significance_5yr_2 = new TPad("D0_BUP2020OO_significance_5yr_2", "D0_BUP2020OO_significance_5yr_2",0.51,0.01,0.99,0.99);
153  D0_BUP2020OO_significance_5yr_2->Draw();
154  D0_BUP2020OO_significance_5yr_2->cd();
155  D0_BUP2020OO_significance_5yr_2->Range(-2.43038,-4.886916,12.75949,25.65631);
156  D0_BUP2020OO_significance_5yr_2->SetFillColor(0);
157  D0_BUP2020OO_significance_5yr_2->SetBorderMode(0);
158  D0_BUP2020OO_significance_5yr_2->SetBorderSize(2);
159  D0_BUP2020OO_significance_5yr_2->SetTickx(1);
160  D0_BUP2020OO_significance_5yr_2->SetTicky(1);
161  D0_BUP2020OO_significance_5yr_2->SetLeftMargin(0.16);
162  D0_BUP2020OO_significance_5yr_2->SetRightMargin(0.05);
163  D0_BUP2020OO_significance_5yr_2->SetTopMargin(0.05);
164  D0_BUP2020OO_significance_5yr_2->SetBottomMargin(0.16);
165  D0_BUP2020OO_significance_5yr_2->SetFrameBorderMode(0);
166  D0_BUP2020OO_significance_5yr_2->SetFrameBorderMode(0);
167 
168  TH1F *hframe__16 = new TH1F("hframe__16","",1000,0,12);
169  hframe__16->SetMinimum(0);
170  hframe__16->SetMaximum(24.12915);
171  hframe__16->SetDirectory(0);
172  hframe__16->SetStats(0);
173  hframe__16->SetLineWidth(2);
174  hframe__16->SetMarkerStyle(20);
175  hframe__16->SetMarkerSize(1.2);
176  hframe__16->GetXaxis()->SetTitle("p_{T} [GeV]");
177  hframe__16->GetXaxis()->SetLabelFont(42);
178  hframe__16->GetXaxis()->SetLabelSize(0.05);
179  hframe__16->GetXaxis()->SetTitleSize(0.05);
180  hframe__16->GetXaxis()->SetTitleOffset(1.4);
181  hframe__16->GetXaxis()->SetTitleFont(42);
182  hframe__16->GetYaxis()->SetTitle("Significance");
183  hframe__16->GetYaxis()->SetLabelFont(42);
184  hframe__16->GetYaxis()->SetLabelSize(0.05);
185  hframe__16->GetYaxis()->SetTitleSize(0.05);
186  hframe__16->GetYaxis()->SetTitleOffset(1.4);
187  hframe__16->GetYaxis()->SetTitleFont(42);
188  hframe__16->GetZaxis()->SetLabelFont(42);
189  hframe__16->GetZaxis()->SetLabelSize(0.05);
190  hframe__16->GetZaxis()->SetTitleSize(0.05);
191  hframe__16->GetZaxis()->SetTitleOffset(1);
192  hframe__16->GetZaxis()->SetTitleFont(42);
193  hframe__16->Draw(" ");
194 
195  Double_t Graph0_fx22[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_fy22[10] = {
207  4.116461,
208  8.363578,
209  17.47971,
210  20.10763,
211  19.35341,
212  15.4712,
213  11.64561,
214  7.880492,
215  6.01153,
216  4.524406};
217  graph = new TGraph(10,Graph0_fx22,Graph0_fy22);
218  graph->SetName("Graph0");
219  graph->SetTitle("Significance for N_Collision = 4.1519e+10 centrality_ncoll = 9.6000e+00, 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_Graph022 = new TH1F("Graph_Graph022","Significance for N_Collision = 4.1519e+10 centrality_ncoll = 9.6000e+00, based on 60-80%, w/o TOF, 48B",100,0,10.4);
228  Graph_Graph022->SetMinimum(4.022269);
229  Graph_Graph022->SetMaximum(24.12915);
230  Graph_Graph022->SetDirectory(0);
231  Graph_Graph022->SetLineWidth(2);
232  Graph_Graph022->SetMarkerStyle(20);
233  Graph_Graph022->SetMarkerSize(1.2);
234  Graph_Graph022->GetXaxis()->SetTitle(" p_{T} [GeV/c]");
235  Graph_Graph022->GetXaxis()->SetRange(1,97);
236  Graph_Graph022->GetXaxis()->SetLabelFont(42);
237  Graph_Graph022->GetXaxis()->SetLabelSize(0.05);
238  Graph_Graph022->GetXaxis()->SetTitleSize(0.05);
239  Graph_Graph022->GetXaxis()->SetTitleOffset(1.4);
240  Graph_Graph022->GetXaxis()->SetTitleFont(42);
241  Graph_Graph022->GetYaxis()->SetTitle(" S / #sqrt{S + B}");
242  Graph_Graph022->GetYaxis()->SetLabelFont(42);
243  Graph_Graph022->GetYaxis()->SetLabelSize(0.05);
244  Graph_Graph022->GetYaxis()->SetTitleSize(0.05);
245  Graph_Graph022->GetYaxis()->SetTitleOffset(1.4);
246  Graph_Graph022->GetYaxis()->SetTitleFont(42);
247  Graph_Graph022->GetZaxis()->SetLabelFont(42);
248  Graph_Graph022->GetZaxis()->SetLabelSize(0.05);
249  Graph_Graph022->GetZaxis()->SetTitleSize(0.05);
250  Graph_Graph022->GetZaxis()->SetTitleOffset(1);
251  Graph_Graph022->GetZaxis()->SetTitleFont(42);
252  graph->SetHistogram(Graph_Graph022);
253 
254  graph->Draw("p");
255  D0_BUP2020OO_significance_5yr_2->Modified();
256  D0_BUP2020OO_significance_5yr->cd();
257  D0_BUP2020OO_significance_5yr->Modified();
258  D0_BUP2020OO_significance_5yr->cd();
259  D0_BUP2020OO_significance_5yr->SetSelected(D0_BUP2020OO_significance_5yr);
260 }