pMonitor framework
In its simplest form, you provide 2 functions (copy from template)
- int pinit() -- initialize, get histo factory, book histos, open files, etc.
- int process_event (Event * evt) -- process an event, which is delivered by the framework.
This is the top-level entry to your analysis -- you are free to call or make whatever function or whatever object is needed for the analysis. You can use nodes, the histo factory, the toolbox, all the goodies.