A MoMEMta instance. More...

#include <MoMEMta.h>

Detailed Description

A MoMEMta instance.

Compute weights for a particular event using the Matrix Element Method. See the documentation for more details about this method.

Definition at line 39 of file MoMEMta.h.

Public Member Functions

 MoMEMta (const Configuration &configuration)
 Create a new MoMEMta instance. More...
 
virtual ~MoMEMta ()
 Destructor.
 
std::vector< std::pair< double, double > > computeWeights (const std::vector< LorentzVector > &particles, const LorentzVector &met=LorentzVector())
 Compute the weights in the current configuration. More...
 
const PoolgetPool () const
 Read-only access to the global memory pool. More...
 

Constructor & Destructor Documentation

MoMEMta::MoMEMta ( const Configuration configuration)

Create a new MoMEMta instance.

Parameters
configurationA frozen snapshot of the configuration, usually obtained by ConfigurationReader::freeze
Note
A single instance of MoMEMta is able to compute weights for any numbers of events. However, if you want to change the configuration, you need to create a new instance.

Definition at line 33 of file MoMEMta.cc.

Member Function Documentation

std::vector< std::pair< double, double > > MoMEMta::computeWeights ( const std::vector< LorentzVector > &  particles,
const LorentzVector &  met = LorentzVector() 
)

Compute the weights in the current configuration.

This function is traditionally called from the main event loop.

Parameters
particlesList of LorentzVector representing the final state particles. The order is important, because a mapping is done between these particles and the matrix element inside the configuration file.
metMissing transverse energy of the event. This parameter is optional.
Returns
A vector of weights. Each weight is represented by a pair of double, the first element being the value of the weight and the second the associated absolute error.

Definition at line 113 of file MoMEMta.cc.

const Pool & MoMEMta::getPool ( ) const

Read-only access to the global memory pool.

Use the pool to retrieve outputs from special modules, like DMEM.

Returns
A read-only instance of the global memory pool

Definition at line 109 of file MoMEMta.cc.


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