A lua configuration file parser. More...
#include <ConfigurationReader.h>
Detailed Description
A lua configuration file parser.
This class handles the parsing of the lua configuration file. The configuration files describes which modules should be run in order to form an integrand. This integrand is then integrated using CUBA and MoMEMta and the result of the integral is returned.
A module is a single element of a more complex scheme. Itself, it only performs a simple tasks (flattening a Breit-Wigner for example), but combined with other modules, it's possible to define complex integrand.
A module can be seen like a box with a fixed number of inputs and outputs. The configuration file is used to specify a list of module to run, and to connect outputs of modules to inputs of other modules.
- Todo:
- Discuss the
parameters
table,cuba
table and the concept of freezing and delayed execution
Definition at line 44 of file ConfigurationReader.h.
Public Member Functions | |
ConfigurationReader (const std::string &) | |
virtual void | onModuleDeclared (const std::string &type, const std::string &name) override |
A module is declared in the configuration file. More... | |
ParameterSet & | getGlobalParameters () |
ParameterSet & | getCubaConfiguration () |
Configuration | freeze () const |
Freeze the configuration. More... | |
Friends | |
class | Configuration |
Member Function Documentation
Configuration ConfigurationReader::freeze | ( | ) | const |
Freeze the configuration.
- Returns
- A freezed copy of the configuration
Definition at line 91 of file ConfigurationReader.cc.
|
overridevirtual |
A module is declared in the configuration file.
This function is called as soon as a new module is declared in the configuration file.
A lua code like
- ``` MatrixElement.module_name = {}
```
will result in a call to this function with
type
equals toMatrixElement
andname
equals tomodule_name
.
Implements IOnModuleDeclared.
Definition at line 76 of file ConfigurationReader.cc.
The documentation for this class was generated from the following files:
- include/momemta/ConfigurationReader.h
- core/src/ConfigurationReader.cc