From 58a0547f103923ce7ef8d39bc514605463b5bf9e Mon Sep 17 00:00:00 2001
From: "Stephen A. Wood" <saw@jlab.org>
Date: Fri, 14 Oct 2016 13:20:03 -0400
Subject: [PATCH] Move some THcHodoscope variable initialization to ClearEvent

---
 src/THcHodoscope.cxx | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/THcHodoscope.cxx b/src/THcHodoscope.cxx
index 7a11cc8..644a4ac 100644
--- a/src/THcHodoscope.cxx
+++ b/src/THcHodoscope.cxx
@@ -524,6 +524,11 @@ void THcHodoscope::ClearEvent()
   fBetaP = 0.;
   fBetaNoTrk = 0.0;
   fBetaNoTrkChiSq = 0.0;
+  fStartTime  = 0.0;
+  fGoodStartTime = kFALSE;
+  fGoodScinHits = 0;
+  fScinShould = 0;
+  fScinDid = 0;
 
   for(Int_t ip=0;ip<fNPlanes;ip++) {
     fPlanes[ip]->Clear();
@@ -828,9 +833,6 @@ Int_t THcHodoscope::FineProcess( TClonesArray& tracks )
   Int_t timehist[200];
   // -------------------------------------------------
 
-  fGoodScinHits = 0;
-  fScinShould = 0; fScinDid = 0;
-
   if (tracks.GetLast()+1 > 0 ) {
 
     // **MAIN LOOP: Loop over all tracks and get corrected time, tof, beta...
-- 
GitLab