From b4810c334bc9035061ac6d65400d829bc547f87d Mon Sep 17 00:00:00 2001
From: "Stephen A. Wood" <zviwood@gmail.com>
Date: Sun, 21 Sep 2014 18:17:56 -0400
Subject: [PATCH] Properly zero out traceback coefficients and exponents.  
 This insures that 5th exponent is zero if not specified on recon file

---
 src/THcHallCSpectrometer.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/THcHallCSpectrometer.cxx b/src/THcHallCSpectrometer.cxx
index f8daf05..532c13d 100644
--- a/src/THcHallCSpectrometer.cxx
+++ b/src/THcHallCSpectrometer.cxx
@@ -127,7 +127,7 @@ Bool_t THcHallCSpectrometer::GetTrSorting() const
 void THcHallCSpectrometer::InitializeReconstruction()
 {
   fNReconTerms = 0;
-  for(Int_t i=0;i<fNReconTerms;i++) {
+  for(Int_t i=0;i<fMaxReconElements;i++) {
     for(Int_t j=0;j<4;j++) {
       fReconCoeff[i][j] = 0.0;
     }
-- 
GitLab