From 307f86439829daabbcc57f816e25a9b2274a7690 Mon Sep 17 00:00:00 2001 From: Marshall Scott <mbscott@anl.gov> Date: Thu, 17 Jun 2021 11:11:06 -0400 Subject: [PATCH] Adding two benchamrks within same benchmark, test --- .../emcal_barrel_pion_rejection_analysis.cxx | 29 ++++++++++++------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/benchmarks/barrel_ecal/scripts/emcal_barrel_pion_rejection_analysis.cxx b/benchmarks/barrel_ecal/scripts/emcal_barrel_pion_rejection_analysis.cxx index 90994f31..76cc4a6b 100644 --- a/benchmarks/barrel_ecal/scripts/emcal_barrel_pion_rejection_analysis.cxx +++ b/benchmarks/barrel_ecal/scripts/emcal_barrel_pion_rejection_analysis.cxx @@ -265,6 +265,13 @@ void emcal_barrel_pion_rejection_analysis( {"target", std::to_string(suppression * maxRate[0][2])}, {"value", std::to_string(rejRatios[0][2])} } + {{"name", fmt::format("{}_E{}_EtaBin{}", test_tag, (int)E[0], 3)}, + {"title", "Pion Rejection2"}, + {"description", fmt::format("Pion rejection with E = {}, and {}", (int)E[0], etaTitle[3])}, + {"quantity", "pi-/e-"}, + {"target", std::to_string(suppression * maxRate[0][3])}, + {"value", std::to_string(rejRatios[0][3])} + } }; eic::util::write_test({pion_rejection_E18_Eta2}, fmt::format("results/{}_pion_rej.json", detector)); /* @@ -274,8 +281,9 @@ void emcal_barrel_pion_rejection_analysis( {"title", "Pion Rejection2"}, {"description", fmt::format("Pion rejection with E = {}, and {}", (int)E[0], etaTitle[3])}, {"quantity", "pi-/e-"}, - {"target", suppression * maxRate[0][3]}, - {"value", rejRatios[0][3]}} + {"target", std::to_string(suppression * maxRate[0][3])}, + {"value", std::to_string(rejRatios[0][3])} + } }; eic::util::write_test({pion_rejection_E18_Eta3}, fmt::format("results/{}_pion_rej.json", detector)); @@ -285,8 +293,8 @@ void emcal_barrel_pion_rejection_analysis( {"title", "Pion Rejection"}, {"description", fmt::format("Pion rejection with E = {}, and {}", (int)E[1], etaTitle[2])}, {"quantity", "pi-/e-"}, - {"target", suppression * maxRate[1][2]}, - {"value", rejRatios[1][2]} + {"target", std::to_string(suppression * maxRate[1][2])}, + {"value", std::to_string(rejRatios[1][2])} } }; eic::util::write_test({pion_rejection_E10_Eta2}, fmt::format("results/{}_pion_rej.json", detector)); @@ -297,8 +305,8 @@ void emcal_barrel_pion_rejection_analysis( {"title", "Pion Rejection"}, {"description", fmt::format("Pion rejection with E = {}, and {}", (int)E[1], etaTitle[3])}, {"quantity", "pi-/e-"}, - {"target", suppression * maxRate[1][3]}, - {"value", rejRatios[1][3]} + {"target", std::to_string(suppression * maxRate[1][3])}, + {"value", std::to_string(rejRatios[1][3])} } }; eic::util::write_test({pion_rejection_E10_Eta3}, fmt::format("results/{}_pion_rej.json", detector)); @@ -309,8 +317,8 @@ void emcal_barrel_pion_rejection_analysis( {"title", "Pion Rejection"}, {"description", fmt::format("Pion rejection with E = {}, and {}", (int)E[2], etaTitle[2])}, {"quantity", "pi-/e-"}, - {"target", suppression * maxRate[2][2]}, - {"value", rejRatios[2][2]} + {"target", std::to_string(suppression * maxRate[2][2])}, + {"value", std::to_string(rejRatios[2][2])} } }; eic::util::write_test({pion_rejection_E10_Eta2}, fmt::format("results/{}_pion_rej.json", detector)); @@ -321,11 +329,10 @@ void emcal_barrel_pion_rejection_analysis( {"title", "Pion Rejection"}, {"description", fmt::format("Pion rejection with E = {}, and {}", (int)E[2], etaTitle[3])}, {"quantity", "pi-/e-"}, - {"target", suppression * maxRate[2][3]}, - {"value", rejRatios[2][3]} + {"target", std::to_string(suppression * maxRate[2][3])}, + {"value", std::to_string(rejRatios[2][3])} } }; eic::util::write_test({pion_rejection_E10_Eta3}, fmt::format("results/{}_pion_rej.json", detector)); - */ } -- GitLab