Skip to content
Snippets Groups Projects
Commit 307f8643 authored by Marshall Scott's avatar Marshall Scott
Browse files

Adding two benchamrks within same benchmark, test

parent a6af1007
Branches
Tags
No related merge requests found
This commit is part of merge request !49. Comments created here will be created in the context of that merge request.
...@@ -265,6 +265,13 @@ void emcal_barrel_pion_rejection_analysis( ...@@ -265,6 +265,13 @@ void emcal_barrel_pion_rejection_analysis(
{"target", std::to_string(suppression * maxRate[0][2])}, {"target", std::to_string(suppression * maxRate[0][2])},
{"value", std::to_string(rejRatios[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)); 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( ...@@ -274,8 +281,9 @@ void emcal_barrel_pion_rejection_analysis(
{"title", "Pion Rejection2"}, {"title", "Pion Rejection2"},
{"description", fmt::format("Pion rejection with E = {}, and {}", (int)E[0], etaTitle[3])}, {"description", fmt::format("Pion rejection with E = {}, and {}", (int)E[0], etaTitle[3])},
{"quantity", "pi-/e-"}, {"quantity", "pi-/e-"},
{"target", suppression * maxRate[0][3]}, {"target", std::to_string(suppression * maxRate[0][3])},
{"value", rejRatios[0][3]}} {"value", std::to_string(rejRatios[0][3])}
}
}; };
eic::util::write_test({pion_rejection_E18_Eta3}, fmt::format("results/{}_pion_rej.json", detector)); 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( ...@@ -285,8 +293,8 @@ void emcal_barrel_pion_rejection_analysis(
{"title", "Pion Rejection"}, {"title", "Pion Rejection"},
{"description", fmt::format("Pion rejection with E = {}, and {}", (int)E[1], etaTitle[2])}, {"description", fmt::format("Pion rejection with E = {}, and {}", (int)E[1], etaTitle[2])},
{"quantity", "pi-/e-"}, {"quantity", "pi-/e-"},
{"target", suppression * maxRate[1][2]}, {"target", std::to_string(suppression * maxRate[1][2])},
{"value", rejRatios[1][2]} {"value", std::to_string(rejRatios[1][2])}
} }
}; };
eic::util::write_test({pion_rejection_E10_Eta2}, fmt::format("results/{}_pion_rej.json", detector)); 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( ...@@ -297,8 +305,8 @@ void emcal_barrel_pion_rejection_analysis(
{"title", "Pion Rejection"}, {"title", "Pion Rejection"},
{"description", fmt::format("Pion rejection with E = {}, and {}", (int)E[1], etaTitle[3])}, {"description", fmt::format("Pion rejection with E = {}, and {}", (int)E[1], etaTitle[3])},
{"quantity", "pi-/e-"}, {"quantity", "pi-/e-"},
{"target", suppression * maxRate[1][3]}, {"target", std::to_string(suppression * maxRate[1][3])},
{"value", rejRatios[1][3]} {"value", std::to_string(rejRatios[1][3])}
} }
}; };
eic::util::write_test({pion_rejection_E10_Eta3}, fmt::format("results/{}_pion_rej.json", detector)); 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( ...@@ -309,8 +317,8 @@ void emcal_barrel_pion_rejection_analysis(
{"title", "Pion Rejection"}, {"title", "Pion Rejection"},
{"description", fmt::format("Pion rejection with E = {}, and {}", (int)E[2], etaTitle[2])}, {"description", fmt::format("Pion rejection with E = {}, and {}", (int)E[2], etaTitle[2])},
{"quantity", "pi-/e-"}, {"quantity", "pi-/e-"},
{"target", suppression * maxRate[2][2]}, {"target", std::to_string(suppression * maxRate[2][2])},
{"value", rejRatios[2][2]} {"value", std::to_string(rejRatios[2][2])}
} }
}; };
eic::util::write_test({pion_rejection_E10_Eta2}, fmt::format("results/{}_pion_rej.json", detector)); 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( ...@@ -321,11 +329,10 @@ void emcal_barrel_pion_rejection_analysis(
{"title", "Pion Rejection"}, {"title", "Pion Rejection"},
{"description", fmt::format("Pion rejection with E = {}, and {}", (int)E[2], etaTitle[3])}, {"description", fmt::format("Pion rejection with E = {}, and {}", (int)E[2], etaTitle[3])},
{"quantity", "pi-/e-"}, {"quantity", "pi-/e-"},
{"target", suppression * maxRate[2][3]}, {"target", std::to_string(suppression * maxRate[2][3])},
{"value", rejRatios[2][3]} {"value", std::to_string(rejRatios[2][3])}
} }
}; };
eic::util::write_test({pion_rejection_E10_Eta3}, fmt::format("results/{}_pion_rej.json", detector)); eic::util::write_test({pion_rejection_E10_Eta3}, fmt::format("results/{}_pion_rej.json", detector));
*/ */
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment