Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
200pp_pythia8_CTEQ6L_7GeV_ALL.cfg_eneg_DSTReader.root_Draw_HFJetTruth_CrossSection2RAA_Theory_deta0.45.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file 200pp_pythia8_CTEQ6L_7GeV_ALL.cfg_eneg_DSTReader.root_Draw_HFJetTruth_CrossSection2RAA_Theory_deta0.45.C
1 {
2 //=========Macro generated from canvas: Draw_HFJetTruth_CrossSection2RAA_Theory_deta0.45/Draw_HFJetTruth_CrossSection2RAA_Theory_deta0.45
3 //========= (Wed Dec 6 19:13:03 2017) by ROOT version5.34/36
4  TCanvas *Draw_HFJetTruth_CrossSection2RAA_Theory_deta0.45 = new TCanvas("Draw_HFJetTruth_CrossSection2RAA_Theory_deta0.45", "Draw_HFJetTruth_CrossSection2RAA_Theory_deta0.45",28,179,700,600);
5  gStyle->SetOptFit(1);
6  gStyle->SetOptStat(0);
7  gStyle->SetOptTitle(0);
19 
20 // ------------>Primitives in pad: Draw_HFJetTruth_CrossSection2RAA_Theory_deta0.45_1
21  TPad *Draw_HFJetTruth_CrossSection2RAA_Theory_deta0.45_1 = new TPad("Draw_HFJetTruth_CrossSection2RAA_Theory_deta0.45_1", "Draw_HFJetTruth_CrossSection2RAA_Theory_deta0.45_1",0.01,0.01,0.99,0.99);
24  Draw_HFJetTruth_CrossSection2RAA_Theory_deta0.45_1->Range(3.101266,-0.243038,52.46835,1.275949);
26  Draw_HFJetTruth_CrossSection2RAA_Theory_deta0.45_1->SetBorderMode(0);
27  Draw_HFJetTruth_CrossSection2RAA_Theory_deta0.45_1->SetBorderSize(2);
30  Draw_HFJetTruth_CrossSection2RAA_Theory_deta0.45_1->SetLeftMargin(0.16);
31  Draw_HFJetTruth_CrossSection2RAA_Theory_deta0.45_1->SetRightMargin(0.05);
32  Draw_HFJetTruth_CrossSection2RAA_Theory_deta0.45_1->SetTopMargin(0.05);
33  Draw_HFJetTruth_CrossSection2RAA_Theory_deta0.45_1->SetBottomMargin(0.16);
34  Draw_HFJetTruth_CrossSection2RAA_Theory_deta0.45_1->SetFrameBorderMode(0);
35  Draw_HFJetTruth_CrossSection2RAA_Theory_deta0.45_1->SetFrameBorderMode(0);
36 
37  TH1F *hframe__4 = new TH1F("hframe__4","",1000,11,50);
38  hframe__4->SetMinimum(0);
39  hframe__4->SetMaximum(1.2);
40  hframe__4->SetDirectory(0);
41  hframe__4->SetStats(0);
42  hframe__4->SetLineWidth(2);
43  hframe__4->SetMarkerStyle(20);
44  hframe__4->SetMarkerSize(1.2);
45  hframe__4->GetXaxis()->SetTitle("Transverse Momentum [GeV/#it{c}]");
46  hframe__4->GetXaxis()->SetLabelFont(42);
47  hframe__4->GetXaxis()->SetLabelSize(0.05);
48  hframe__4->GetXaxis()->SetTitleSize(0.05);
49  hframe__4->GetXaxis()->SetTitleOffset(1.4);
50  hframe__4->GetXaxis()->SetTitleFont(42);
51  hframe__4->GetYaxis()->SetTitle("#it{R}_{AA}");
52  hframe__4->GetYaxis()->SetLabelFont(42);
53  hframe__4->GetYaxis()->SetLabelSize(0.05);
54  hframe__4->GetYaxis()->SetTitleSize(0.05);
55  hframe__4->GetYaxis()->SetTitleOffset(1.4);
56  hframe__4->GetYaxis()->SetTitleFont(42);
57  hframe__4->GetZaxis()->SetLabelFont(42);
58  hframe__4->GetZaxis()->SetLabelSize(0.05);
59  hframe__4->GetZaxis()->SetTitleSize(0.05);
60  hframe__4->GetZaxis()->SetTitleFont(42);
61  hframe__4->Draw(" ");
62 
63  TGraph *graph = new TGraph(13);
64  graph->SetName("Graph0");
65  graph->SetTitle("Graph");
66  graph->SetFillColor(1);
67 
68  Int_t ci; // for color index setting
69  TColor *color; // for color definition with alpha
70  ci = TColor::GetColor("#006600");
71  graph->SetLineColor(ci);
72  graph->SetLineWidth(3);
73  graph->SetMarkerStyle(20);
74  graph->SetMarkerSize(1.2);
75  graph->SetPoint(0,10.130739,0.8087402);
76  graph->SetPoint(1,13.8755,0.7102165);
77  graph->SetPoint(2,17.915709,0.64113617);
78  graph->SetPoint(3,19.950817,0.62270004);
79  graph->SetPoint(4,21.838287,0.59506375);
80  graph->SetPoint(5,24.758118,0.5618901);
81  graph->SetPoint(6,28.149998,0.53331053);
82  graph->SetPoint(7,30.303171,0.5194738);
83  graph->SetPoint(8,35.701473,0.52399224);
84  graph->SetPoint(9,40.21508,0.54508865);
85  graph->SetPoint(10,49.182514,0.53758913);
86  graph->SetPoint(11,54.492188,0.5338267);
87  graph->SetPoint(12,59.890347,0.52914274);
88 
89  TH1F *Graph_Graph3 = new TH1F("Graph_Graph3","Graph",100,5.154778,64.86631);
90  Graph_Graph3->SetMinimum(0.4905472);
91  Graph_Graph3->SetMaximum(0.8376668);
92  Graph_Graph3->SetDirectory(0);
93  Graph_Graph3->SetStats(0);
94  Graph_Graph3->SetLineWidth(2);
95  Graph_Graph3->SetMarkerStyle(20);
96  Graph_Graph3->SetMarkerSize(1.2);
97  Graph_Graph3->GetXaxis()->SetLabelFont(42);
98  Graph_Graph3->GetXaxis()->SetLabelSize(0.05);
99  Graph_Graph3->GetXaxis()->SetTitleSize(0.05);
100  Graph_Graph3->GetXaxis()->SetTitleOffset(1.4);
101  Graph_Graph3->GetXaxis()->SetTitleFont(42);
102  Graph_Graph3->GetYaxis()->SetLabelFont(42);
103  Graph_Graph3->GetYaxis()->SetLabelSize(0.05);
104  Graph_Graph3->GetYaxis()->SetTitleSize(0.05);
105  Graph_Graph3->GetYaxis()->SetTitleOffset(1.4);
106  Graph_Graph3->GetYaxis()->SetTitleFont(42);
107  Graph_Graph3->GetZaxis()->SetLabelFont(42);
108  Graph_Graph3->GetZaxis()->SetLabelSize(0.05);
109  Graph_Graph3->GetZaxis()->SetTitleSize(0.05);
110  Graph_Graph3->GetZaxis()->SetTitleFont(42);
111  graph->SetHistogram(Graph_Graph3);
112 
113  graph->Draw("l");
114 
115  graph = new TGraph(13);
116  graph->SetName("Graph1");
117  graph->SetTitle("Graph");
118  graph->SetFillColor(1);
119 
120  ci = TColor::GetColor("#660000");
121  graph->SetLineColor(ci);
122  graph->SetLineWidth(3);
123  graph->SetMarkerStyle(20);
124  graph->SetMarkerSize(1.2);
125  graph->SetPoint(0,10.040924,0.72499925);
126  graph->SetPoint(1,11.750852,0.6623964);
127  graph->SetPoint(2,15.820038,0.56018674);
128  graph->SetPoint(3,18.946156,0.51412654);
129  graph->SetPoint(4,19.860464,0.50491005);
130  graph->SetPoint(5,21.010588,0.484647);
131  graph->SetPoint(6,24.343283,0.44410512);
132  graph->SetPoint(7,29.888279,0.39800778);
133  graph->SetPoint(8,35.876522,0.4006767);
134  graph->SetPoint(9,40.154125,0.42085648);
135  graph->SetPoint(10,47.941647,0.41521555);
136  graph->SetPoint(11,55.64066,0.40865576);
137  graph->SetPoint(12,59.91793,0.4076699);
138 
139  TH1F *Graph_Graph4 = new TH1F("Graph_Graph4","Graph",100,5.053223,64.90563);
140  Graph_Graph4->SetMinimum(0.3653086);
141  Graph_Graph4->SetMaximum(0.7576984);
142  Graph_Graph4->SetDirectory(0);
143  Graph_Graph4->SetStats(0);
144  Graph_Graph4->SetLineWidth(2);
145  Graph_Graph4->SetMarkerStyle(20);
146  Graph_Graph4->SetMarkerSize(1.2);
147  Graph_Graph4->GetXaxis()->SetLabelFont(42);
148  Graph_Graph4->GetXaxis()->SetLabelSize(0.05);
149  Graph_Graph4->GetXaxis()->SetTitleSize(0.05);
150  Graph_Graph4->GetXaxis()->SetTitleOffset(1.4);
151  Graph_Graph4->GetXaxis()->SetTitleFont(42);
152  Graph_Graph4->GetYaxis()->SetLabelFont(42);
153  Graph_Graph4->GetYaxis()->SetLabelSize(0.05);
154  Graph_Graph4->GetYaxis()->SetTitleSize(0.05);
155  Graph_Graph4->GetYaxis()->SetTitleOffset(1.4);
156  Graph_Graph4->GetYaxis()->SetTitleFont(42);
157  Graph_Graph4->GetZaxis()->SetLabelFont(42);
158  Graph_Graph4->GetZaxis()->SetLabelSize(0.05);
159  Graph_Graph4->GetZaxis()->SetTitleSize(0.05);
160  Graph_Graph4->GetZaxis()->SetTitleFont(42);
161  graph->SetHistogram(Graph_Graph4);
162 
163  graph->Draw("l");
164 
165  TGraphErrors *gre = new TGraphErrors(7);
166  gre->SetName("RAA_h_b_copy1957747793");
167  gre->SetTitle("Graph");
168  gre->SetFillColor(1);
169  gre->SetLineWidth(3);
170  gre->SetMarkerStyle(20);
171  gre->SetMarkerSize(2);
172  gre->SetPoint(0,17.5,0.6);
173  gre->SetPointError(0,0,0.004616941);
174  gre->SetPoint(1,22.5,0.6);
175  gre->SetPointError(1,0,0.01110137);
176  gre->SetPoint(2,27.5,0.6);
177  gre->SetPointError(2,0,0.0253643);
178  gre->SetPoint(3,32.5,0.6);
179  gre->SetPointError(3,0,0.05582747);
180  gre->SetPoint(4,37.5,0.6);
181  gre->SetPointError(4,0,0.1363338);
182  gre->SetPoint(5,42.5,0.6);
183  gre->SetPointError(5,0,0.3048516);
184  gre->SetPoint(6,47.5,0.6);
185  gre->SetPointError(6,0,0.5055392);
186 
187  TH1F *Graph_Graph_RAA_h_b_copy195774779334 = new TH1F("Graph_Graph_RAA_h_b_copy195774779334","Graph",100,14.5,50.5);
188  Graph_Graph_RAA_h_b_copy195774779334->SetMinimum(0);
189  Graph_Graph_RAA_h_b_copy195774779334->SetMaximum(1.206647);
190  Graph_Graph_RAA_h_b_copy195774779334->SetDirectory(0);
191  Graph_Graph_RAA_h_b_copy195774779334->SetStats(0);
192  Graph_Graph_RAA_h_b_copy195774779334->SetLineWidth(2);
193  Graph_Graph_RAA_h_b_copy195774779334->SetMarkerStyle(20);
194  Graph_Graph_RAA_h_b_copy195774779334->SetMarkerSize(1.2);
195  Graph_Graph_RAA_h_b_copy195774779334->GetXaxis()->SetLabelFont(42);
196  Graph_Graph_RAA_h_b_copy195774779334->GetXaxis()->SetLabelSize(0.05);
197  Graph_Graph_RAA_h_b_copy195774779334->GetXaxis()->SetTitleSize(0.05);
198  Graph_Graph_RAA_h_b_copy195774779334->GetXaxis()->SetTitleOffset(1.4);
199  Graph_Graph_RAA_h_b_copy195774779334->GetXaxis()->SetTitleFont(42);
200  Graph_Graph_RAA_h_b_copy195774779334->GetYaxis()->SetLabelFont(42);
201  Graph_Graph_RAA_h_b_copy195774779334->GetYaxis()->SetLabelSize(0.05);
202  Graph_Graph_RAA_h_b_copy195774779334->GetYaxis()->SetTitleSize(0.05);
203  Graph_Graph_RAA_h_b_copy195774779334->GetYaxis()->SetTitleOffset(1.4);
204  Graph_Graph_RAA_h_b_copy195774779334->GetYaxis()->SetTitleFont(42);
205  Graph_Graph_RAA_h_b_copy195774779334->GetZaxis()->SetLabelFont(42);
206  Graph_Graph_RAA_h_b_copy195774779334->GetZaxis()->SetLabelSize(0.05);
207  Graph_Graph_RAA_h_b_copy195774779334->GetZaxis()->SetTitleSize(0.05);
208  Graph_Graph_RAA_h_b_copy195774779334->GetZaxis()->SetTitleFont(42);
209  gre->SetHistogram(Graph_Graph_RAA_h_b_copy195774779334);
210 
211  gre->Draw("pe");
212 
213  TLegend *leg = new TLegend(0,0.76,0.85,0.93,NULL,"brNDC");
214  leg->SetBorderSize(0);
215  leg->SetLineColor(1);
216  leg->SetLineStyle(1);
217  leg->SetLineWidth(1);
218  leg->SetFillColor(0);
219  leg->SetFillStyle(0);
220  TLegendEntry *entry=leg->AddEntry("NULL","#it{#bf{sPHENIX }} Simulation","");
221  entry->SetLineColor(1);
222  entry->SetLineStyle(1);
223  entry->SetLineWidth(1);
224  entry->SetMarkerColor(1);
225  entry->SetMarkerStyle(21);
226  entry->SetMarkerSize(1);
227  entry->SetTextFont(42);
228  entry=leg->AddEntry("NULL","PYTHIA-8 #it{b}-jet, Anti-k_{T} R=0.4, |#eta|<0.45, CTEQ6L","");
229  entry->SetLineColor(1);
230  entry->SetLineStyle(1);
231  entry->SetLineWidth(1);
232  entry->SetMarkerColor(1);
233  entry->SetMarkerStyle(21);
234  entry->SetMarkerSize(1);
235  entry->SetTextFont(42);
236  entry=leg->AddEntry("NULL","#it{p}+#it{p}: 200 pb^{-1}, 60% Eff., 40% Pur.","");
237  entry->SetLineColor(1);
238  entry->SetLineStyle(1);
239  entry->SetLineWidth(1);
240  entry->SetMarkerColor(1);
241  entry->SetMarkerStyle(21);
242  entry->SetMarkerSize(1);
243  entry->SetTextFont(42);
244  entry=leg->AddEntry("NULL","Au+Au: 240B col., 40% Eff., 40% Pur.","");
245  entry->SetLineColor(1);
246  entry->SetLineStyle(1);
247  entry->SetLineWidth(1);
248  entry->SetMarkerColor(1);
249  entry->SetMarkerStyle(21);
250  entry->SetMarkerSize(1);
251  entry->SetTextFont(42);
252  leg->Draw();
253 
254  leg = new TLegend(0.17,0.7,0.88,0.77,NULL,"brNDC");
255  leg->SetBorderSize(0);
256  leg->SetLineColor(1);
257  leg->SetLineStyle(1);
258  leg->SetLineWidth(1);
259  leg->SetFillColor(0);
260  leg->SetFillStyle(1001);
261  entry=leg->AddEntry("RAA_h_b_copy1957747793","#it{b}-jet #it{R}_{AA}, Au+Au 0-10%C, #sqrt{s_{NN}}=200 GeV","pl");
262  entry->SetLineColor(1);
263  entry->SetLineStyle(1);
264  entry->SetLineWidth(3);
265  entry->SetMarkerColor(1);
266  entry->SetMarkerStyle(20);
267  entry->SetMarkerSize(2);
268  entry->SetTextFont(42);
269  leg->Draw();
270 
271  leg = new TLegend(0.2,0.2,0.85,0.37,NULL,"brNDC");
272  leg->SetBorderSize(0);
273  leg->SetLineColor(1);
274  leg->SetLineStyle(1);
275  leg->SetLineWidth(1);
276  leg->SetFillColor(0);
277  leg->SetFillStyle(1001);
278  entry=leg->AddEntry("NULL","#splitline{pQCD, Phys.Lett. B726 (2013) 251-256}{#sqrt{s_{NN}}=200 GeV, #it{b}-jet R=0.4}","h");
279  entry->SetLineColor(1);
280  entry->SetLineStyle(1);
281  entry->SetLineWidth(1);
282  entry->SetMarkerColor(1);
283  entry->SetMarkerStyle(21);
284  entry->SetMarkerSize(1);
285  entry->SetTextFont(42);
286  entry=leg->AddEntry("NULL","","");
287  entry->SetLineColor(1);
288  entry->SetLineStyle(1);
289  entry->SetLineWidth(1);
290  entry->SetMarkerColor(1);
291  entry->SetMarkerStyle(21);
292  entry->SetMarkerSize(1);
293  entry->SetTextFont(42);
294  entry=leg->AddEntry("Graph0","g^{med} = 2.0","l");
295 
296  ci = TColor::GetColor("#006600");
297  entry->SetLineColor(ci);
298  entry->SetLineStyle(1);
299  entry->SetLineWidth(3);
300  entry->SetMarkerColor(1);
301  entry->SetMarkerStyle(21);
302  entry->SetMarkerSize(1);
303  entry->SetTextFont(42);
304  entry=leg->AddEntry("Graph1","g^{med} = 2.2","l");
305 
306  ci = TColor::GetColor("#660000");
307  entry->SetLineColor(ci);
308  entry->SetLineStyle(1);
309  entry->SetLineWidth(3);
310  entry->SetMarkerColor(1);
311  entry->SetMarkerStyle(21);
312  entry->SetMarkerSize(1);
313  entry->SetTextFont(42);
314  leg->Draw();
320 }