From a2f991acdb8d712dba2cb9b98592fd7d5825470e Mon Sep 17 00:00:00 2001
From: Maria <zurek@anl.gov>
Date: Mon, 20 Sep 2021 19:07:15 -0500
Subject: [PATCH] fix typo in spatial resolution plots

---
 .../scripts/emcal_barrel_energy_scan_analysis.cxx         | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/benchmarks/imaging_ecal/scripts/emcal_barrel_energy_scan_analysis.cxx b/benchmarks/imaging_ecal/scripts/emcal_barrel_energy_scan_analysis.cxx
index a4e2fe8a..784eb09f 100644
--- a/benchmarks/imaging_ecal/scripts/emcal_barrel_energy_scan_analysis.cxx
+++ b/benchmarks/imaging_ecal/scripts/emcal_barrel_energy_scan_analysis.cxx
@@ -169,12 +169,12 @@ std::tuple <double, double, double, double, double, double, double, double> extr
   };
 
   // Delta Phi
-  auto deltaTheta = [](const double Phithr, const double Phirec) {
+  auto deltaPhi = [](const double Phithr, const double Phirec) {
     return (Phithr-Phirec)/Phithr;
   };
 
   // Delta Eta
-  auto deltaTheta = [](const double Etathr, const double Etarec) {
+  auto deltaEta = [](const double Etathr, const double Etarec) {
     return (Etathr-Etarec)/Etathr;
   };
 
@@ -282,8 +282,8 @@ std::tuple <double, double, double, double, double, double, double, double> extr
   hDeltaPhi->SetLineWidth(2);
   hDeltaPhi->SetLineColor(kBlue);
   hDeltaPhi->DrawClone();
-  auto up_fit = hDeltaPhi->GetMean() + 5*hDeltaPhi->GetStdDev();
-  auto down_fit = hDeltaPhi->GetMean() - 5*hDeltaPhi->GetStdDev();
+  up_fit = hDeltaPhi->GetMean() + 5*hDeltaPhi->GetStdDev();
+  down_fit = hDeltaPhi->GetMean() - 5*hDeltaPhi->GetStdDev();
   hDeltaPhi->GetXaxis()->SetRangeUser(down_fit,up_fit);
   c2R->cd(2);
   hDeltaTheta->GetYaxis()->SetTitleOffset(1.4);
-- 
GitLab