This repository contains a set of working standalone examples illustrating the use of MoMEMta.
- ROOT >= 6.02
- MoMEMta >= 0.1.0 (and its requirements, such as LHAPDF, Boost)
- A C++-11 capable compiler
- Clone the repository or download and extract the archive.
- Execute the following in the
Tutorials
folder:
mkdir build
cd build
cmake ..
make -j 4
The following options are available when configuring the the build (when running cmake ..
):
-DMOMEMTA_INCLUDE_DIR=(path)
: Path to theinclude
directory of your installation of MoMEMta. Use this if your version of MoMEMta was installed locally and not in your system directories-DMOMEMTA_LIBRARY=(path)
: Path to the shared librarylibmomemta.so
of your installation of MoMEMta. Use this if your version of MoMEMta was installed locally and not in your system directories-DBOOST_ROOT=(path)
: Use specific Boost library installation
You now have a set of executables located in sub-folders of the build
directory.
However, these cannot be executed yet: you need to build the matrix elements yourself,
just like when you export them using MoMEMta-MaGMEE and copy them to your project's directory.
For instance, to build the TTbar_FullyLeptonic
example's matrix element, do:
cd ../TTbar_FullyLeptonic/MatrixElement/
mkdir build
cd build
cmake .. # If you had to specify the `MOMEMTA_INCLUDE_DIR´ when building the tutorials, you'll have to do it here as well
make -j 4
This creates a shared library that can loaded dynamically by MoMEMta. The example can now be executed:
cd ../../../build/
TTbar_FullyLeptonic/TTbar_FullyLeptonic.exe