and now some Packets...
// load the shared library
gSystem->Load("$EVT_LIB/libEvent.so");
// make a event iterator which reads from a testEventiterator
Eventiterator *it = new testEventiterator();
// e is pointer to an object of type "Event"
// now we create a histogram and set some display properties here.
TH1F *h = new TH1F("histogram","Channel 0", 101,-49.5,49.5);
// now we read 1000 events or until the iterator is empty, whatever comes
// first. For each event we have it identify itself and then we delete it again.
while (i-- && (e = it->getNextEvent()) )
Packet *p = e->getPacket(1003);
Event objects are nice, but we want to get at the stuff inside (the Packets and their contents).
This example is actually running inside ROOT.