From 15a8457df3417e19949c37a7674a7519d75afc1f Mon Sep 17 00:00:00 2001 From: Vardan Tadevosyan <tadevosn@jlab.org> Date: Thu, 17 Dec 2015 10:19:39 +0400 Subject: [PATCH] Add filling of the list of ADC hits in THcShowerArray::ProcessHits. --- src/THcShowerArray.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/THcShowerArray.cxx b/src/THcShowerArray.cxx index eea66b4..5cee71d 100644 --- a/src/THcShowerArray.cxx +++ b/src/THcShowerArray.cxx @@ -298,6 +298,7 @@ Int_t THcShowerArray::ProcessHits(TClonesArray* rawhits, Int_t nexthit) // Initialize variables. + Int_t nADCHits=0; fADCHits->Clear(); for(Int_t i=0;i<fNelem;i++) { @@ -341,9 +342,8 @@ Int_t THcShowerArray::ProcessHits(TClonesArray* rawhits, Int_t nexthit) if(fA[hit->fCounter-1] > fThresh[hit->fCounter -1]) { - // THcSignalHit *sighit = - // (THcSignalHit*) fPosADCHits->ConstructedAt(nPosADCHits++); - // sighit->Set(hit->fCounter, fA_Pos[hit->fCounter-1]); + THcSignalHit *sighit = (THcSignalHit*)fADCHits->ConstructedAt(nADCHits++); + sighit->Set(hit->fCounter, fA[hit->fCounter-1]); fUsingFADC ? fA_p[hit->fCounter-1] = fA[hit->fCounter-1] : -- GitLab