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 generators.
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.8 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:
7.0
of the GCC compiler. The GCC compiler can be downloaded from this website.To benefit from all options coming with the MadAnalysis 5 program, the following (optional) libraries have to be installed on the system:
ma5> install zlib
through MadAnalysis interface.ma5> install fastjet
in MadAnalysis.pdflatex
compilers for report rendering.$ python3 -m pip install -r requirements.txt
.We are moving from our previous location in Launchpad but the latest MadAnalysis 5
version can still be downloaded through here until the
release of v1.10
. Note that future versions will only be available through GitHub.
If you satisfy the requirements mentioned above the only thing that you need to do is download the latest release from here and start playing;
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 development.
Syntax: ./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.
The directory structure of the MadAnalysis 5 package can be summarized as follows:
+ 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 a system:
./bin/ma5
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
tools/SampleAnalyzer
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.
To start MadAnalysis 5, it is enough to type in a shell ./bin/ma5
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
If everything is going as smoothly as it should, a Python command line interface
with a 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.
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.
In the following you can find supported third party software that can be used within MadAnalysis 5. The latest release of MadAnalysis 5 has been tested with enlisted versions.
MadAnalysis 5 is openly developed by the core dev team consisting of:
The development team of MadAnalysis 5 hopes that the package will meet the expectations of the users and help particle physicists in their phenomenological investigations.
That's all folks!
If you use MadAnalysis 5, please cite (BibTeX file can be found here):