From 2e29ed43a9b81ea3c251531ab04b018a45d2e0b9 Mon Sep 17 00:00:00 2001 From: Vardan Tadevosyan <tadevosn@jlab.org> Date: Sat, 21 Feb 2015 09:18:55 +0400 Subject: [PATCH] Modify definition of arrays of ADC hits of the Shower planes. --- src/THcShowerPlane.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/THcShowerPlane.cxx b/src/THcShowerPlane.cxx index 75bc422..8bd3d32 100644 --- a/src/THcShowerPlane.cxx +++ b/src/THcShowerPlane.cxx @@ -37,8 +37,8 @@ THcShowerPlane::THcShowerPlane( const char* name, : THaSubDetector(name,description,parent) { // Normal constructor with name and description - fPosADCHits = new TClonesArray("THcSignalHit",13); - fNegADCHits = new TClonesArray("THcSignalHit",13); + fPosADCHits = new TClonesArray("THcSignalHit",fNelem); + fNegADCHits = new TClonesArray("THcSignalHit",fNelem); //#if ROOT_VERSION_CODE < ROOT_VERSION(5,32,0) // fPosADCHitsClass = fPosADCHits->GetClass(); -- GitLab