From 71af800e21523873f78cb8b70d15509ccdd0cf8d Mon Sep 17 00:00:00 2001
From: Marshall Scott <mbscott@anl.gov>
Date: Mon, 26 Apr 2021 15:36:15 -0400
Subject: [PATCH] Checking if benchmark testing is the issue

---
 .../barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx   | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx b/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx
index bd7b15be..d4ada0f7 100644
--- a/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx
+++ b/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx
@@ -41,6 +41,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
   //TODO: Change test_tag to something else
   std:string detector = "Barrel_emcal";
   double resolutionTarget = 0.1;
+  /*
   eic::util::Test pion0_Energy_resolution{
       {{"name", fmt::format("{}_energy_resolution", test_tag)},
        {"title", "Pion0 Energy resolution"},
@@ -48,7 +49,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
         fmt::format("Pion0 energy resolution with {}, estimated using a Gaussian fit.", detector)},
        {"quantity", "resolution (in %)"},
        {"target", std::to_string(resolutionTarget)}}};
-
+*/
   ROOT::EnableImplicitMT();
   ROOT::RDataFrame d0("events", input_fname);
 
@@ -148,11 +149,14 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
   const double* res = f1->GetParams();
 
   //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
   auto *cdE = new TCanvas("cdE", "cdE", 700, 500);
@@ -175,7 +179,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