86 double initialIntegral) {
88 int xmax = histo->FindLastBinAbove(0.0);
89 int xmin = histo->FindFirstBinAbove(0.0);
92 std::cout <<
"Initial Integral: " << initialIntegral << std::endl;
93 std::cout <<
"Cut variable: " << cutvariable << std::endl;
94 std::cout <<
"Cut fraction: " << cutFraction << std::endl;
98 if (isCutGreaterThan) {
99 cutvalue = histo->GetXaxis()->GetBinLowEdge(xmin);
100 while (histo->Integral(xmin, xmax) > initialIntegral * (1.0 - cutFraction)) {
102 cutvalue = histo->GetXaxis()->GetBinLowEdge(xmin);
105 cutvalue = histo->GetXaxis()->GetBinUpEdge(xmax);
106 while (histo->Integral(xmin, xmax) > initialIntegral * (1.0 - cutFraction)) {
108 cutvalue = histo->GetXaxis()->GetBinUpEdge(xmax);
139 addHisto1d(
"impact_parameter_up_h",
"recon_z [mm]", 450, -20.0, 70.0);
140 addHisto1d(
"impact_parameter_down_h",
"recon_z [mm]", 450, -20.0, 70.0);
142 TH1* down_h = (TH1*)
histos1d[
m_name +
"_impact_parameter_down_h"];
144 for (
int i = 0; i < hh->GetNbinsX(); i++) {
145 TH1* projy = (TH1*)hh->ProjectionY((
"projy_bin_" + std::to_string(i + 1)).c_str(), i + 1, i + 1);
146 if (projy->GetEntries() < 1)
continue;
149 int start_bin = projy->FindBin(0.0);
150 int end_bin = projy->FindLastBinAbove(0.0);
151 double refIntegral = projy->Integral(start_bin, end_bin);
152 int cutz0_bin = start_bin;
153 double testIntegral = refIntegral;
154 while (testIntegral > (1.0 - alpha) * refIntegral && cutz0_bin < end_bin - 1) {
155 cutz0_bin = cutz0_bin + 1;
156 testIntegral = projy->Integral(cutz0_bin, end_bin);
159 double cutz0_up = projy->GetXaxis()->GetBinLowEdge(cutz0_bin);
160 for (
int j = 0; j < (int)refIntegral; j++) {
161 up_h->Fill(hh->GetXaxis()->GetBinCenter(i + 1), cutz0_up / refIntegral);
165 end_bin = projy->FindFirstBinAbove(0.0);
166 start_bin = projy->FindBin(0.0);
167 refIntegral = projy->Integral(end_bin, start_bin);
168 cutz0_bin = start_bin;
169 testIntegral = refIntegral;
170 while (testIntegral > (1.0 - alpha) * refIntegral && cutz0_bin > end_bin + 1) {
171 cutz0_bin = cutz0_bin - 1;
172 testIntegral = projy->Integral(end_bin, cutz0_bin);
175 double cutz0_down = projy->GetXaxis()->GetBinUpEdge(cutz0_bin);
176 for (
int j = 0; j < (int)refIntegral; j++) {
177 down_h->Fill(hh->GetXaxis()->GetBinCenter(i + 1), cutz0_down / refIntegral);
181 TF1* fitFunc =
new TF1(
"linear_fit",
"[0]*(x-[1])", 5.0, 70.0);
182 TFitResultPtr fitResult = (TFitResultPtr)up_h->Fit(
"linear_fit",
"QS",
"", 5.0, 70.0);
184 double m_p = fitResult->GetParams()[0];
185 double a_p = fitResult->GetParams()[1];
187 fitResult = (TFitResultPtr)down_h->Fit(
"linear_fit",
"QS",
"", 5.0, 70.0);
189 double m_d = fitResult->GetParams()[0];
190 double a_d = fitResult->GetParams()[1];
195 while (std::abs((m_p * (x - a_p) - (m_d * (x - a_d)))) < diff) {
197 diff = std::abs((m_p * (x - a_p)) - (m_d * (x - a_d)));
200 double beta = .5 * ((m_p * (x - a_p)) + (m_p * (x - a_d)));
201 std::vector<double> params{m_p, a_p, m_d, a_d, beta, x};
419 std::string histoname =
m_name +
"_" + histogramName +
"_h";
422 if (
histos1d[histoname]->GetEntries() < 1) {
423 std::cout <<
"[ZBiHistos]::WARNING: Background Model is NULL: " << histogramName
424 <<
" distribution is empty and could not be fit!" << std::endl;
427 double originalXmin =
histos1d[histoname]->GetXaxis()->GetXmin();
428 double originalXmax =
histos1d[histoname]->GetXaxis()->GetXmax();
431 int lastbin =
histos1d[histoname]->FindLastBinAbove(0.0);
432 if (
histos1d[histoname]->Integral() < start_nevents)
433 start_nevents =
histos1d[histoname]->GetBinContent(
histos1d[histoname]->GetMaximumBin());
434 int firstbin = lastbin - 1;
435 double test_integral = 0.0;
436 while (test_integral < start_nevents &&
histos1d[histoname]->GetBinLowEdge(firstbin) > 0.0) {
437 test_integral =
histos1d[histoname]->Integral(firstbin, lastbin);
438 firstbin = firstbin - 1;
441 double xmin =
histos1d[histoname]->GetBinLowEdge(firstbin);
442 double xmax =
histos1d[histoname]->GetBinLowEdge(lastbin + 1);
443 histos1d[histoname]->GetXaxis()->SetRangeUser(xmin, xmax);
446 double best_seed_chi2 = 9999999.9;
450 TF1* fitFunc_seed =
new TF1(
"fitFunc_seed",
"[0]*exp([1]*x)", xmin, xmax);
452 TFitResultPtr fitResult = (TFitResultPtr)
histos1d[histoname]->Fit(fitFunc_seed,
"QSIM",
"", xmin, xmax);
453 seed_0 = fitResult->Parameter(0);
454 seed_1 = fitResult->Parameter(1);
455 if (fitResult->Ndf() > 0) {
456 best_seed_chi2 = fitResult->Chi2() / fitResult->Ndf();
459 TRandom3* ran =
new TRandom3();
462 best_seed_chi2 = 999999.9;
463 for (
int i = 0; i < 50; i++) {
464 fitFunc_seed->SetParameters(std::abs(ran->Gaus((
double)start_nevents, 3.0)),
465 -std::abs(ran->Uniform(0.01, 1.0)));
466 fitResult = (TFitResultPtr)
histos1d[histoname]->Fit(fitFunc_seed,
"QSIM",
"", xmin, xmax);
468 if (fitResult->Ndf() <= 0)
continue;
470 if (fitResult->Chi2() / fitResult->Ndf() < best_seed_chi2) {
471 if (fitResult->Parameter(0) < 1000.0)
continue;
472 best_seed_chi2 = fitResult->Chi2() / fitResult->Ndf();
473 seed_0 = fitResult->Parameter(0);
474 seed_1 = fitResult->Parameter(1);
478 double best_chi2 = 99999.9;
483 TF1* fitFunc =
new TF1(
"fitFunc",
" (x<[2])*([0]*exp([1]*x)) + (x>=[2])*(-[3]*x)", xmin, xmax);
484 fitFunc->FixParameter(0, seed_0);
485 fitFunc->FixParameter(1, seed_1);
486 for (
int i = 0; i < 1000; i++) {
487 fitFunc->FixParameter(2, (
double)i / 10.0);
492 fitFunc_seed->FixParameter(0, seed_0);
493 fitFunc_seed->FixParameter(1, seed_1);
495 fitFunc_seed->Eval(
histos1d[histoname]->GetBinCenter(
histos1d[histoname]->FindLastBinAbove(0.0)));
499 fitResult = (TFitResultPtr)
histos1d[histoname]->Fit(fitFunc,
"QSIM",
"", xmin, xmax);
501 if (fitResult->Ndf() <= 0)
continue;
505 if (fitResult->Chi2() / fitResult->Ndf() < best_chi2) {
506 best_chi2 = fitResult->Chi2() / fitResult->Ndf();
507 param_2 = fitResult->Parameter(2);
508 best_seed_3 = seed_3;
515 fitFunc->FixParameter(0, seed_0);
516 fitFunc->FixParameter(1, seed_1);
517 fitFunc->FixParameter(2, param_2);
518 fitFunc->FixParameter(3, best_seed_3);
520 fitResult = (TFitResultPtr)
histos1d[histoname]->Fit(fitFunc,
"QSIM",
"", xmin, xmax);
524 histos1d[histoname]->GetXaxis()->SetRangeUser(originalXmin, originalXmax);
532 std::string histoname =
m_name +
"_" + histogramName +
"_h";
535 if (
histos1d[histoname]->GetEntries() < 1) {
536 std::cout <<
"[ZBiHistos]::WARNING: Background Model is NULL: " << histogramName
537 <<
" distribution is empty and could not be fit!" << std::endl;
540 double originalXmin =
histos1d[histoname]->GetXaxis()->GetXmin();
541 double originalXmax =
histos1d[histoname]->GetXaxis()->GetXmax();
544 int lastbin =
histos1d[histoname]->FindLastBinAbove(0.0);
545 if (
histos1d[histoname]->Integral() < start_nevents)
546 start_nevents =
histos1d[histoname]->GetBinContent(
histos1d[histoname]->GetMaximumBin());
547 int firstbin = lastbin - 1;
548 double test_integral = 0.0;
549 while (test_integral < start_nevents &&
histos1d[histoname]->GetBinLowEdge(firstbin) > 0.0) {
550 test_integral =
histos1d[histoname]->Integral(firstbin, lastbin);
551 firstbin = firstbin - 1;
554 double xmin =
histos1d[histoname]->GetBinLowEdge(firstbin);
555 double xmax =
histos1d[histoname]->GetBinLowEdge(lastbin + 1);
556 histos1d[histoname]->GetXaxis()->SetRangeUser(xmin, xmax);
559 double best_seed_chi2 = 9999999.9;
563 TF1* fitFunc =
new TF1(
"fitFunc",
"[0]*exp([1]*x)", xmin, xmax);
564 TFitResultPtr fitResult = (TFitResultPtr)
histos1d[histoname]->Fit(fitFunc,
"QSIM",
"", xmin, xmax);
565 seed_0 = fitResult->Parameter(0);
566 seed_1 = fitResult->Parameter(1);
567 if (fitResult->Ndf() > 0) {
568 best_seed_chi2 = fitResult->Chi2() / fitResult->Ndf();
571 TRandom3* ran =
new TRandom3();
575 for (
int i = 0; i < 30; i++) {
576 fitFunc->SetParameters(std::abs(ran->Gaus((
double)start_nevents, 3.0)), -std::abs(ran->Uniform(0.01, 1.0)));
577 fitResult = (TFitResultPtr)
histos1d[histoname]->Fit(fitFunc,
"QSIM",
"", xmin, xmax);
579 if (fitResult->Ndf() <= 0)
continue;
580 if (fitFunc->GetProb() < 0.001)
continue;
582 if (fitResult->Chi2() / fitResult->Ndf() < best_seed_chi2) {
583 if (fitResult->Parameter(0) < 1000.0)
continue;
584 best_seed_chi2 = fitResult->Chi2() / fitResult->Ndf();
585 seed_0 = fitResult->Parameter(0);
586 seed_1 = fitResult->Parameter(1);
590 double param_0 = seed_0;
591 double param_1 = seed_1;
592 for (
int i = 0; i < 30; i++) {
593 fitFunc->SetParameters(ran->Gaus(seed_0, 1.0), -std::abs(ran->Gaus(seed_1, 1.0)));
594 fitResult = (TFitResultPtr)
histos1d[histoname]->Fit(fitFunc,
"QSIM",
"", xmin, xmax);
595 if (fitResult->Ndf() <= 0)
continue;
596 if (fitFunc->GetProb() < 0.001)
continue;
598 if (fitResult->Chi2() / fitResult->Ndf() < best_seed_chi2) {
599 if (fitResult->Parameter(0) < 1000.0)
continue;
600 best_seed_chi2 = fitResult->Chi2() / fitResult->Ndf();
601 param_0 = fitResult->Parameter(0);
602 param_1 = fitResult->Parameter(1);
606 fitFunc->FixParameter(0, param_0);
607 fitFunc->FixParameter(1, param_1);
608 fitResult = (TFitResultPtr)
histos1d[histoname]->Fit(fitFunc,
"QSIM",
"", xmin, xmax);
612 histos1d[histoname]->GetXaxis()->SetRangeUser(originalXmin, originalXmax);
620 std::string histoname =
m_name +
"_" + histogramName +
"_h";
623 if (
histos1d[histoname]->GetEntries() < 1) {
624 std::cout <<
"[ZBiHistos]::WARNING: Background Model is NULL: " << histogramName
625 <<
" distribution is empty and could not be fit!" << std::endl;
628 double originalXmin =
histos1d[histoname]->GetXaxis()->GetXmin();
629 double originalXmax =
histos1d[histoname]->GetXaxis()->GetXmax();
632 int lastbin =
histos1d[histoname]->FindLastBinAbove(0.0);
633 if (
histos1d[histoname]->Integral() < start_nevents)
634 start_nevents =
histos1d[histoname]->GetBinContent(
histos1d[histoname]->GetMaximumBin());
635 int firstbin = lastbin - 1;
636 double test_integral = 0.0;
637 while (test_integral < start_nevents &&
histos1d[histoname]->GetBinLowEdge(firstbin) > 0.0) {
638 test_integral =
histos1d[histoname]->Integral(firstbin, lastbin);
639 firstbin = firstbin - 1;
642 double xmin =
histos1d[histoname]->GetBinLowEdge(firstbin);
643 double xmax =
histos1d[histoname]->GetBinLowEdge(lastbin + 1);
644 histos1d[histoname]->GetXaxis()->SetRangeUser(xmin, xmax);
647 double best_seed_chi2 = 9999999.9;
651 TF1* fitFunc_seed =
new TF1(
"fitFunc_seed",
"[0]*exp([1]*x)", xmin, xmax);
653 TFitResultPtr fitResult = (TFitResultPtr)
histos1d[histoname]->Fit(fitFunc_seed,
"QSIM",
"", xmin, xmax);
654 seed_0 = fitResult->Parameter(0);
655 seed_1 = fitResult->Parameter(1);
656 if (fitResult->Ndf() > 0 && fitFunc_seed->GetProb() > 0.001) {
657 best_seed_chi2 = fitResult->Chi2() / fitResult->Ndf();
660 TRandom3* ran =
new TRandom3();
664 for (
int i = 0; i < 30; i++) {
665 fitFunc_seed->SetParameters(std::abs(ran->Gaus((
double)start_nevents, 3.0)),
666 -std::abs(ran->Uniform(0.01, 1.0)));
667 fitResult = (TFitResultPtr)
histos1d[histoname]->Fit(fitFunc_seed,
"QSIM",
"", xmin, xmax);
669 if (fitResult->Ndf() <= 0)
continue;
670 if (fitFunc_seed->GetProb() < 0.001)
continue;
672 if (fitResult->Chi2() / fitResult->Ndf() < best_seed_chi2) {
673 if (fitResult->Parameter(0) < 1000.0)
continue;
674 best_seed_chi2 = fitResult->Chi2() / fitResult->Ndf();
675 seed_0 = fitResult->Parameter(0);
676 seed_1 = fitResult->Parameter(1);
680 double best_chi2 = 99999.9;
682 TF1* fitFunc =
new TF1(
"fitFunc",
" (x<[2])*([0]*exp([1]*x)) + (x>=[2])*([0]*exp([1]*[2]))", xmin, xmax);
683 fitFunc->FixParameter(0, seed_0);
684 fitFunc->FixParameter(1, seed_1);
685 for (
int i = 0; i < 1000; i++) {
686 fitFunc->FixParameter(2, (
double)i / 10.0);
687 fitResult = (TFitResultPtr)
histos1d[histoname]->Fit(fitFunc,
"QSIM",
"", xmin, xmax);
689 if (fitResult->Ndf() <= 0)
continue;
690 if (fitFunc->GetProb() < 0.001)
continue;
692 if (fitResult->Chi2() / fitResult->Ndf() < best_chi2) {
693 best_chi2 = fitResult->Chi2() / fitResult->Ndf();
694 param_2 = fitResult->Parameter(2);
700 fitFunc->FixParameter(0, seed_0);
701 fitFunc->FixParameter(1, seed_1);
702 fitFunc->FixParameter(2, param_2);
703 fitResult = (TFitResultPtr)
histos1d[histoname]->Fit(fitFunc,
"QSIM",
"", xmin, xmax);
707 histos1d[histoname]->GetXaxis()->SetRangeUser(originalXmin, originalXmax);
1047 TF1* fitFunc =
new TF1(
1049 "[0]* exp( (x<=([1]+[3]))*(-0.5*((x-[1])^2)/([2]^2)) + (x>=[1]+[3])*(-0.5*([3]^2/[2]^2)-(x-[1]-[3])/[4]) )",
1052 std::string histoname =
m_name +
"_tritrig_zVtx_" + cutname +
"_h";
1053 if (
histos1d[histoname]->GetEntries() < 1) {
1054 std::cout <<
"WARNING: Background Model is NULL: " << cutname
1055 <<
" tritrig zVtx distribution was empty and could not be fit!" << std::endl;
1059 TFitResultPtr gausResult = (TFitResultPtr)
histos1d[histoname]->Fit(
"gaus",
"QS");
1060 double gaus0 = gausResult->GetParams()[0];
1061 double gaus1 = gausResult->GetParams()[1];
1062 double gaus2 = gausResult->GetParams()[2];
1064 gausResult =
histos1d[histoname]->Fit(
"gaus",
"QS",
"", gaus1 - 2.5 * gaus2, gaus1 + 10.0 * gaus2);
1065 gaus0 = gausResult->GetParams()[0];
1066 gaus1 = gausResult->GetParams()[1];
1067 gaus2 = gausResult->GetParams()[2];
1068 double xmin = gaus1 - 2.5 * gaus2;
1069 double xmax =
histos1d[histoname]->GetBinCenter(
histos1d[histoname]->FindLastBinAbove(0.0) + 1);
1073 double tailZ = gaus1 + 3.0 * gaus2;
1074 double tail_l = 50.0;
1075 TRandom3* ran =
new TRandom3();
1078 double best_chi2 = 9999999.9;
1081 double best_gaus0, best_gaus1, best_gaus2;
1086 for (
int i = 10; i < iteration; i = i + 2) {
1087 tailZ = gaus1 + (double)(iteration / 10.0) * gaus2;
1088 fitFunc->SetParameters(gaus0, gaus1, gaus2, tailZ, tail_l);
1089 TFitResultPtr fitResult = (TFitResultPtr)
histos1d[histoname]->Fit(fitFunc,
"QLSIM",
"", xmin, xmax);
1090 if (fitResult->Ndf() <= 0)
continue;
1091 if (fitResult->Chi2() / fitResult->Ndf() < best_chi2) {
1092 best_chi2 = fitResult->Chi2() / fitResult->Ndf();
1093 best_gaus0 = fitResult->Parameter(0);
1094 best_gaus1 = fitResult->Parameter(1);
1095 best_gaus2 = fitResult->Parameter(2);
1096 best_tailZ = fitResult->Parameter(3);
1097 best_tail_l = fitResult->Parameter(4);
1098 tail_l = fitResult->Parameter(4);
1102 fitFunc->SetParameters(best_gaus0, best_gaus1, best_gaus2, best_tailZ, best_tail_l);
1103 TFitResultPtr fitResult = (TFitResultPtr)
histos1d[histoname]->Fit(fitFunc,
"LSIM",
"", xmin, xmax);
1105 std::cout <<
"Finished fitting ztail" << std::endl;
1112 TF1* fitFunc =
new TF1(
1114 "[0]* exp( (x<=([1]+[3]))*(-0.5*((x-[1])^2)/([2]^2)) + (x>=[1]+[3])*(-0.5*([3]^2/[2]^2)-(x-[1]-[3])/[4]) )",
1117 std::string histoname =
m_name +
"_tritrig_zVtx_" + cutname +
"_h";
1118 if (
histos1d[histoname]->GetEntries() < 1)
return -4.3;
1120 TFitResultPtr gausResult = (TFitResultPtr)
histos1d[histoname]->Fit(
"gaus",
"QS");
1121 double gaus0 = gausResult->GetParams()[0];
1122 double gaus1 = gausResult->GetParams()[1];
1123 double gaus2 = gausResult->GetParams()[2];
1124 gausResult =
histos1d[histoname]->Fit(
"gaus",
"QS",
"", gaus1 - 3.0 * gaus2, gaus1 + 10.0 * gaus2);
1125 gaus0 = gausResult->GetParams()[0];
1126 gaus1 = gausResult->GetParams()[1];
1127 gaus2 = gausResult->GetParams()[2];
1128 double xmin = gaus1 - 2.5 * gaus2;
1129 double xmax =
histos1d[histoname]->GetBinCenter(
histos1d[histoname]->FindLastBinAbove(0.0) + 1);
1133 double tailZ = gaus1 + 3.0 * gaus2;
1134 double tail_l = 50.0;
1135 TRandom3* ran =
new TRandom3();
1138 double best_chi2 = 99999.9;
1141 double best_gaus0, best_gaus1, best_gaus2;
1144 for (
int i = 10; i < iteration; i = i + 2) {
1146 tailZ = gaus1 + (double)(iteration / 10.0) * gaus2;
1147 fitFunc->SetParameters(gaus0, gaus1, gaus2, tailZ, tail_l);
1148 TFitResultPtr fitResult = (TFitResultPtr)
histos1d[histoname]->Fit(fitFunc,
"LSIM",
"", xmin, xmax);
1149 if (fitResult->Ndf() <= 0)
continue;
1150 if (fitResult->Chi2() < best_chi2) {
1151 best_chi2 = fitResult->Chi2() / fitResult->Ndf();
1152 best_gaus0 = fitResult->Parameter(0);
1153 best_gaus1 = fitResult->Parameter(1);
1154 best_gaus2 = fitResult->Parameter(2);
1155 best_tailZ = fitResult->Parameter(3);
1156 best_tail_l = fitResult->Parameter(4);
1160 fitFunc->SetParameters(best_gaus0, best_gaus1, best_gaus2, best_tailZ, best_tail_l);
1161 TFitResultPtr fitResult = (TFitResultPtr)
histos1d[histoname]->Fit(fitFunc,
"LSIM",
"", xmin, xmax);
1164 double testIntegral = fitFunc->Integral(zcut, 100.0);
1165 while (testIntegral > max_tail_events) {
1167 testIntegral = fitFunc->Integral(zcut, 100.0);
1175 TF1* fitFunc =
new TF1(
1177 "[0]*exp( (((x-[1])/[2])<[3])*(-0.5*(x-[1])^2/[2]^2) + (((x-[1])/[2])>=[3])*(0.5*[3]^2-[3]*(x-[1])/[2]))",
1180 std::string histoname =
m_name +
"_" + zVtxHistoname;
1181 if (
histos1d[histoname]->GetEntries() < 1)
return -4.3;
1182 TFitResultPtr gausResult = (TFitResultPtr)
histos1d[histoname]->Fit(
"gaus",
"QS");
1183 double gaus1 = gausResult->GetParams()[1];
1184 double gaus2 = gausResult->GetParams()[2];
1185 gausResult =
histos1d[histoname]->Fit(
"gaus",
"QS",
"", gaus1 - 3.0 * gaus2, gaus1 + 10.0 * gaus2);
1186 gaus1 = gausResult->GetParams()[1];
1187 gaus2 = gausResult->GetParams()[2];
1188 double tailZ = gaus1 + 3.0 * gaus2;
1190 fitFunc->SetParameters(gausResult->GetParams()[0], gaus1, gaus2, 3.0);
1191 TFitResultPtr fitResult =
1192 (TFitResultPtr)
histos1d[histoname]->Fit(fitFunc,
"LSIM",
"", gaus1 - 2.0 * gaus2, gaus1 + 10.0 * gaus2);
1195 double testIntegral = fitFunc->Integral(zcut, 90.0);
1196 while (testIntegral > max_tail_events) {
1198 testIntegral = fitFunc->Integral(zcut, 90.0);
1230 TDirectory* dir{
nullptr};
1231 std::cout << folder.c_str() << std::endl;
1232 if (!folder.empty()) {
1233 std::cout <<
"making dir " << folder.c_str() << std::endl;
1234 dir = outF->mkdir(folder.c_str(),
"",
true);
1239 std::cout << it->first <<
" Null ptr in saving.." << std::endl;
1242 std::cout <<
"writing " << it->first << std::endl;
1243 it->second->Write();
1244 std::cout <<
"Finished writing " << it->first << std::endl;
1248 std::cout << it->first <<
" Null ptr in saving.." << std::endl;
1251 it->second->Write();
1266 TGraphErrors* graph =
new TGraphErrors();
1267 graph->SetName(name.c_str());
1268 if (xlabel.empty()) {
1269 if (name.find(
"vtx_proj_sig") != std::string::npos) {
1270 xlabel =
"N_{#sigma_{xy}}";
1271 }
else if (name.find(
"iso_significance") != std::string::npos) {
1273 }
else if (name.find(
"z0") != std::string::npos || name.find(
"y0") != std::string::npos) {
1274 xlabel =
"iteration";
1276 xlabel =
"cut value";
1279 graph->SetTitle((
";" + xlabel +
";" + ylabel).c_str());
1280 graph->SetMarkerStyle(8);
1281 graph->SetMarkerSize(0.5);
1282 graph->SetMarkerColor(kGreen + 2);