MoMEMta Class Reference
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.
Public Types | |
enum | IntegrationStatus { IntegrationStatus::SUCCESS, IntegrationStatus::ACCURACY_NOT_REACHED, IntegrationStatus::FAILED, IntegrationStatus::ABORTED, IntegrationStatus::DIM_OUT_OF_RANGE, IntegrationStatus::NONE } |
Status of the integration. More... | |
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< momemta::Particle > &particles, const LorentzVector &met=LorentzVector()) |
Compute the weights in the current configuration. More... | |
IntegrationStatus | getIntegrationStatus () const |
Return the status of the integration. More... | |
const Pool & | getPool () const |
Read-only access to the global memory pool. More... | |
Member Enumeration Documentation
◆ IntegrationStatus
|
strong |
Constructor & Destructor Documentation
◆ MoMEMta()
MoMEMta::MoMEMta | ( | const Configuration & | configuration | ) |
Create a new MoMEMta instance.
- Parameters
-
configuration A 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 84 of file MoMEMta.cc.
Member Function Documentation
◆ computeWeights()
std::vector< std::pair< double, double > > MoMEMta::computeWeights | ( | const std::vector< momemta::Particle > & | particles, |
const LorentzVector & | met = LorentzVector() |
||
) |
Compute the weights in the current configuration.
This function is traditionally called from the main event loop.
- Parameters
-
particles List of Particle representing the final state particles. met Missing 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 157 of file MoMEMta.cc.
◆ getIntegrationStatus()
MoMEMta::IntegrationStatus MoMEMta::getIntegrationStatus | ( | ) | const |
Return the status of the integration.
- Returns
- The status of the integration
Definition at line 467 of file MoMEMta.cc.
◆ getPool()
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 153 of file MoMEMta.cc.
The documentation for this class was generated from the following files:
- include/momemta/MoMEMta.h
- core/src/MoMEMta.cc