Example project (“p_ex1”)
#include <PhHistogramFactory.hh>
PhH1 *h; // the one histogram
hf = PhHistogramFactory::instance();
h = hf->CreateH1F("H1", "Channel 0", 101,-49.5,49.5);
int process_event (Event * e)
Packet *p = e->getPacket(1003);
nsleep(100); // 100 milliseconds
This is a pretty simple project -- we don’t have any additional user commands or anything non-standard.
We just fill the histograms and can work with them from the command prompt but not much else.
This is meant to work with the testEventiterator (packet 1003, etc)