From 99b0a3cb18203fbc4d4e4028c68c4a15dde70966 Mon Sep 17 00:00:00 2001
From: Marshall Scott <mbscott@anl.gov>
Date: Mon, 26 Apr 2021 16:58:22 -0400
Subject: [PATCH] Fixed TFitResultPtr issue

---
 benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx b/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx
index 1096352d..55ef801c 100644
--- a/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx
+++ b/benchmarks/barrel_ecal/scripts/emcal_barrel_pions_analysis.cxx
@@ -145,7 +145,7 @@ void emcal_barrel_pions_analysis(const char* input_fname = "sim_output/sim_emcal
   //Energy Resolution Work
   auto hdE          = d1.Histo1D({"hdE",      "dE; dE[GeV]; Events",              100, -7.5, 7.5}, "dE");
   auto hdE_rel      = d1.Histo1D({"hdE_rel",  "dE Relative; dE Relative; Events", 100, -7.5, 7.5}, "dE_rel");
-  auto f1           = hdE_rel->Fit("gaus", "S");
+  TFitResultPtr f1  = hdE_rel->Fit("gaus", "S");
   const double* res = f1->GetParams();
   auto tf1          = new TF1("", "TMath::Gaus(x, [0], [1], [2])", -7.5, 7.5);
   tf1               -> SetParameters(res[0], res[1], res[2]); 
-- 
GitLab