Code Monkey home page Code Monkey logo

momemta-magmee's Introduction

MoMEMta-MaGMEE

MoMEMta - MadGraph Matrix Element Exporter

Requirements

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

Note: MoMEMta needs to be installed on the system (locally or globally), cf. MoMEMta documentation.

Install

For the moment, you need a specific version of MadGraph5_aMC@NLO (MG5) for the exporter to work. You can retrieve it here.

Once your copy of MG5 is setup, go the the PLUGIN subfolder. There, download the MoMEMta-MaGMEE plugin (either by cloning the git repository, or by downloading and extracting the archive).

You are now ready to export matrix elements to use in MoMEMta!

Usage

Example:

  • Go to the MG5 folder
  • Launch MG5: bin/mg5_aMC
  • Generate your favourite process: generate p p > t t~, (t > w+ b, w+ > e+ ve), (t~ > w- b~, w- > e- ve~)
  • Output the process: output MoMEMta myHappyME. myHappyME will be used to define the namespace in which the matrix element code is enclosed, so it has to be a valid C++ variable name.

You now have a folder called myHappyME containing the model's code, a parameter card and the matrix element's code itself.

To build the code and use it in your project, you need to have MoMEMta installed on your system (see the MoMEMta documentation for more details). Then, do:

cd myHappyME
mkdir build
cd build
cmake ..
make -j 4

This generates a shared library that can be dynamically loaded by MoMEMta (using the load_modules() function in the Lua config file).

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
  • -DBOOST_ROOT=(path): Use specific Boost version (path to install directory)

The matrix element has a name assigned to it, of type myHappyME_P1_Sigma_pp_ttx_...: this is the name to use when defining the matrix element module in your Lua config file. If you wish to modify it, simply change the name string at the end of the .cc file in the corresponding subfolder of the SubProcesses folder before building the code.

momemta-magmee's People

Contributors

blinkseb avatar swertz avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.