#include <AnalysisHandler.hh>
Collaboration diagram for AnalysisHandler:
Definition at line 20 of file AnalysisHandler.hh.
Public Member Functions | |
AnalysisHandler & | addAnalysis (const string &analysisname) |
template<typename A> | |
AnalysisHandler & | addAnalysis (const A &analysis) |
void | init (int i=0, int N=0) |
void | analyze (const GenEvent &event) |
void | finalize () |
AIDA::IAnalysisFactory & | analysisFactory () |
The AIDA analysis factory. | |
AIDA::ITree & | tree () |
The AIDA tree object. | |
AIDA::IHistogramFactory & | histogramFactory () |
The AIDA histogram factory. | |
AIDA::IDataPointSetFactory & | datapointsetFactory () |
The AIDA histogram factory. | |
Standard constructors and destructors. */ | |
AnalysisHandler (AIDA::IAnalysisFactory &afac, string basefilename="Rivet", HistoFormat storetype=AIDAML) | |
AnalysisHandler (string basefilename="Rivet", HistoFormat storetype=AIDAML) | |
Make a Rivet handler with a set base filename and store type. | |
~AnalysisHandler () | |
The destructor is not virtual as this class should not be inherited from. |
|
The standard constructor.
Definition at line 81 of file AnalysisHandler.cc. |
|
Make a Rivet handler with a set base filename and store type.
Definition at line 74 of file AnalysisHandler.cc. References AIDA_createAnalysisFactory(). |
|
The destructor is not virtual as this class should not be inherited from.
Definition at line 87 of file AnalysisHandler.cc. |
|
Add an analysis to the run list by supplying a "template" analysis.
Definition at line 68 of file AnalysisHandler.hh. |
|
Add an analysis to the run list using its name. The actual Analysis to be used will be obtained via AnalysisHandler::getAnalysis(string). If no matching analysis is found, no analysis is added (i.e. the null pointer is checked and discarded. Definition at line 19 of file AnalysisHandler.cc. References Analysis::_theHandler. Referenced by main(). |
|
The AIDA analysis factory.
Definition at line 96 of file AnalysisHandler.hh. Referenced by Analysis::analysisFactory(). |
|
Analyze the given event. This function will call the AnalysisBase::analyze() function of all included analysis objects. Definition at line 104 of file AnalysisHandler.cc. Referenced by main(). |
|
The AIDA histogram factory.
Definition at line 114 of file AnalysisHandler.hh. Referenced by Analysis::datapointsetFactory(). |
|
Finalize a run. This function first calls the AnalysisBase::finalize() functions of all included analysis objects and then writes out all histograms to a file. Definition at line 112 of file AnalysisHandler.cc. References ITree::commit(), and AnalysisHandler::tree(). Referenced by main(). |
|
The AIDA histogram factory.
Definition at line 108 of file AnalysisHandler.hh. Referenced by Analysis::histogramFactory(). |
|
Initialize a run. If this run is to be joined together with other runs, N should be set to the total number of runs to be combined, and i should be the index of this run. This function will initialize the histogram factory and then call the AnalysisBase::init() function of all included analysis objects. Definition at line 94 of file AnalysisHandler.cc. Referenced by main(). |
|
The AIDA tree object.
Definition at line 102 of file AnalysisHandler.hh. Referenced by AnalysisHandler::finalize(), and Analysis::tree(). |