StAnalysisMaker - a template
Now the doEvents.C macro will:
Set up the chain containing everything you need. This includes loading all the shared libraries including the one you created.
Loop over <n> events invoking
- StAnalysisMaker::Init() once at the very beginning
- StAnalysisMaker::Make() every event
- StAnalysisMaker::Finish() once at the very end
In StAnalysisMaker::Make() you should plug in your analysis, fill histos and Ntuple etc.
Usually the histos and the ntuples are booked/defined in StAnalysisMaker:: Init().
StAnalysisMaker::Finish() is usefull to print out counters etc.