Skip to content
Snippets Groups Projects
Commit de77703f authored by Stephen A. Wood's avatar Stephen A. Wood
Browse files

Print out the hit list after DecodeToHitList to illustrate how to

get the hits.
parent eb7d8940
No related branches found
No related tags found
No related merge requests found
...@@ -276,6 +276,13 @@ Int_t THcHodoscope::Decode( const THaEvData& evdata ) ...@@ -276,6 +276,13 @@ Int_t THcHodoscope::Decode( const THaEvData& evdata )
// Get the Hall C style hitlist (fRawHitList) for this event // Get the Hall C style hitlist (fRawHitList) for this event
Int_t nhits = THcHitList::DecodeToHitList(evdata); 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; return nhits;
} }
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
#include "TClonesArray.h" #include "TClonesArray.h"
#include "THaNonTrackingDetector.h" #include "THaNonTrackingDetector.h"
#include "THcHitList.h" #include "THcHitList.h"
#include "THcHodoscopeHit.h"
class THaScCalib; class THaScCalib;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment