Loops over events in input dataset and feeds them to an analysis class. More...
#include <Looper.h>
Public Member Functions | |
Looper (Options const &options) | |
Constructor from a configuration. | |
void | Run () |
Runs over the input dataset. | |
Static Public Member Functions | |
static boost::program_options::options_description | OptionsDescription () |
Constructs descriptions for command line options. | |
Private Attributes | |
Dataset | dataset_ |
Input dataset constructed from the configuration. | |
AnalysisClass | analysis_ |
Implementation of the analysis. | |
int64_t | numEvents_ |
The number of events to read from the input dataset. |
Loops over events in input dataset and feeds them to an analysis class.
AnalysisClass | The class representing an analysis. Must define a constructor of the form AnalysisClass(Options const &, Dataset &) . Method bool AnalysisClass::ProcessEvent() is called for each event in the input dataset. It must return true if the event passes the selection and false otherwise. Method void AnalysisClass::PostProcessing() is called after the event loop. |
static boost::program_options::options_description Looper< AnalysisClass >::OptionsDescription | ( | ) | [static] |
Constructs descriptions for command line options.
Options from AnalysisClass
are also included.