Skip to content

A set of examples and tutorials illustrating the use of MoMEMta

License

Notifications You must be signed in to change notification settings

alesaggio/Tutorials

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tutorials

This repository contains a set of working standalone examples illustrating the use of MoMEMta.

Requirements

  • ROOT >= 6.02
  • MoMEMta >= 0.1.0 (and its requirements, such as LHAPDF, Boost)
  • A C++-11 capable compiler

Install

  • 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 the include 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 library libmomemta.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

Run

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

About

A set of examples and tutorials illustrating the use of MoMEMta

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 86.8%
  • CMake 6.7%
  • Lua 6.5%