36 #ifndef StStuCounter_hh
37 #define StStuCounter_hh
39 #include "StEventTypes.h"
42 numberOfTracks(
StEvent& evt, StTrackType ttyp,
unsigned int minHits = 0)
44 StSPtrVecTrackNode& nodes = evt.trackNodes();
49 for (i=0; i<nodes.size(); i++) {
50 n = nodes[i]->entries(ttyp);
52 if (nodes[i]->
track(ttyp, j)->detectorInfo()->numberOfPoints() >= minHits)
57 for (i=0; i<nodes.size(); i++)
58 sum += nodes[i]->entries(ttyp);
64 numberOfGlobalTracks(
StEvent& evt,
unsigned int minHits = 0)
66 return numberOfTracks(evt, global, minHits);
70 numberOfPrimaryTracks(
StEvent& evt,
unsigned int minHits = 0)
72 return numberOfTracks(evt, primary, minHits);