6 #include "sPhenixStyle.h"
7 #include "sPhenixStyle.C"
15 TString
infile =
"../macro/output.root";
16 TString outputfile =
"ConePlots.root";
19 TH1::SetDefaultSumw2();
20 TH2::SetDefaultSumw2();
23 TFile fin(infile.Data(),
"READ");
26 std::cout <<
"Error: could not open input file" << std::endl;
29 TTree *
tree = (TTree*)fin.Get(
"T");
32 std::cout <<
"Error: could not find tree" << std::endl;
41 float rho_area_sigma = 0;
43 float rho_mult_sigma = 0;
45 int cone_nclustered = 0;
46 float cone_pt_raw = 0;
47 float cone_pt_iter_sub = 0;
48 float randomized_cone_pt_raw = 0;
49 float randomized_cone_pt_iter_sub = 0;
50 float avoid_leading_cone_pt_raw = 0;
51 float avoid_leading_cone_pt_iter_sub = 0;
53 tree->SetBranchAddress(
"event", &
event);
54 tree->SetBranchAddress(
"seed", &seed);
55 tree->SetBranchAddress(
"centrality", ¢rality);
56 tree->SetBranchAddress(
"weight", &weight);
57 tree->SetBranchAddress(
"rho_area", &rho_area);
58 tree->SetBranchAddress(
"rho_area_sigma", &rho_area_sigma);
59 tree->SetBranchAddress(
"rho_mult", &rho_mult);
60 tree->SetBranchAddress(
"rho_mult_sigma", &rho_mult_sigma);
61 tree->SetBranchAddress(
"cone_area", &cone_area);
62 tree->SetBranchAddress(
"cone_nclustered", &cone_nclustered);
63 tree->SetBranchAddress(
"cone_pt_raw", &cone_pt_raw);
64 tree->SetBranchAddress(
"cone_pt_iter_sub", &cone_pt_iter_sub);
65 tree->SetBranchAddress(
"randomized_cone_pt_raw", &randomized_cone_pt_raw);
66 tree->SetBranchAddress(
"randomized_cone_pt_iter_sub", &randomized_cone_pt_iter_sub);
67 tree->SetBranchAddress(
"avoid_leading_cone_pt_raw", &avoid_leading_cone_pt_raw);
68 tree->SetBranchAddress(
"avoid_leading_cone_pt_iter_sub", &avoid_leading_cone_pt_iter_sub);
71 const int resp_N = 200;
72 double resp_bins[resp_N+1];
73 for(
int i = 0;
i < resp_N+1;
i++){
74 resp_bins[
i] = -15 + (65.0/resp_N *
i);
77 const double cent_bins[] = {0, 10, 30, 50, 80, 100};
78 const int cent_N =
sizeof(cent_bins)/
sizeof(
double) - 1;
81 TH2D * h2_reso_pt_area =
new TH2D(
"h2_reso_pt_area",
"", resp_N, resp_bins, cent_N, cent_bins);
82 TH1D * h1_reso_pt_area =
new TH1D(
"h1_reso_pt_area",
"", cent_N, cent_bins);
84 TH2D * h2_reso_pt_mult =
new TH2D(
"h2_reso_pt_mult",
"", resp_N, resp_bins, cent_N, cent_bins);
85 TH1D * h1_reso_pt_mult =
new TH1D(
"h1_reso_pt_mult",
"", cent_N, cent_bins);
87 TH2D * h2_reso_pt_iter_sub =
new TH2D(
"h2_reso_pt_iter_sub",
"", resp_N, resp_bins, cent_N, cent_bins);
88 TH1D * h1_reso_pt_iter_sub =
new TH1D(
"h1_reso_pt_iter_sub",
"", cent_N, cent_bins);
90 TH2D * h2_reso_pt_area_randomized =
new TH2D(
"h2_reso_pt_area_randomized",
"", resp_N, resp_bins, cent_N, cent_bins);
91 TH1D * h1_reso_pt_area_randomized =
new TH1D(
"h1_reso_pt_area_randomized",
"", cent_N, cent_bins);
93 TH2D * h2_reso_pt_mult_randomized =
new TH2D(
"h2_reso_pt_mult_randomized",
"", resp_N, resp_bins, cent_N, cent_bins);
94 TH1D * h1_reso_pt_mult_randomized =
new TH1D(
"h1_reso_pt_mult_randomized",
"", cent_N, cent_bins);
96 TH2D * h2_reso_pt_iter_sub_randomized =
new TH2D(
"h2_reso_pt_iter_sub_randomized",
"", resp_N, resp_bins, cent_N, cent_bins);
97 TH1D * h1_reso_pt_iter_sub_randomized =
new TH1D(
"h1_reso_pt_iter_sub_randomized",
"", cent_N, cent_bins);
100 TH2D * h2_reso_pt_area_avoidleading =
new TH2D(
"h2_reso_pt_area_avoidleading",
"", resp_N, resp_bins, cent_N, cent_bins);
101 TH1D * h1_reso_pt_area_avoidleading =
new TH1D(
"h1_reso_pt_area_avoidleading",
"", cent_N, cent_bins);
103 TH2D * h2_reso_pt_mult_avoidleading =
new TH2D(
"h2_reso_pt_mult_avoidleading",
"", resp_N, resp_bins, cent_N, cent_bins);
104 TH1D * h1_reso_pt_mult_avoidleading =
new TH1D(
"h1_reso_pt_mult_avoidleading",
"", cent_N, cent_bins);
106 TH2D * h2_reso_pt_iter_sub_avoidleading =
new TH2D(
"h2_reso_pt_iter_sub_avoidleading",
"", resp_N, resp_bins, cent_N, cent_bins);
107 TH1D * h1_reso_pt_iter_sub_avoidleading =
new TH1D(
"h1_reso_pt_iter_sub_avoidleading",
"", cent_N, cent_bins);
111 int nEntries = tree->GetEntries();
112 for (
int iEvent = 0; iEvent < nEntries; iEvent++){
114 tree->GetEntry(iEvent);
116 float pt_area = cone_pt_raw - rho_area * cone_area;
117 float pt_mult = cone_pt_raw - rho_mult * cone_nclustered;
118 float pt_iter_sub = cone_pt_iter_sub;
120 float pt_area_randomized = randomized_cone_pt_raw - rho_area * cone_area;
121 float pt_mult_randomized = randomized_cone_pt_raw - rho_mult * cone_nclustered;
122 float pt_iter_sub_randomized = randomized_cone_pt_iter_sub;
124 float pt_area_avoidleading = avoid_leading_cone_pt_raw - rho_area * cone_area;
125 float pt_mult_avoidleading = avoid_leading_cone_pt_raw - rho_mult * cone_nclustered;
126 float pt_iter_sub_avoidleading = avoid_leading_cone_pt_iter_sub;
128 h2_reso_pt_area->Fill(pt_area, centrality);
129 h2_reso_pt_mult->Fill(pt_mult, centrality);
130 h2_reso_pt_iter_sub->Fill(pt_iter_sub, centrality);
135 h2_reso_pt_area_randomized->Fill(pt_area_randomized, centrality);
136 h2_reso_pt_mult_randomized->Fill(pt_mult_randomized, centrality);
137 h2_reso_pt_iter_sub_randomized->Fill(pt_iter_sub_randomized, centrality);
142 h2_reso_pt_area_avoidleading->Fill(pt_area_avoidleading, centrality);
143 h2_reso_pt_mult_avoidleading->Fill(pt_mult_avoidleading, centrality);
144 h2_reso_pt_iter_sub_avoidleading->Fill(pt_iter_sub_avoidleading, centrality);
152 TFile *
fout =
new TFile(outputfile.Data(),
"RECREATE");
154 TCanvas *
c =
new TCanvas(
"c",
"c", 800, 600);
155 for(
int icent = 0; icent < cent_N; ++icent)
158 h2_reso_pt_area->GetYaxis()->SetRange(icent+1,icent+1);
159 TH1D * h_temp = (TH1D*)h2_reso_pt_area->ProjectionX();
160 h_temp->GetXaxis()->SetTitle(
"#delta p_{T} = p_{T}^{reco} - #rho A");
161 h_temp->GetYaxis()->SetTitle(
"Counts");
163 TF1 *func =
new TF1(
"func",
"gaus",-15, 60);
164 h_temp->Fit(func,
"Q",
"",-15, 60);
165 h_temp->Fit(func,
"Q",
"",func->GetParameter(1)-2*func->GetParameter(2),func->GetParameter(1)+2*func->GetParameter(2));
166 func->SetLineColor(kRed);
171 gPad->SetLeftMargin(0.15);
172 gPad->SetRightMargin(0.05);
173 gPad->SetBottomMargin(0.05);
174 gPad->SetTopMargin(0.05);
178 c->SaveAs(Form(
"plots/area_cent%.0f-%.0f.png", cent_bins[icent], cent_bins[icent+1]));
180 h1_reso_pt_area->SetBinContent(icent+1, func->GetParameter(2));
184 for(
int icent = 0; icent < cent_N; ++icent)
187 h2_reso_pt_mult->GetYaxis()->SetRange(icent+1,icent+1);
188 TH1D * h_temp = (TH1D*)h2_reso_pt_mult->ProjectionX();
189 h_temp->GetXaxis()->SetTitle(
"#delta p_{T} = p_{T}^{reco} - #rho M");
190 h_temp->GetYaxis()->SetTitle(
"Counts");
192 TF1 *func =
new TF1(
"func",
"gaus",-15, 60);
193 h_temp->Fit(func,
"Q",
"",-15, 60);
194 h_temp->Fit(func,
"Q",
"",func->GetParameter(1)-2*func->GetParameter(2),func->GetParameter(1)+2*func->GetParameter(2));
195 func->SetLineColor(kRed);
200 gPad->SetLeftMargin(0.15);
201 gPad->SetRightMargin(0.05);
202 gPad->SetBottomMargin(0.05);
203 gPad->SetTopMargin(0.05);
207 c->SaveAs(Form(
"plots/mult_cent%.0f-%.0f.png", cent_bins[icent], cent_bins[icent+1]));
209 h1_reso_pt_mult->SetBinContent(icent+1, func->GetParameter(2));
213 for(
int icent = 0; icent < cent_N; ++icent)
216 h2_reso_pt_iter_sub->GetYaxis()->SetRange(icent+1,icent+1);
217 TH1D * h_temp = (TH1D*)h2_reso_pt_iter_sub->ProjectionX();
218 h_temp->GetXaxis()->SetTitle(
"#delta p_{T} = p_{T}^{Iter}");
219 h_temp->GetYaxis()->SetTitle(
"Counts");
221 TF1 *func =
new TF1(
"func",
"gaus",-15, 60);
222 h_temp->Fit(func,
"Q",
"",-15, 60);
223 h_temp->Fit(func,
"Q",
"",func->GetParameter(1)-2*func->GetParameter(2),func->GetParameter(1)+2*func->GetParameter(2));
224 func->SetLineColor(kRed);
229 gPad->SetLeftMargin(0.15);
230 gPad->SetRightMargin(0.05);
231 gPad->SetBottomMargin(0.05);
232 gPad->SetTopMargin(0.05);
236 c->SaveAs(Form(
"plots/iter_sub_cent%.0f-%.0f.png", cent_bins[icent], cent_bins[icent+1]));
238 h1_reso_pt_iter_sub->SetBinContent(icent+1, func->GetParameter(2));
242 for(
int icent = 0; icent < cent_N; ++icent)
245 h2_reso_pt_area_randomized->GetYaxis()->SetRange(icent+1,icent+1);
246 TH1D * h_temp = (TH1D*)h2_reso_pt_area_randomized->ProjectionX();
247 h_temp->GetXaxis()->SetTitle(
"#delta p_{T} = p_{T}^{reco, randomized} - #rho A");
248 h_temp->GetYaxis()->SetTitle(
"Counts");
250 TF1 *func =
new TF1(
"func",
"gaus",-15, 60);
251 h_temp->Fit(func,
"Q",
"",-15, 60);
252 h_temp->Fit(func,
"Q",
"",func->GetParameter(1)-2*func->GetParameter(2),func->GetParameter(1)+2*func->GetParameter(2));
253 func->SetLineColor(kRed);
258 gPad->SetLeftMargin(0.15);
259 gPad->SetRightMargin(0.05);
260 gPad->SetBottomMargin(0.05);
261 gPad->SetTopMargin(0.05);
265 c->SaveAs(Form(
"plots/area_randomized_cent%.0f-%.0f.png", cent_bins[icent], cent_bins[icent+1]));
267 h1_reso_pt_area_randomized->SetBinContent(icent+1, func->GetParameter(2));
271 for(
int icent = 0; icent < cent_N; ++icent)
274 h2_reso_pt_mult_randomized->GetYaxis()->SetRange(icent+1,icent+1);
275 TH1D * h_temp = (TH1D*)h2_reso_pt_mult_randomized->ProjectionX();
276 h_temp->GetXaxis()->SetTitle(
"#delta p_{T} = p_{T}^{reco, randomized} - #rho M");
277 h_temp->GetYaxis()->SetTitle(
"Counts");
279 TF1 *func =
new TF1(
"func",
"gaus",-15, 60);
280 h_temp->Fit(func,
"Q",
"",-15, 60);
281 h_temp->Fit(func,
"Q",
"",func->GetParameter(1)-2*func->GetParameter(2),func->GetParameter(1)+2*func->GetParameter(2));
282 func->SetLineColor(kRed);
287 gPad->SetLeftMargin(0.15);
288 gPad->SetRightMargin(0.05);
289 gPad->SetBottomMargin(0.05);
290 gPad->SetTopMargin(0.05);
294 c->SaveAs(Form(
"plots/mult_randomized_cent%.0f-%.0f.png", cent_bins[icent], cent_bins[icent+1]));
296 h1_reso_pt_mult_randomized->SetBinContent(icent+1, func->GetParameter(2));
300 for(
int icent = 0; icent < cent_N; ++icent)
303 h2_reso_pt_iter_sub_randomized->GetYaxis()->SetRange(icent+1,icent+1);
304 TH1D * h_temp = (TH1D*)h2_reso_pt_iter_sub_randomized->ProjectionX();
305 h_temp->GetXaxis()->SetTitle(
"#delta p_{T} = p_{T}^{reco, randomized} - #rho M");
306 h_temp->GetYaxis()->SetTitle(
"Counts");
308 TF1 *func =
new TF1(
"func",
"gaus",-15, 60);
309 h_temp->Fit(func,
"Q",
"",-15, 60);
310 h_temp->Fit(func,
"Q",
"",func->GetParameter(1)-2*func->GetParameter(2),func->GetParameter(1)+2*func->GetParameter(2));
311 func->SetLineColor(kRed);
316 gPad->SetLeftMargin(0.15);
317 gPad->SetRightMargin(0.05);
318 gPad->SetBottomMargin(0.05);
319 gPad->SetTopMargin(0.05);
323 c->SaveAs(Form(
"plots/iter_sub_randomized_cent%.0f-%.0f.png", cent_bins[icent], cent_bins[icent+1]));
325 h1_reso_pt_iter_sub_randomized->SetBinContent(icent+1, func->GetParameter(2));
329 for(
int icent = 0; icent < cent_N; ++icent)
332 h2_reso_pt_area_avoidleading->GetYaxis()->SetRange(icent+1,icent+1);
333 TH1D * h_temp = (TH1D*)h2_reso_pt_area_avoidleading->ProjectionX();
334 h_temp->GetXaxis()->SetTitle(
"#delta p_{T} = p_{T}^{reco, avoidleading} - #rho A");
335 h_temp->GetYaxis()->SetTitle(
"Counts");
337 TF1 *func =
new TF1(
"func",
"gaus",-15, 60);
338 h_temp->Fit(func,
"Q",
"",-15, 60);
339 h_temp->Fit(func,
"Q",
"",func->GetParameter(1)-2*func->GetParameter(2),func->GetParameter(1)+2*func->GetParameter(2));
340 func->SetLineColor(kRed);
345 gPad->SetLeftMargin(0.15);
346 gPad->SetRightMargin(0.05);
347 gPad->SetBottomMargin(0.05);
348 gPad->SetTopMargin(0.05);
352 c->SaveAs(Form(
"plots/area_avoidleading_cent%.0f-%.0f.png", cent_bins[icent], cent_bins[icent+1]));
354 h1_reso_pt_area_avoidleading->SetBinContent(icent+1, func->GetParameter(2));
358 for(
int icent = 0; icent < cent_N; ++icent)
361 h2_reso_pt_mult_avoidleading->GetYaxis()->SetRange(icent+1,icent+1);
362 TH1D * h_temp = (TH1D*)h2_reso_pt_mult_avoidleading->ProjectionX();
363 h_temp->GetXaxis()->SetTitle(
"#delta p_{T} = p_{T}^{reco, avoidleading} - #rho M");
364 h_temp->GetYaxis()->SetTitle(
"Counts");
366 TF1 *func =
new TF1(
"func",
"gaus",-15, 60);
367 h_temp->Fit(func,
"Q",
"",-15, 60);
368 h_temp->Fit(func,
"Q",
"",func->GetParameter(1)-2*func->GetParameter(2),func->GetParameter(1)+2*func->GetParameter(2));
369 func->SetLineColor(kRed);
374 gPad->SetLeftMargin(0.15);
375 gPad->SetRightMargin(0.05);
376 gPad->SetBottomMargin(0.05);
377 gPad->SetTopMargin(0.05);
381 c->SaveAs(Form(
"plots/mult_avoidleading_cent%.0f-%.0f.png", cent_bins[icent], cent_bins[icent+1]));
383 h1_reso_pt_mult_avoidleading->SetBinContent(icent+1, func->GetParameter(2));
387 for(
int icent = 0; icent < cent_N; ++icent)
390 h2_reso_pt_iter_sub_avoidleading->GetYaxis()->SetRange(icent+1,icent+1);
391 TH1D * h_temp = (TH1D*)h2_reso_pt_iter_sub_avoidleading->ProjectionX();
392 h_temp->GetXaxis()->SetTitle(
"#delta p_{T} = p_{T}^{reco, avoidleading} - #rho M");
393 h_temp->GetYaxis()->SetTitle(
"Counts");
395 TF1 *func =
new TF1(
"func",
"gaus",-15, 60);
396 h_temp->Fit(func,
"Q",
"",-15, 60);
397 h_temp->Fit(func,
"Q",
"",func->GetParameter(1)-2*func->GetParameter(2),func->GetParameter(1)+2*func->GetParameter(2));
398 func->SetLineColor(kRed);
403 gPad->SetLeftMargin(0.15);
404 gPad->SetRightMargin(0.05);
405 gPad->SetBottomMargin(0.05);
406 gPad->SetTopMargin(0.05);
410 c->SaveAs(Form(
"plots/iter_sub_avoidleading_cent%.0f-%.0f.png", cent_bins[icent], cent_bins[icent+1]));
412 h1_reso_pt_iter_sub_avoidleading->SetBinContent(icent+1, func->GetParameter(2));
417 TCanvas *c1 =
new TCanvas(
"c1",
"c1");
420 TLegend *
leg =
new TLegend(.2,.7,.55,.9);
421 leg->SetFillStyle(0);
422 leg->AddEntry(
"",
"#it{#bf{sPHENIX}} Internal",
"");
423 leg->AddEntry(
"",
"Au+Au #sqrt{s_{NN}}=200 GeV",
"");
424 leg->AddEntry(
"",
"Random Cone #it{R} = 0.4, |#eta| < 0.4",
"");
425 leg->AddEntry(
"",
"p_{T, hard} = 30 GeV. Dijet sim.");
427 TLegend *cleg =
new TLegend(.6,.75,.9,.9);
428 cleg->SetFillStyle(0);
429 int colors[] = {1,2,4};
431 h1_reso_pt_area->SetLineColor(colors[0]);
432 h1_reso_pt_area->SetMarkerColor(colors[0]);
433 h1_reso_pt_area->Draw();
434 cleg->AddEntry(h1_reso_pt_area,
"Area",
"l");
435 h1_reso_pt_mult->SetLineColor(colors[1]);
436 h1_reso_pt_mult->SetMarkerColor(colors[1]);
437 h1_reso_pt_mult->Draw(
"SAME");
438 cleg->AddEntry(h1_reso_pt_mult,
"Mult",
"l");
439 h1_reso_pt_iter_sub->SetLineColor(colors[2]);
440 h1_reso_pt_iter_sub->SetMarkerColor(colors[2]);
441 h1_reso_pt_iter_sub->Draw(
"SAME");
442 cleg->AddEntry(h1_reso_pt_iter_sub,
"Iter",
"l");
445 c1->SaveAs(
"plots/cent_reso.png");
447 TCanvas *
c2 =
new TCanvas(
"c2",
"c2");
451 h1_reso_pt_area_randomized->SetLineColor(colors[0]);
452 h1_reso_pt_area_randomized->SetMarkerColor(colors[0]);
453 h1_reso_pt_area_randomized->Draw();
454 cleg->AddEntry(h1_reso_pt_area_randomized,
"Area",
"l");
455 h1_reso_pt_mult_randomized->SetLineColor(colors[1]);
456 h1_reso_pt_mult_randomized->SetMarkerColor(colors[1]);
457 h1_reso_pt_mult_randomized->Draw(
"SAME");
458 cleg->AddEntry(h1_reso_pt_mult_randomized,
"Multiplicity",
"l");
459 h1_reso_pt_iter_sub_randomized->SetLineColor(colors[2]);
460 h1_reso_pt_iter_sub_randomized->SetMarkerColor(colors[2]);
461 h1_reso_pt_iter_sub_randomized->Draw(
"SAME");
462 cleg->AddEntry(h1_reso_pt_iter_sub_randomized,
"Iterative Subtraction",
"l");
465 c2->SaveAs(
"plots/cent_reso_randomized.png");
467 TCanvas *c3 =
new TCanvas(
"c3",
"c3");
471 h1_reso_pt_area_avoidleading->SetLineColor(colors[0]);
472 h1_reso_pt_area_avoidleading->SetMarkerColor(colors[0]);
473 h1_reso_pt_area_avoidleading->Draw();
474 cleg->AddEntry(h1_reso_pt_area_avoidleading,
"Area",
"l");
475 h1_reso_pt_mult_avoidleading->SetLineColor(colors[1]);
476 h1_reso_pt_mult_avoidleading->SetMarkerColor(colors[1]);
477 h1_reso_pt_mult_avoidleading->Draw(
"SAME");
478 cleg->AddEntry(h1_reso_pt_mult_avoidleading,
"Multiplicity",
"l");
479 h1_reso_pt_iter_sub_avoidleading->SetLineColor(colors[2]);
480 h1_reso_pt_iter_sub_avoidleading->SetMarkerColor(colors[2]);
481 h1_reso_pt_iter_sub_avoidleading->Draw(
"SAME");
482 cleg->AddEntry(h1_reso_pt_iter_sub_avoidleading,
"Iterative Subtraction",
"l");
485 c3->SaveAs(
"plots/cent_reso_avoidleading.png");
487 TCanvas *c4 =
new TCanvas(
"c4",
"c4");
491 h1_reso_pt_area->SetLineColor(colors[0]);
492 h1_reso_pt_area->SetMarkerColor(colors[0]);
495 h1_reso_pt_area_randomized->SetLineColor(colors[1]);
496 h1_reso_pt_area_randomized->SetMarkerColor(colors[1]);
497 h1_reso_pt_area_randomized->Draw();
498 h1_reso_pt_area->Draw(
"SAME");
499 cleg->AddEntry(h1_reso_pt_area,
"RC",
"l");
500 cleg->AddEntry(h1_reso_pt_area_randomized,
"Randomized",
"l");
501 h1_reso_pt_area_avoidleading->SetLineColor(colors[2]);
502 h1_reso_pt_area_avoidleading->SetMarkerColor(colors[2]);
503 h1_reso_pt_area_avoidleading->Draw(
"SAME");
504 cleg->AddEntry(h1_reso_pt_area_avoidleading,
"Avoid Leading",
"l");
507 c4->SaveAs(
"plots/cent_reso_area.png");
509 TCanvas *c5 =
new TCanvas(
"c5",
"c5");
513 h1_reso_pt_mult->SetLineColor(colors[0]);
514 h1_reso_pt_mult->SetMarkerColor(colors[0]);
515 h1_reso_pt_mult_randomized->SetLineColor(colors[1]);
516 h1_reso_pt_mult_randomized->SetMarkerColor(colors[1]);
517 h1_reso_pt_mult_randomized->Draw();
518 h1_reso_pt_mult->Draw(
"SAME");
519 cleg->AddEntry(h1_reso_pt_mult,
"RC",
"l");
520 cleg->AddEntry(h1_reso_pt_mult_randomized,
"Randomized",
"l");
521 h1_reso_pt_mult_avoidleading->SetLineColor(colors[2]);
522 h1_reso_pt_mult_avoidleading->SetMarkerColor(colors[2]);
523 h1_reso_pt_mult_avoidleading->Draw(
"SAME");
524 cleg->AddEntry(h1_reso_pt_mult_avoidleading,
"Avoid Leading",
"l");
528 c5->SaveAs(
"plots/cent_reso_mult.png");
530 TCanvas *c6 =
new TCanvas(
"c6",
"c6");
534 h1_reso_pt_iter_sub->SetLineColor(colors[0]);
535 h1_reso_pt_iter_sub->SetMarkerColor(colors[0]);
537 h1_reso_pt_iter_sub_randomized->SetLineColor(colors[1]);
538 h1_reso_pt_iter_sub_randomized->SetMarkerColor(colors[1]);
539 h1_reso_pt_iter_sub_randomized->Draw();
540 h1_reso_pt_iter_sub->Draw(
"SAME");
541 cleg->AddEntry(h1_reso_pt_iter_sub,
"RC",
"l");
542 cleg->AddEntry(h1_reso_pt_iter_sub_randomized,
"Randomized",
"l");
543 h1_reso_pt_iter_sub_avoidleading->SetLineColor(colors[2]);
545 h1_reso_pt_iter_sub_avoidleading->SetMarkerColor(colors[2]);
546 h1_reso_pt_iter_sub_avoidleading->Draw(
"SAME");
547 cleg->AddEntry(h1_reso_pt_iter_sub_avoidleading,
"Avoid Leading",
"l");
550 c6->SaveAs(
"plots/cent_reso_iter_sub.png");
555 h2_reso_pt_area->Write();
556 h1_reso_pt_area->Write();
557 h2_reso_pt_mult->Write();
558 h1_reso_pt_mult->Write();
559 h2_reso_pt_iter_sub->Write();
560 h1_reso_pt_iter_sub->Write();
562 h2_reso_pt_area_randomized->Write();
563 h1_reso_pt_area_randomized->Write();
564 h2_reso_pt_mult_randomized->Write();
565 h1_reso_pt_mult_randomized->Write();
566 h2_reso_pt_iter_sub_randomized->Write();
567 h1_reso_pt_iter_sub_randomized->Write();
569 h2_reso_pt_area_avoidleading->Write();
570 h1_reso_pt_area_avoidleading->Write();
571 h2_reso_pt_mult_avoidleading->Write();
572 h1_reso_pt_mult_avoidleading->Write();
573 h2_reso_pt_iter_sub_avoidleading->Write();
574 h1_reso_pt_iter_sub_avoidleading->Write();