diff --git a/src/THcHodoscope.cxx b/src/THcHodoscope.cxx index b3c9c93f5c8d182eebc99c4676ee7deedfb0fbf1..a65d8fa13ddcd9ad0cb25eaaab20be5285ec8bd7 100644 --- a/src/THcHodoscope.cxx +++ b/src/THcHodoscope.cxx @@ -276,6 +276,13 @@ Int_t THcHodoscope::Decode( const THaEvData& evdata ) // Get the Hall C style hitlist (fRawHitList) for this event Int_t nhits = THcHitList::DecodeToHitList(evdata); + // fRawHitList is TClones array of THcHodoscopeHit objects + for(Int_t ihit = 0; ihit < fNRawHits ; ihit++) { + THcHodoscopeHit* hit = (THcHodoscopeHit *) fRawHitList->At(ihit); + cout << ihit << ": " << hit->fADC_pos << " " << hit->fADC_neg << " " + << hit->fTDC_pos << " " << hit->fTDC_pos << endl; + } + return nhits; } diff --git a/src/THcHodoscope.h b/src/THcHodoscope.h index 29c252b3802effb35ce9ab0462aba182de42993e..31760f5a7797e9ff59e7cf35aec04ebb5b199216 100644 --- a/src/THcHodoscope.h +++ b/src/THcHodoscope.h @@ -10,6 +10,7 @@ #include "TClonesArray.h" #include "THaNonTrackingDetector.h" #include "THcHitList.h" +#include "THcHodoscopeHit.h" class THaScCalib;