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
Branches
Tags
No related merge requests found
......@@ -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;
}
......
......@@ -10,6 +10,7 @@
#include "TClonesArray.h"
#include "THaNonTrackingDetector.h"
#include "THcHitList.h"
#include "THcHodoscopeHit.h"
class THaScCalib;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment