Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
D0_BUP2020pp_significance_3yr.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file D0_BUP2020pp_significance_3yr.C
2 {
3 //=========Macro generated from canvas: D0_BUP2020pp_significance_3yr/D0_BUP2020pp_significance_3yr
4 //========= (Wed May 12 23:46:18 2021) by ROOT version 6.22/02
5  TCanvas *D0_BUP2020pp_significance_3yr = new TCanvas("D0_BUP2020pp_significance_3yr", "D0_BUP2020pp_significance_3yr",0,0,1100,800);
6  gStyle->SetOptFit(1);
7  gStyle->SetOptStat(0);
8  gStyle->SetOptTitle(0);
9  D0_BUP2020pp_significance_3yr->SetHighLightColor(2);
10  D0_BUP2020pp_significance_3yr->Range(0,0,1,1);
11  D0_BUP2020pp_significance_3yr->SetFillColor(0);
12  D0_BUP2020pp_significance_3yr->SetBorderMode(0);
13  D0_BUP2020pp_significance_3yr->SetBorderSize(2);
14  D0_BUP2020pp_significance_3yr->SetTickx(1);
15  D0_BUP2020pp_significance_3yr->SetTicky(1);
16  D0_BUP2020pp_significance_3yr->SetLeftMargin(0.16);
17  D0_BUP2020pp_significance_3yr->SetRightMargin(0.05);
18  D0_BUP2020pp_significance_3yr->SetTopMargin(0.05);
19  D0_BUP2020pp_significance_3yr->SetBottomMargin(0.16);
20  D0_BUP2020pp_significance_3yr->SetFrameBorderMode(0);
21 
22 // ------------>Primitives in pad: D0_BUP2020pp_significance_3yr_1
23  TPad *D0_BUP2020pp_significance_3yr_1 = new TPad("D0_BUP2020pp_significance_3yr_1", "D0_BUP2020pp_significance_3yr_1",0.01,0.01,0.49,0.99);
24  D0_BUP2020pp_significance_3yr_1->Draw();
25  D0_BUP2020pp_significance_3yr_1->cd();
26  D0_BUP2020pp_significance_3yr_1->Range(-2.43038,-74.97718,12.75949,393.6302);
27  D0_BUP2020pp_significance_3yr_1->SetFillColor(0);
28  D0_BUP2020pp_significance_3yr_1->SetBorderMode(0);
29  D0_BUP2020pp_significance_3yr_1->SetBorderSize(2);
30  D0_BUP2020pp_significance_3yr_1->SetTickx(1);
31  D0_BUP2020pp_significance_3yr_1->SetTicky(1);
32  D0_BUP2020pp_significance_3yr_1->SetLeftMargin(0.16);
33  D0_BUP2020pp_significance_3yr_1->SetRightMargin(0.05);
34  D0_BUP2020pp_significance_3yr_1->SetTopMargin(0.05);
35  D0_BUP2020pp_significance_3yr_1->SetBottomMargin(0.16);
36  D0_BUP2020pp_significance_3yr_1->SetFrameBorderMode(0);
37  D0_BUP2020pp_significance_3yr_1->SetFrameBorderMode(0);
38 
39  TH1F *hframe__3 = new TH1F("hframe__3","",1000,0,12);
40  hframe__3->SetMinimum(0);
41  hframe__3->SetMaximum(370.1999);
42  hframe__3->SetDirectory(0);
43  hframe__3->SetStats(0);
44  hframe__3->SetLineWidth(2);
45  hframe__3->SetMarkerStyle(20);
46  hframe__3->SetMarkerSize(1.2);
47  hframe__3->GetXaxis()->SetTitle("p_{T} [GeV]");
48  hframe__3->GetXaxis()->SetLabelFont(42);
49  hframe__3->GetXaxis()->SetLabelSize(0.05);
50  hframe__3->GetXaxis()->SetTitleSize(0.05);
51  hframe__3->GetXaxis()->SetTitleOffset(1.4);
52  hframe__3->GetXaxis()->SetTitleFont(42);
53  hframe__3->GetYaxis()->SetTitle("Significance");
54  hframe__3->GetYaxis()->SetLabelFont(42);
55  hframe__3->GetYaxis()->SetLabelSize(0.05);
56  hframe__3->GetYaxis()->SetTitleSize(0.05);
57  hframe__3->GetYaxis()->SetTitleOffset(1.4);
58  hframe__3->GetYaxis()->SetTitleFont(42);
59  hframe__3->GetZaxis()->SetLabelFont(42);
60  hframe__3->GetZaxis()->SetLabelSize(0.05);
61  hframe__3->GetZaxis()->SetTitleSize(0.05);
62  hframe__3->GetZaxis()->SetTitleOffset(1);
63  hframe__3->GetZaxis()->SetTitleFont(42);
64  hframe__3->Draw(" ");
65 
66  Double_t Graph0_fx9[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_fy9[20] = {
88  126.7968,
89  195.6904,
90  286.0247,
91  308.4999,
92  288.6705,
93  247.1056,
94  224.1003,
95  176.4025,
96  135.6341,
97  102.1398,
98  80.42071,
99  62.31657,
100  48.23249,
101  37.48243,
102  33.7777,
103  26.18632,
104  20.45656,
105  16.1216,
106  12.83019,
107  10.28393};
108  TGraph *graph = new TGraph(20,Graph0_fx9,Graph0_fy9);
109  graph->SetName("Graph0");
110  graph->SetTitle("Significance for N_Collision = 2.6040e+11 centrality_ncoll = 1.0000e+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_Graph09 = new TH1F("Graph_Graph09","Significance for N_Collision = 2.6040e+11 centrality_ncoll = 1.0000e+00, based on 60-80%, w/o TOF, 48B",100,0,10.7);
121  Graph_Graph09->SetMinimum(18.29657);
122  Graph_Graph09->SetMaximum(370.1999);
123  Graph_Graph09->SetDirectory(0);
124  Graph_Graph09->SetLineWidth(2);
125  Graph_Graph09->SetMarkerStyle(20);
126  Graph_Graph09->SetMarkerSize(1.2);
127  Graph_Graph09->GetXaxis()->SetTitle(" p_{T} [GeV/c]");
128  Graph_Graph09->GetXaxis()->SetRange(1,94);
129  Graph_Graph09->GetXaxis()->SetLabelFont(42);
130  Graph_Graph09->GetXaxis()->SetLabelSize(0.05);
131  Graph_Graph09->GetXaxis()->SetTitleSize(0.05);
132  Graph_Graph09->GetXaxis()->SetTitleOffset(1.4);
133  Graph_Graph09->GetXaxis()->SetTitleFont(42);
134  Graph_Graph09->GetYaxis()->SetTitle(" S / #sqrt{S + B}");
135  Graph_Graph09->GetYaxis()->SetLabelFont(42);
136  Graph_Graph09->GetYaxis()->SetLabelSize(0.05);
137  Graph_Graph09->GetYaxis()->SetTitleSize(0.05);
138  Graph_Graph09->GetYaxis()->SetTitleOffset(1.4);
139  Graph_Graph09->GetYaxis()->SetTitleFont(42);
140  Graph_Graph09->GetZaxis()->SetLabelFont(42);
141  Graph_Graph09->GetZaxis()->SetLabelSize(0.05);
142  Graph_Graph09->GetZaxis()->SetTitleSize(0.05);
143  Graph_Graph09->GetZaxis()->SetTitleOffset(1);
144  Graph_Graph09->GetZaxis()->SetTitleFont(42);
145  graph->SetHistogram(Graph_Graph09);
146 
147  graph->Draw("p");
148  D0_BUP2020pp_significance_3yr_1->Modified();
149  D0_BUP2020pp_significance_3yr->cd();
150 
151 // ------------>Primitives in pad: D0_BUP2020pp_significance_3yr_2
152  TPad *D0_BUP2020pp_significance_3yr_2 = new TPad("D0_BUP2020pp_significance_3yr_2", "D0_BUP2020pp_significance_3yr_2",0.51,0.01,0.99,0.99);
153  D0_BUP2020pp_significance_3yr_2->Draw();
154  D0_BUP2020pp_significance_3yr_2->cd();
155  D0_BUP2020pp_significance_3yr_2->Range(-2.43038,-3.949985,12.75949,20.73742);
156  D0_BUP2020pp_significance_3yr_2->SetFillColor(0);
157  D0_BUP2020pp_significance_3yr_2->SetBorderMode(0);
158  D0_BUP2020pp_significance_3yr_2->SetBorderSize(2);
159  D0_BUP2020pp_significance_3yr_2->SetTickx(1);
160  D0_BUP2020pp_significance_3yr_2->SetTicky(1);
161  D0_BUP2020pp_significance_3yr_2->SetLeftMargin(0.16);
162  D0_BUP2020pp_significance_3yr_2->SetRightMargin(0.05);
163  D0_BUP2020pp_significance_3yr_2->SetTopMargin(0.05);
164  D0_BUP2020pp_significance_3yr_2->SetBottomMargin(0.16);
165  D0_BUP2020pp_significance_3yr_2->SetFrameBorderMode(0);
166  D0_BUP2020pp_significance_3yr_2->SetFrameBorderMode(0);
167 
168  TH1F *hframe__4 = new TH1F("hframe__4","",1000,0,12);
169  hframe__4->SetMinimum(0);
170  hframe__4->SetMaximum(19.50305);
171  hframe__4->SetDirectory(0);
172  hframe__4->SetStats(0);
173  hframe__4->SetLineWidth(2);
174  hframe__4->SetMarkerStyle(20);
175  hframe__4->SetMarkerSize(1.2);
176  hframe__4->GetXaxis()->SetTitle("p_{T} [GeV]");
177  hframe__4->GetXaxis()->SetLabelFont(42);
178  hframe__4->GetXaxis()->SetLabelSize(0.05);
179  hframe__4->GetXaxis()->SetTitleSize(0.05);
180  hframe__4->GetXaxis()->SetTitleOffset(1.4);
181  hframe__4->GetXaxis()->SetTitleFont(42);
182  hframe__4->GetYaxis()->SetTitle("Significance");
183  hframe__4->GetYaxis()->SetLabelFont(42);
184  hframe__4->GetYaxis()->SetLabelSize(0.05);
185  hframe__4->GetYaxis()->SetTitleSize(0.05);
186  hframe__4->GetYaxis()->SetTitleOffset(1.4);
187  hframe__4->GetYaxis()->SetTitleFont(42);
188  hframe__4->GetZaxis()->SetLabelFont(42);
189  hframe__4->GetZaxis()->SetLabelSize(0.05);
190  hframe__4->GetZaxis()->SetTitleSize(0.05);
191  hframe__4->GetZaxis()->SetTitleOffset(1);
192  hframe__4->GetZaxis()->SetTitleFont(42);
193  hframe__4->Draw(" ");
194 
195  Double_t Graph0_fx10[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_fy10[10] = {
207  3.327242,
208  6.760092,
209  14.12846,
210  16.25254,
211  15.64292,
212  12.50502,
213  9.412885,
214  6.369624,
215  4.858984,
216  3.656976};
217  graph = new TGraph(10,Graph0_fx10,Graph0_fy10);
218  graph->SetName("Graph0");
219  graph->SetTitle("Significance for N_Collision = 2.6040e+11 centrality_ncoll = 1.0000e+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_Graph010 = new TH1F("Graph_Graph010","Significance for N_Collision = 2.6040e+11 centrality_ncoll = 1.0000e+00, based on 60-80%, w/o TOF, 48B",100,0,10.4);
228  Graph_Graph010->SetMinimum(4.022269);
229  Graph_Graph010->SetMaximum(19.50305);
230  Graph_Graph010->SetDirectory(0);
231  Graph_Graph010->SetLineWidth(2);
232  Graph_Graph010->SetMarkerStyle(20);
233  Graph_Graph010->SetMarkerSize(1.2);
234  Graph_Graph010->GetXaxis()->SetTitle(" p_{T} [GeV/c]");
235  Graph_Graph010->GetXaxis()->SetRange(1,97);
236  Graph_Graph010->GetXaxis()->SetLabelFont(42);
237  Graph_Graph010->GetXaxis()->SetLabelSize(0.05);
238  Graph_Graph010->GetXaxis()->SetTitleSize(0.05);
239  Graph_Graph010->GetXaxis()->SetTitleOffset(1.4);
240  Graph_Graph010->GetXaxis()->SetTitleFont(42);
241  Graph_Graph010->GetYaxis()->SetTitle(" S / #sqrt{S + B}");
242  Graph_Graph010->GetYaxis()->SetLabelFont(42);
243  Graph_Graph010->GetYaxis()->SetLabelSize(0.05);
244  Graph_Graph010->GetYaxis()->SetTitleSize(0.05);
245  Graph_Graph010->GetYaxis()->SetTitleOffset(1.4);
246  Graph_Graph010->GetYaxis()->SetTitleFont(42);
247  Graph_Graph010->GetZaxis()->SetLabelFont(42);
248  Graph_Graph010->GetZaxis()->SetLabelSize(0.05);
249  Graph_Graph010->GetZaxis()->SetTitleSize(0.05);
250  Graph_Graph010->GetZaxis()->SetTitleOffset(1);
251  Graph_Graph010->GetZaxis()->SetTitleFont(42);
252  graph->SetHistogram(Graph_Graph010);
253 
254  graph->Draw("p");
255  D0_BUP2020pp_significance_3yr_2->Modified();
256  D0_BUP2020pp_significance_3yr->cd();
257  D0_BUP2020pp_significance_3yr->Modified();
258  D0_BUP2020pp_significance_3yr->cd();
259  D0_BUP2020pp_significance_3yr->SetSelected(D0_BUP2020pp_significance_3yr);
260 }