Looper< AnalysisClass > Class Template Reference

Loops over events in input dataset and feeds them to an analysis class. More...

#include <Looper.h>

Collaboration diagram for Looper< AnalysisClass >:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

template<typename AnalysisClass>
class Looper< AnalysisClass >

Loops over events in input dataset and feeds them to an analysis class.

Template Parameters:
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.

Member Function Documentation

template<typename AnalysisClass >
static boost::program_options::options_description Looper< AnalysisClass >::OptionsDescription (  )  [static]

Constructs descriptions for command line options.

Options from AnalysisClass are also included.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Enumerator

Generated on 30 Oct 2020 for H→ZZ→2ℓ2ν analysis by  doxygen 1.6.1