The HarpoAnalysis class is the base class to process data event by event.
It has three main functions:
- Init()
- This is run at the beginning of the analysis.
You typically initialize histograms and counters there.
- process()
- This is where the actual data processing is done.
HarpoEvent* fEvt contains the aggregated data from all the detectors included (Feminos X, Y, PMm2, ...) for a single event (already synchronized).
- Save()
- This is run at the end of the analysis.
You can do some final processing there.
You will also explicitly save your output histograms in a file defined with the -b option (see section 2.2).
A template analysis class HarpoAnalysisTemplate exists.
The makeNewAnalysis.sh script allows to generate a copy of the template with all the required files and modifications to Makefile and harpoanalysis.cxx.
./makeNewAnalysis.sh Name
ls HarpoAnalysisName*
HarpoAnalysisName.cxx
HarpoAnalysisName.h
HarpoAnalysisNameLinkDef.h
Philippe Gros
2015-06-19