Welcome to MadAnalysis 5
- What is MadAnalysis 5?
- Downloading and installing the MadAnalysis 5 package
- Usage of MadAnalysis 5
- Description of the package
- Very first steps with MadAnalysis 5
- Troubleshootings and bug reports
- Our famous last words
What is MadAnalysis 5?
MadAnalysis 5 is a framework for phenomenological investigations at particle
colliders. Based on a C++ kernel, this program allows to efficiently perform, in
a straightforward and user-friendly fashion, sophisticated physics analyses of
event files such as those generated by a large class of Monte Carlo event
The first running mode (Normal Mode) of the program, easier to handle, uses the strengths of a
powerful Python interface in order to implement physics analyses by means of a
set of intuitive commands.
The second running mode (Expert Mode) requires to implement the analyses in the C++
programming language, directly within the core of the analysis framework. This
opens unlimited possibilities concerning the level of complexity that can be
reached, the latter being only limited by the programming skills and the
originality of the user.
More details can be found on the MadAnalysis 5 website.
MadAnalysis 5 requires several external libraries in order to properly run:
Python 3.6 or a more recent version that can be downloaded from this website
In order to check the installed version of Python on a system, it is
sufficient to issue in a shell
$ python --version.
Either the GNU GCC compiler, or the Apple clang compiler. MadAnalysis 5 has been validated:
- with the versions
4.4.Xof the GCC compiler. The GCC compiler can be downloaded from this website.
- with the version 12.0.5 (clang-122.214.171.124) of the clang compiler.
- with the versions
To benefit from all options coming with the MadAnalysis 5 program, the following
(optional) libraries have to be installed on the system:
- Zlib headers and libraries that can be downloaded from this website which can
also be downloaded by by typing
ma5> install zlibthrough MadAnalysis interface.
- The FastJet package version 3.3, or a more recent version, that can be
downloaded from this link. This package can also be installed by
ma5> install fastjetin MadAnalysis.
- LaTeX and
pdflatexcompilers for report rendering.
Downloading and installing the MadAnalysis 5 package
We are moving from our previous location in Launchpad but the latest MadAnalysis 5
version can still be downloaded through here until the
v1.10. Note that future versions will only be available through GitHub.
$ cd madanalysis5 $ ./bin/ma5
During your first execution MadAnalysis 5 will build the entire workspace automatically.
Note that release versions are always the stable ones the main repository will be under constant
Usage of MadAnalysis 5
./bin/ma5 [options] [scripts]
[options] This optional argument allows to select the running mode of MadAnalysis 5 appropriate to the type of event files to analyze. If absent, the parton-level mode is selected. Warning: the different modes are self-excluding each other and only one choice has to be made. List of available options : -P or --partonlevel : parton-level mode -H or --hadronlevel : hadron-level mode -R or --recolevel : detector-level mode -e or -E or --expert : entering expert mode -v or --version or --release : display the version number of MadAnalysis -b or --build : rebuild the SampleAnalyzer static library -f or --forced : do not ask for confirmation when MA5 removes a directory or overwrites an object -s or --script : quit automatically MA5 when the script is loaded -h or --help : dump this help -i or --installcard : produce the default installation card in installation_card.dat -d or --debug : debug mode -q or --qmode : developper mode only for MA5 developpers [scripts] This optional argument is a list of filenames containing a set of MadAnalysis 5 commands. The file name are handled as concatenated, and the commands are applied sequentially.
Description of the package
The directory structure of the MadAnalysis 5 package can be summarized as
+ bin | This directory contains the executable file 'ma5'. + madanalysis | This directory contains all the source files of | MadAnalysis 5. + configuration | This directory contains functions related to the | configuration of the dependencie such as FastJet. + core | This directory contains the core of the Python | interface. + dataset | This directory contains the functions related to the | handling of Monte Carlo event files in MadAnalysis | 5. + enumeration | This directory contains the definition of the | keywords used by within the Python source files. + input | This directory contains the lists of (multi)particles | to be loaded at the start-up of MadAnalysis 5. + IOinterface | This directory contains routines related to | input/output flows. + interpreter | This directory contains all the commands available | within the Python interface of MadAnalysis 5. + job | This directory contains the routines necessary for | the creation and execution of C++ jobs. + layout | This directory contains all the functions necessary | for handling the layout of the figures and reports | produced by MadAnalysis 5. + multiparticle | This directory contains the functions related to the | handling of multiparticle and particle collections. + observable | This directory contains the list of observables | supported within MadAnalysis 5. + selection | This directory contains the routines necessary for | producing histograms and applying event selection | cuts. + tools | This directory contains the packages that are used | by MadAnalysis 5. + SampleAnalyzer | This directory contains the C++ kernel of | MadAnalysis, dubbed SampleAnalyzer (see below). + Glue | This directory contains the glues allowing to use | showering programs (not supported yet). (+) samples | This optional directory is dedicated to event sample | storage.
The main file of the package is also the only one which is supposed to be run on
In addition, several text files are dedicated to specific information:
README: this file,
COPYING: the description of the software license,
version.txt: general information about the installed release,
madanalysis/UpdateNotes.txt: the update notes.
The C++ kernel of MadAnalysis is stored in the directory
This directory has the following structure:
+ tools + SampleAnalyzer + Analyzer | This directory contains the skeleton for the | analysis class as well as for the merging plots. + Core | This directory contains the main routines. + Counter | This directory contains routines related to | histogram and cut referencing. + DataFormat | This directory contains the implementation of the | employed data format for handling event samples | and the related information. + Filter | This directory contains routines for applying event | filtering (to be developped in the future). + JetClustering | This directory contains routines dedicated to jet | clustering algorithms. + Lib | This directory store the SampleAnalyzer library, | once compiled. + Plot | This directory contains all the methods related to | histogram generation. + Reader | This directory contains the definition of classes | dedicated to the reading of the event files. + Service | This directory contains services (logger, physics | tools, ...) + Writer | This directory contains the definition of classes | dedicated to the writing of event files and | result files. + newAnalyzer.py | This script allows to create a blank analysis. + newFilter.py | This script allows to create a blank filter.
The Glue directory contains routines dedicated to future developments and are
thus neither supporter, nor documented.
The associated Doxygen documentation can be found on the MadAnalysis 5 wiki.
Very first steps with MadAnalysis 5
To start MadAnalysis 5, it is enough to type in a shell
In a first step, the program checks all the dependencies and provide warning
and/or error messages if necessary. Next, the
SampleAnalyzer C++ kernel library
is generated. This is performed once and for all at the first run of MadAnalysis
- Let us however note that if the system configuration changes, this is
detected by MadAnalysis 5 and the library is regenerated.
If everything is going as smoothly as it should, a Python command line interface
ma5> prompt appears. To learn how to use MadAnalysis 5 and to get an
overview of its functionalities, we refer in particular to Section 3 of the
manual that can be found here.
Troubleshootings and bug reports
Any public release of MadAnalysis 5 has been automatically and intensely
validated. However, especially due to the variety of possible system
configurations and the large number of functionalities included in the program,
it is not impossible that some bugs are found. In this case, is is strongly
suggested to create a report on GitHub Issues.
In this way, you also participate to the improvement of MadAnalysis 5 and the
authors thank you for this.
MadAnalysis 5 is openly developed by the core dev team consisting of:
Our famous last words
The development team of MadAnalysis 5 hopes that the package will meet the
expectations of the users and help particle physicists in their phenomenological
That’s all folks!
If you use MadAnalysis 5, please cite:
- E. Conte, B. Fuks and G. Serret; Comput. Phys. Commun. 184 (2013) 222
- E. Conte, B. Dumont, B. Fuks and C. Wymant; Eur. Phys. J. C 74 (2014) 10, 3103
- B. Dumont, B. Fuks, S. Kraml et al.; Eur. Phys. J. C 75 (2015) 2, 56
- E. Conte, and B. Fuks; Int. J. Mod. Phys. A 33 (2018) 1830027
- J. Y. Araz, M. Frank and B. Fuks; Eur. Phys. J. C 80 (2020) 6, 531
- J. Y. Araz, B. Fuks and G. Polykratis; Eur. Phys. J. C 81 (2021) 329
- J. Y. Araz, B. Fuks, M. D. Goodsell and M. Utsch; arXiv:2112.05163