StEvent - example TPC hits
void printHitsInRow(StEvent* event, int isec, int irow)
cout << "sector " << isec << " contains "
<< event->tpcHitCollection()->sector(isec-1)->numberOfHits()
StSPtrVecTpcHit& theHits =
event->tpcHitCollection()->sector(isec-1)->padrow(irow-1)->hits();
cout << "sector " << isec << " padrow "
<< irow << " contains " << theHits.size()
for (int i=0; i<theHits.size(); i++) {
cout << theHits[i]->position() << endl;
cout << theHits[i]->charge() << endl;
cout << theHits[i]->padsInHit() << endl;
cout << theHits[i]->pixelsInHit() << endl << endl;
Note the difference between STAR counting scheme and C/C++