StEvent - A real example: StAnalysisMaker::Make()
// Last but not least we count the number of good global
// tracks. Good or bad is determined by the track filter.
// The fraction of good globals gets stored in the tuple.
StSPtrVecTrackNode& nodes = event->trackNodes();
for (unsigned int j=0; j<nodes.size(); j++) {
track = nodes[j]->track(global);
if (accept(track)) goodGlobals++;
tuple[k++] = static_cast<float>(goodGlobals)/allGlobals;