From ef4e06dbe29dc0b397e36042092733c8a63108d7 Mon Sep 17 00:00:00 2001
From: Marshall Scott <mbscott@anl.gov>
Date: Fri, 30 Apr 2021 10:18:46 -0400
Subject: [PATCH] testing tests
---
.../barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx b/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx
index 75b8bea3..148bbc04 100644
--- a/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx
+++ b/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx
@@ -182,13 +182,12 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
double* res = hdE_rel->GetFunction("gaus")->GetParameters();
//Pass/Fail
- /*
+
if (res[2] <= resolutionTarget) {
pion0_energy_resolution.pass(res[2]);
} else {
pion0_energy_resolution.fail(res[2]);
}
- */
//std::printf("Energy Resolution is %f\n", res[2]);
//Energy Resolution Histogram Plotting
@@ -211,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({pion0_energy_resolution}, fmt::format("{}_pions.json", detector));
}
--
GitLab