MyEvent Helper Macro
Started from Root’s MakeClass idea
Goals
- user only touches a small part of the MyEvent code for histogram definitions and the event loop and analysis
- much of the code is hidden in the .h file
- file open, rewind, and random access to events handled by member functions
- some global histogram manipulation (eg clear)
Most standard functions held in base class
MyEvent member functions
- constructor - opens file
- destructor cleans up - allows editing of macro and reload
- Init - open new file
- Rewind
- Go(n) - process n events through user analysis
- StartAtEvent- reset starting point for Go
- HistDefine - user histograms
- HistClr - clear all histograms