From 169910d34a6f97c3d2c94eeea776fe61f089a731 Mon Sep 17 00:00:00 2001
From: "Stephen A. Wood" <saw@jlab.org>
Date: Wed, 14 Oct 2015 14:23:51 -0400
Subject: [PATCH] Use ConstructedAt to make sure hitlist can grow beyond
 initial size

---
 src/THcHitList.cxx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/THcHitList.cxx b/src/THcHitList.cxx
index cc18bcf..4d8a396 100644
--- a/src/THcHitList.cxx
+++ b/src/THcHitList.cxx
@@ -89,8 +89,7 @@ Int_t THcHitList::DecodeToHitList( const THaEvData& evdata ) {
       }
 
       if(thishit == fNRawHits) {
-	rawhit = (THcRawHit*) (*fRawHitList)[thishit];
-	rawhit->Clear();	// Blank out hit contents
+	rawhit = (THcRawHit*) fRawHitList->ConstructedAt(thishit,"");
 	fNRawHits++;
 	rawhit->fPlane = plane;
 	rawhit->fCounter = counter;
-- 
GitLab