StEvent - the Basics
In the following we assume that we have a valid pointer to an instance of StEvent: StEvent *event;
The top class StEvent can tell you about things like event number, time and other numbers which characterize an event
void printEventInfo(StEvent* event)
if (!event) return; // better check
cout << “type: “ << event->type() << endl; // string
cout << “event id: “ << event->id() << endl;
cout << “run id: “ << event->runId() << endl;
cout << “time: “ << event->time() << endl;
cout << “triggerMask: “ << event->triggerMask() << endl;
There are more. See the StEvent reference section.