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

fixed naming error

parent ef4e06db
No related branches found
No related tags found
1 merge request!24Resolve "pi0 resolution for ECal barrel"
......@@ -43,7 +43,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
std:string detector = "Barrel_emcal";
double resolutionTarget = 0.1;
eic::util::Test pion0_Energy_resolution{
eic::util::Test pi0_energy_resolution{
{{"name", fmt::format("{}_energy_resolution", test_tag)},
{"title", "Pion0 Energy resolution"},
{"description",
......@@ -184,9 +184,9 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
//Pass/Fail
if (res[2] <= resolutionTarget) {
pion0_energy_resolution.pass(res[2]);
pi0_energy_resolution.pass(res[2]);
} else {
pion0_energy_resolution.fail(res[2]);
pi0_energy_resolution.fail(res[2]);
}
//std::printf("Energy Resolution is %f\n", res[2]);
......@@ -210,7 +210,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
cdE_rel->SaveAs("results/emcal_barrel_pi0_dE_rel.png");
cdE_rel->SaveAs("results/emcal_barrel_pi0_dE_rel.pdf");
eic::util::write_test({pion0_energy_resolution}, fmt::format("{}_pions.json", detector));
eic::util::write_test({pi0_energy_resolution}, fmt::format("{}_pions.json", detector));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment