Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
D0_BUP2020AuAu_0_10_significance_3yr.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file D0_BUP2020AuAu_0_10_significance_3yr.C
2 {
3 //=========Macro generated from canvas: D0_BUP2020AuAu_0_10_significance_3yr/D0_BUP2020AuAu_0_10_significance_3yr
4 //========= (Wed May 12 23:46:20 2021) by ROOT version 6.22/02
5  TCanvas *D0_BUP2020AuAu_0_10_significance_3yr = new TCanvas("D0_BUP2020AuAu_0_10_significance_3yr", "D0_BUP2020AuAu_0_10_significance_3yr",0,0,1100,800);
6  gStyle->SetOptFit(1);
7  gStyle->SetOptStat(0);
8  gStyle->SetOptTitle(0);
9  D0_BUP2020AuAu_0_10_significance_3yr->SetHighLightColor(2);
10  D0_BUP2020AuAu_0_10_significance_3yr->Range(0,0,1,1);
11  D0_BUP2020AuAu_0_10_significance_3yr->SetFillColor(0);
12  D0_BUP2020AuAu_0_10_significance_3yr->SetBorderMode(0);
13  D0_BUP2020AuAu_0_10_significance_3yr->SetBorderSize(2);
14  D0_BUP2020AuAu_0_10_significance_3yr->SetTickx(1);
15  D0_BUP2020AuAu_0_10_significance_3yr->SetTicky(1);
16  D0_BUP2020AuAu_0_10_significance_3yr->SetLeftMargin(0.16);
17  D0_BUP2020AuAu_0_10_significance_3yr->SetRightMargin(0.05);
18  D0_BUP2020AuAu_0_10_significance_3yr->SetTopMargin(0.05);
19  D0_BUP2020AuAu_0_10_significance_3yr->SetBottomMargin(0.16);
20  D0_BUP2020AuAu_0_10_significance_3yr->SetFrameBorderMode(0);
21 
22 // ------------>Primitives in pad: D0_BUP2020AuAu_0_10_significance_3yr_1
23  TPad *D0_BUP2020AuAu_0_10_significance_3yr_1 = new TPad("D0_BUP2020AuAu_0_10_significance_3yr_1", "D0_BUP2020AuAu_0_10_significance_3yr_1",0.01,0.01,0.49,0.99);
24  D0_BUP2020AuAu_0_10_significance_3yr_1->Draw();
25  D0_BUP2020AuAu_0_10_significance_3yr_1->cd();
26  D0_BUP2020AuAu_0_10_significance_3yr_1->Range(-2.43038,-320.6286,12.75949,1683.3);
27  D0_BUP2020AuAu_0_10_significance_3yr_1->SetFillColor(0);
28  D0_BUP2020AuAu_0_10_significance_3yr_1->SetBorderMode(0);
29  D0_BUP2020AuAu_0_10_significance_3yr_1->SetBorderSize(2);
30  D0_BUP2020AuAu_0_10_significance_3yr_1->SetTickx(1);
31  D0_BUP2020AuAu_0_10_significance_3yr_1->SetTicky(1);
32  D0_BUP2020AuAu_0_10_significance_3yr_1->SetLeftMargin(0.16);
33  D0_BUP2020AuAu_0_10_significance_3yr_1->SetRightMargin(0.05);
34  D0_BUP2020AuAu_0_10_significance_3yr_1->SetTopMargin(0.05);
35  D0_BUP2020AuAu_0_10_significance_3yr_1->SetBottomMargin(0.16);
36  D0_BUP2020AuAu_0_10_significance_3yr_1->SetFrameBorderMode(0);
37  D0_BUP2020AuAu_0_10_significance_3yr_1->SetFrameBorderMode(0);
38 
39  TH1F *hframe__7 = new TH1F("hframe__7","",1000,0,12);
40  hframe__7->SetMinimum(0);
41  hframe__7->SetMaximum(1583.104);
42  hframe__7->SetDirectory(0);
43  hframe__7->SetStats(0);
44  hframe__7->SetLineWidth(2);
45  hframe__7->SetMarkerStyle(20);
46  hframe__7->SetMarkerSize(1.2);
47  hframe__7->GetXaxis()->SetTitle("p_{T} [GeV]");
48  hframe__7->GetXaxis()->SetLabelFont(42);
49  hframe__7->GetXaxis()->SetLabelSize(0.05);
50  hframe__7->GetXaxis()->SetTitleSize(0.05);
51  hframe__7->GetXaxis()->SetTitleOffset(1.4);
52  hframe__7->GetXaxis()->SetTitleFont(42);
53  hframe__7->GetYaxis()->SetTitle("Significance");
54  hframe__7->GetYaxis()->SetLabelFont(42);
55  hframe__7->GetYaxis()->SetLabelSize(0.05);
56  hframe__7->GetYaxis()->SetTitleSize(0.05);
57  hframe__7->GetYaxis()->SetTitleOffset(1.4);
58  hframe__7->GetYaxis()->SetTitleFont(42);
59  hframe__7->GetZaxis()->SetLabelFont(42);
60  hframe__7->GetZaxis()->SetLabelSize(0.05);
61  hframe__7->GetZaxis()->SetTitleSize(0.05);
62  hframe__7->GetZaxis()->SetTitleOffset(1);
63  hframe__7->GetZaxis()->SetTitleFont(42);
64  hframe__7->Draw(" ");
65 
66  Double_t Graph0_fx13[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_fy13[20] = {
88  452.7213,
89  696.0787,
90  1083.052,
91  1319.253,
92  1306.403,
93  1142.592,
94  832.6952,
95  630.6431,
96  468.637,
97  354.0432,
98  271.5012,
99  203.7491,
100  153.3749,
101  114.7844,
102  86.90932,
103  65.23378,
104  50.12622,
105  37.89479,
106  29.06995,
107  22.41011};
108  TGraph *graph = new TGraph(20,Graph0_fx13,Graph0_fy13);
109  graph->SetName("Graph0");
110  graph->SetTitle("Significance for N_Collision = 1.4128e+11 centrality_ncoll = 9.6020e+01, based on 0-10%, w/o TOF, 24B");
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("#cc0000");
116  graph->SetMarkerColor(ci);
117  graph->SetMarkerStyle(20);
118  graph->SetMarkerSize(1.2);
119 
120  TH1F *Graph_Graph013 = new TH1F("Graph_Graph013","Significance for N_Collision = 1.4128e+11 centrality_ncoll = 9.6020e+01, based on 0-10%, w/o TOF, 24B",100,0,10.7);
121  Graph_Graph013->SetMinimum(26.2875);
122  Graph_Graph013->SetMaximum(1583.104);
123  Graph_Graph013->SetDirectory(0);
124  Graph_Graph013->SetLineWidth(2);
125  Graph_Graph013->SetMarkerStyle(20);
126  Graph_Graph013->SetMarkerSize(1.2);
127  Graph_Graph013->GetXaxis()->SetTitle(" p_{T} [GeV/c]");
128  Graph_Graph013->GetXaxis()->SetRange(1,94);
129  Graph_Graph013->GetXaxis()->SetLabelFont(42);
130  Graph_Graph013->GetXaxis()->SetLabelSize(0.05);
131  Graph_Graph013->GetXaxis()->SetTitleSize(0.05);
132  Graph_Graph013->GetXaxis()->SetTitleOffset(1.4);
133  Graph_Graph013->GetXaxis()->SetTitleFont(42);
134  Graph_Graph013->GetYaxis()->SetTitle(" S / #sqrt{S + B}");
135  Graph_Graph013->GetYaxis()->SetLabelFont(42);
136  Graph_Graph013->GetYaxis()->SetLabelSize(0.05);
137  Graph_Graph013->GetYaxis()->SetTitleSize(0.05);
138  Graph_Graph013->GetYaxis()->SetTitleOffset(1.4);
139  Graph_Graph013->GetYaxis()->SetTitleFont(42);
140  Graph_Graph013->GetZaxis()->SetLabelFont(42);
141  Graph_Graph013->GetZaxis()->SetLabelSize(0.05);
142  Graph_Graph013->GetZaxis()->SetTitleSize(0.05);
143  Graph_Graph013->GetZaxis()->SetTitleOffset(1);
144  Graph_Graph013->GetZaxis()->SetTitleFont(42);
145  graph->SetHistogram(Graph_Graph013);
146 
147  graph->Draw("p");
148  D0_BUP2020AuAu_0_10_significance_3yr_1->Modified();
149  D0_BUP2020AuAu_0_10_significance_3yr->cd();
150 
151 // ------------>Primitives in pad: D0_BUP2020AuAu_0_10_significance_3yr_2
152  TPad *D0_BUP2020AuAu_0_10_significance_3yr_2 = new TPad("D0_BUP2020AuAu_0_10_significance_3yr_2", "D0_BUP2020AuAu_0_10_significance_3yr_2",0.51,0.01,0.99,0.99);
153  D0_BUP2020AuAu_0_10_significance_3yr_2->Draw();
154  D0_BUP2020AuAu_0_10_significance_3yr_2->cd();
155  D0_BUP2020AuAu_0_10_significance_3yr_2->Range(-2.43038,-14.37675,12.75949,75.47793);
156  D0_BUP2020AuAu_0_10_significance_3yr_2->SetFillColor(0);
157  D0_BUP2020AuAu_0_10_significance_3yr_2->SetBorderMode(0);
158  D0_BUP2020AuAu_0_10_significance_3yr_2->SetBorderSize(2);
159  D0_BUP2020AuAu_0_10_significance_3yr_2->SetTickx(1);
160  D0_BUP2020AuAu_0_10_significance_3yr_2->SetTicky(1);
161  D0_BUP2020AuAu_0_10_significance_3yr_2->SetLeftMargin(0.16);
162  D0_BUP2020AuAu_0_10_significance_3yr_2->SetRightMargin(0.05);
163  D0_BUP2020AuAu_0_10_significance_3yr_2->SetTopMargin(0.05);
164  D0_BUP2020AuAu_0_10_significance_3yr_2->SetBottomMargin(0.16);
165  D0_BUP2020AuAu_0_10_significance_3yr_2->SetFrameBorderMode(0);
166  D0_BUP2020AuAu_0_10_significance_3yr_2->SetFrameBorderMode(0);
167 
168  TH1F *hframe__8 = new TH1F("hframe__8","",1000,0,12);
169  hframe__8->SetMinimum(0);
170  hframe__8->SetMaximum(70.9852);
171  hframe__8->SetDirectory(0);
172  hframe__8->SetStats(0);
173  hframe__8->SetLineWidth(2);
174  hframe__8->SetMarkerStyle(20);
175  hframe__8->SetMarkerSize(1.2);
176  hframe__8->GetXaxis()->SetTitle("p_{T} [GeV]");
177  hframe__8->GetXaxis()->SetLabelFont(42);
178  hframe__8->GetXaxis()->SetLabelSize(0.05);
179  hframe__8->GetXaxis()->SetTitleSize(0.05);
180  hframe__8->GetXaxis()->SetTitleOffset(1.4);
181  hframe__8->GetXaxis()->SetTitleFont(42);
182  hframe__8->GetYaxis()->SetTitle("Significance");
183  hframe__8->GetYaxis()->SetLabelFont(42);
184  hframe__8->GetYaxis()->SetLabelSize(0.05);
185  hframe__8->GetYaxis()->SetTitleSize(0.05);
186  hframe__8->GetYaxis()->SetTitleOffset(1.4);
187  hframe__8->GetYaxis()->SetTitleFont(42);
188  hframe__8->GetZaxis()->SetLabelFont(42);
189  hframe__8->GetZaxis()->SetLabelSize(0.05);
190  hframe__8->GetZaxis()->SetTitleSize(0.05);
191  hframe__8->GetZaxis()->SetTitleOffset(1);
192  hframe__8->GetZaxis()->SetTitleFont(42);
193  hframe__8->Draw(" ");
194 
195  Double_t Graph0_fx14[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_fy14[10] = {
207  6.498993,
208  12.81415,
209  30.68814,
210  52.24624,
211  59.15433,
212  53.23591,
213  44.80608,
214  31.86806,
215  25.21887,
216  18.33553};
217  graph = new TGraph(10,Graph0_fx14,Graph0_fy14);
218  graph->SetName("Graph0");
219  graph->SetTitle("Significance for N_Collision = 1.4128e+11 centrality_ncoll = 9.6020e+01, based on 0-10%, w/o TOF, 24B");
220  graph->SetLineWidth(2);
221 
222  ci = TColor::GetColor("#cc0000");
223  graph->SetMarkerColor(ci);
224  graph->SetMarkerStyle(20);
225  graph->SetMarkerSize(1.2);
226 
227  TH1F *Graph_Graph014 = new TH1F("Graph_Graph014","Significance for N_Collision = 1.4128e+11 centrality_ncoll = 9.6020e+01, based on 0-10%, w/o TOF, 24B",100,0,10.4);
228  Graph_Graph014->SetMinimum(1.607636);
229  Graph_Graph014->SetMaximum(70.9852);
230  Graph_Graph014->SetDirectory(0);
231  Graph_Graph014->SetLineWidth(2);
232  Graph_Graph014->SetMarkerStyle(20);
233  Graph_Graph014->SetMarkerSize(1.2);
234  Graph_Graph014->GetXaxis()->SetTitle(" p_{T} [GeV/c]");
235  Graph_Graph014->GetXaxis()->SetRange(1,97);
236  Graph_Graph014->GetXaxis()->SetLabelFont(42);
237  Graph_Graph014->GetXaxis()->SetLabelSize(0.05);
238  Graph_Graph014->GetXaxis()->SetTitleSize(0.05);
239  Graph_Graph014->GetXaxis()->SetTitleOffset(1.4);
240  Graph_Graph014->GetXaxis()->SetTitleFont(42);
241  Graph_Graph014->GetYaxis()->SetTitle(" S / #sqrt{S + B}");
242  Graph_Graph014->GetYaxis()->SetLabelFont(42);
243  Graph_Graph014->GetYaxis()->SetLabelSize(0.05);
244  Graph_Graph014->GetYaxis()->SetTitleSize(0.05);
245  Graph_Graph014->GetYaxis()->SetTitleOffset(1.4);
246  Graph_Graph014->GetYaxis()->SetTitleFont(42);
247  Graph_Graph014->GetZaxis()->SetLabelFont(42);
248  Graph_Graph014->GetZaxis()->SetLabelSize(0.05);
249  Graph_Graph014->GetZaxis()->SetTitleSize(0.05);
250  Graph_Graph014->GetZaxis()->SetTitleOffset(1);
251  Graph_Graph014->GetZaxis()->SetTitleFont(42);
252  graph->SetHistogram(Graph_Graph014);
253 
254  graph->Draw("p");
255  D0_BUP2020AuAu_0_10_significance_3yr_2->Modified();
256  D0_BUP2020AuAu_0_10_significance_3yr->cd();
257  D0_BUP2020AuAu_0_10_significance_3yr->Modified();
258  D0_BUP2020AuAu_0_10_significance_3yr->cd();
259  D0_BUP2020AuAu_0_10_significance_3yr->SetSelected(D0_BUP2020AuAu_0_10_significance_3yr);
260 }