Rivet  1.8.0
Public Member Functions | Protected Attributes
Rivet::MC_JetAnalysis Class Reference

Base class providing common functionality for MC jet validation analyses. More...

#include <MC_JetAnalysis.hh>

Inheritance diagram for Rivet::MC_JetAnalysis:
Rivet::Analysis Rivet::ProjectionApplier

List of all members.

Public Member Functions

 MC_JetAnalysis (const string &name, size_t njet, const string &jetpro_name, double jetptcut=20 *GeV)
 Default constructor.
Analysis methods
virtual void init ()
virtual void analyze (const Event &event)
virtual void finalize ()

Protected Attributes

size_t m_njet
 The number of jets for which histograms are to be initialised.
const std::string m_jetpro_name
double m_jetptcut
 Jet pT cutoff.

Detailed Description

Base class providing common functionality for MC jet validation analyses.


Member Function Documentation

void Rivet::MC_JetAnalysis::analyze ( const Event event) [virtual]

Analyze one event. A concrete class should here apply the necessary projections on the event and fill the relevant histograms. An overridden function must make sure it first calls the base class function.

Implements Rivet::Analysis.

References Rivet::FastJets::clusterSeq(), Rivet::JetAlg::jetsByPt(), m_jetpro_name, m_jetptcut, m_njet, Rivet::momentum(), Rivet::Jet::momentum(), Rivet::FourMomentum::pT(), Rivet::pT(), and Rivet::Event::weight().

void Rivet::MC_JetAnalysis::finalize ( ) [virtual]

Finalize this analysis object. A concrete class should here make all necessary operations on the histograms. Writing the histograms to a file is, however, done by the Rivet class. An overridden function must make sure it first calls the base class function.

Reimplemented from Rivet::Analysis.

References Rivet::Analysis::crossSection(), Rivet::Analysis::histogramFactory(), Rivet::Analysis::histoPath(), m_njet, Rivet::Analysis::scale(), and Rivet::Analysis::sumOfWeights().

void Rivet::MC_JetAnalysis::init ( ) [virtual]

Initialize this analysis object. A concrete class should here book all necessary histograms. An overridden function must make sure it first calls the base class function.

Reimplemented from Rivet::Analysis.

References Rivet::Analysis::bookDataPointSet(), Rivet::Analysis::bookHistogram1D(), Rivet::Analysis::logBinEdges(), m_jetptcut, m_njet, and Rivet::Analysis::sqrtS().


Member Data Documentation

const std::string Rivet::MC_JetAnalysis::m_jetpro_name [protected]

The name of the jet projection to be used for this analysis (this projection has to be registered by the derived analysis!)

Referenced by analyze().


The documentation for this class was generated from the following files: