Madanalysis5 - A package for event file analysis and recasting of LHC results

Overview

Welcome to MadAnalysis 5

PAD TUTO FAQ

Python v3.8 C++

Outline

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 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.

Requirements

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.3.X and 4.4.X of the GCC compiler. The GCC compiler can be downloaded from this website.
    • with the version 12.0.5 (clang-1205.0.22.9) of the clang compiler.

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 zlib through 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 typing ma5> install fastjet in MadAnalysis.
  • LaTeX and pdflatex compilers 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 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.

Usage of MadAnalysis 5

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.

Description of the package

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.

Very first steps with MadAnalysis 5

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

  • 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 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.

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.

Authors

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 investigations.

That's all folks!

Credits

If you use MadAnalysis 5, please cite:

Comments
  • Problems with installing PAD

    Problems with installing PAD

    Question

    Hi, I'm having issues with installing the PAD.I tried many times and couldn't install it successfully.The compilation aborts with the message: MA5-ERROR: impossible to build the project. For more details, see the log file: MA5-ERROR: /home/customer/apps/madanalysis5-1.9.60/tools/PAD/Build/compilation.log I attached the content of the log file below. error.txt compilation.log Many thanks.

    :question:question PAD 
    opened by Revue-Starlight-Topstar 25
  • Delphes CMS pileup card doesn't work in expert mode

    Delphes CMS pileup card doesn't work in expert mode

    Hi

    I have been trying to use delphes CMS pileup card with expert mode but it breaks down with the following errors:

    **=========================================================== There was a crash. This is the entire stack trace of all threads: =========================================================== #0 0x00002ac44825260c in waitpid () from /lib64/libc.so.6 #1 0x00002ac4481cff62 in do_system () from /lib64/libc.so.6 #2 0x00002ac4421e68cb in TUnixSystem::StackTrace() () from /local/software/cern/ROOT_6.24.06/install/lib/libCore.so #3 0x00002ac4421e3e75 in TUnixSystem::DispatchSignals(ESignals) () from /local/software/cern/ROOT_6.24.06/install/lib/libCore.so #4 #5 0x00002ac446b550ec in fastjet::GridMedianBackgroundEstimator::set_particles(std::vector<fastjet::PseudoJet, std::allocatorfastjet::PseudoJet > const&) () at GridMedianBackgroundEstimator.cc:44 #6 0x00002ac44a663af3 in FastJetGridMedianEstimator::Process() () from /mainfs/scratch/sj1n19/MG5/MG5_aMC_v3_3_1/HEPTools/madanalysis5/madanalysis5/tools/SampleAnalyzer/ExternalSymLink/Lib/libDelphes.so #7 0x00002ac44210da2f in TTask::ExecuteTasks(char const) () from /local/software/cern/ROOT_6.24.06/install/lib/libCore.so #8 0x00002ac44210dc57 in TTask::ExecuteTask(char const) () from /local/software/cern/ROOT_6.24.06/install/lib/libCore.so #9 0x00002ac44877b077 in MA5::DetectorDelphes::Execute(MA5::SampleFormat&, MA5::EventFormat&) () from /mainfs/scratch/sj1n19/MG5/MG5_aMC_v3_3_1/HEPTools/madanalysis5/madanalysis5/tools/SampleAnalyzer/Lib/libdelphes_for_ma5.so #10 0x000000000040867c in main () ===========================================================

    The lines below might hint at the cause of the crash. You may get help by asking at the ROOT forum https://root.cern.ch/forum Only if you are really convinced it is a bug in ROOT then please submit a report at https://root.cern.ch/bugs Please post the ENTIRE stack trace from above as an attachment in addition to anything else that might help us fixing this issue. ===========================================================** #5 0x00002ac446b550ec in fastjet::GridMedianBackgroundEstimator::set_particles(std::vector<fastjet::PseudoJet, std::allocatorfastjet::PseudoJet > const&) () at GridMedianBackgroundEstimator.cc:44 #6 0x00002ac44a663af3 in FastJetGridMedianEstimator::Process() () from /mainfs/scratch/sj1n19/MG5/MG5_aMC_v3_3_1/HEPTools/madanalysis5/madanalysis5/tools/SampleAnalyzer/ExternalSymLink/Lib/libDelphes.so #7 0x00002ac44210da2f in TTask::ExecuteTasks(char const*) () from /local/software/cern/ROOT_6.24.06/install/lib/libCore.so #8 0x00002ac44210dc57 in TTask::ExecuteTask(char const*) () from /local/software/cern/ROOT_6.24.06/install/lib/libCore.so #9 0x00002ac44877b077 in MA5::DetectorDelphes::Execute(MA5::SampleFormat&, MA5::EventFormat&) () from /mainfs/scratch/sj1n19/MG5/MG5_aMC_v3_3_1/HEPTools/madanalysis5/madanalysis5/tools/SampleAnalyzer/Lib/libdelphes_for_ma5.so #10 0x000000000040867c in main () ===========================================================**

    I am actually surprised that only pileup card doesn't work in expert mode but if I try to use just CMS card with fastjet it works perfectly fine. Any help would be much appreciated.

    Thanks Shubhani

    :mechanical_arm:ExpertMode Delphes 
    opened by shubhani16 22
  • MadAnalysis 5 not recognizing Python 3 on MacOS 12

    MadAnalysis 5 not recognizing Python 3 on MacOS 12

    Question

    Operating system: macOS v12.4 Python version: 3.9.1 gcc/c++ version:

    Apple clang version 13.1.6 (clang-1316.0.21.2.5)
    Target: arm64-apple-darwin21.5.0
    Thread model: posix
    InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
    

    MadAnalysis 5 version: 1.9.6

    Hi, I recently updated my MacOS from Big Sur to Monterey and MadAnalysis 5 is now

    1. Not recognizing my version of python 3 and giving me a warning about deprecated python 2 detection. python --version still returns Python 3.9.1 so I'm not sure why it's not being detected. When I remove Python 2.7, it simply does not detect any version of Python. The warning is
    MA5: Checking mandatory packages: 
    MA5-WARNING: Python version 2.7.18 detected.
    MA5-WARNING: Python 2 functionality is deprecated, and will no longer be supported in a close future.
    
    1. Failing while attempting to link the project. The error is
    MA5:    Component 4/13 - library: interface to zlib
    MA5:      - Cleaning the project before building the library ...
    MA5:      - Compiling the source files ...
    MA5:      - Linking the library ...
    MA5-ERROR: impossible to link the project. For more details, see the log file:
    MA5-ERROR: /Users/localmacaccount/Simulations/MG5_aMC_v3_3_1/HEPTools/madanalysis5/madanalysis5/tools/SampleAnalyzer/Interfaces/linking_zlib.log
    MA5-ERROR: The library building aborted.
    

    This is the output of the log file.

    c++ -shared -o ../Lib/libzlib_for_ma5.so zlib/gz_streambase.o  -L/Users/localmacaccount/Simulations/MG5_aMC_v3_3_1/HEPTools/madanalysis5/madanalysis5/tools/SampleAnalyzer/Lib -L/Users/localmacaccount/Simulations/MG5_aMC_v3_3_1/HEPTools/madanalysis5/madanalysis5/tools/SampleAnalyzer/ExternalSymLink/Lib -lz -lcommons_for_ma5
    ld: warning: ignoring file /Users/localmacaccount/Simulations/MG5_aMC_v3_3_1/HEPTools/madanalysis5/madanalysis5/tools/SampleAnalyzer/ExternalSymLink/Lib/libz.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
    Undefined symbols for architecture x86_64:
      "_gzclose", referenced from:
          MA5::gz_streambuf::~gz_streambuf() in gz_streambase.o
          MA5::gz_streambuf::close() in gz_streambase.o
      "_gzoffset", referenced from:
          MA5::gz_streambuf::tellg() in gz_streambase.o
      "_gzopen", referenced from:
          MA5::gz_streambuf::open(char const*, int) in gz_streambase.o
      "_gzread", referenced from:
          MA5::gz_streambuf::underflow() in gz_streambase.o
      "_gzwrite", referenced from:
          MA5::gz_streambuf::~gz_streambuf() in gz_streambase.o
          MA5::gz_streambuf::flush_buffer() in gz_streambase.o
          MA5::gz_streambuf::overflow(int) in gz_streambase.o
          MA5::gz_streambuf::sync() in gz_streambase.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make: *** [link] Error 1
    

    I have tried re-installing MadAnalysis after the OS update but it hasn't worked. Thanks!

    :question:question :hammer_and_wrench:Compilation 
    opened by snehadrid 20
  • Luminosity

    Luminosity

    Question

    Hi, i use MA5 version 2-8-3, when i set lumi = XXX , XXX any value not affect and i get same result in the S vs B, there is no change in table when luminosity change, i don't know where the problem comes. any comment?

    :question:question NormalMode 
    opened by GHOUAID 18
  • An endless warning

    An endless warning

    Question

    Hi, I am analysing a event file in the reconstructed-level mode with madanalysis v1.9.60.I intend to use all 13tev analysis, but the following warnings will appear when doing some analysis:

    WARNING: GenParticle corresponding to a vertex is not found in the gen table WARNING: GenParticle corresponding to a vertex is not found in the gen table WARNING: GenParticle corresponding to a vertex is not found in the gen table WARNING: GenParticle corresponding to a vertex is not found in the gen table WARNING: GenParticle corresponding to a vertex is not found in the gen table WARNING: GenParticle corresponding to a vertex is not found in the gen table WARNING: GenParticle corresponding to a vertex is not found in the gen table WARNING: GenParticle corresponding to a vertex is not found in the gen table WARNING: GenParticle corresponding to a vertex is not found in the gen table WARNING: GenParticle corresponding to a vertex is not found in the gen table

    They fill the whole screen and I don't know when it will stop.What should I do? Thank you for your answer.

    :question:question PAD Delphes 
    opened by Revue-Starlight-Topstar 16
  • MadAnalysis report does not quote number of events when executed with ROOT

    MadAnalysis report does not quote number of events when executed with ROOT

    Question

    Dear Madanalysis team,

    I am using normal mode. I noticed that the cut flow chart, after applying cuts, at the reconstruction level shows the weights of the events, instead of the number of events with respect to luminosity and cross-section. Could you please explain why the table doesn't show the number of events with respect to luminosity and cross-section, at the reconstruction level?

    Many thanks for any help or suggestion!

    Best

    NormalMode 
    opened by semlalisouad 16
  • Fastjet interface delphes

    Fastjet interface delphes

    Question

    Hi MadAnalysis5 team, Actually, i little bit confused during read MA5 manual, in how to reconstruction jets. all works that i have read, i found they use after hadronisation and showering, fastjet + delphes to reconstructing jets in same time, my question is that delphes_card take on consederation fastjet(b-tagging-, tau-tagging, mistag_rates ) without need to passe this step "set main.fastsim.package = fastjet" or i have to generate hadron_level events, and i use fastjet following this command "set main.fastsim.package = fastjet" then i store reconstruction jets events following by interfacing this events storing in delphes level via command "set main.fastsim.package = delphes" ?

    :question:question 
    opened by Es-said 14
  • .saf file not found

    .saf file not found

    Hello people of MA5 I am trying to run an analysis that contains 2,000,000 events but in the end of the compilation I get "File called dataset.saf not found" I guess it is the large number of events but I've done it in the past Thank you Dionysis

    invalid 
    opened by dionysisskouras 13
  • Issue: Using loaded dataset to set cuts without reload them

    Issue: Using loaded dataset to set cuts without reload them

    Question

    Hello,

    In Madgraph, we can generate a small dataset with some customized settings, then we can used the 'multirun' command to generate many datasets successively. I wonder if I can reuse the same one-time loaded dataset(s) to insert some cuts without the need to reload it again, as sometimes one works on a large dataset which takes long time to load in Madanalysis.

    Thanks and Regards

    Mustafa

    :question:question NormalMode 
    opened by Mustafa-Ashry 12
  • Questions about CLs_output_summary.dat

    Questions about CLs_output_summary.dat

    Question

    Hi @jackaraz After getting CLs_output_summary.dat in the reconstructed-level mode, I found a strange thing: CLs_output_summary.dat.txt A signal region [SL] - SRS A that does not exist in cms_sus_16_039.info appears on line 173. Its appearance makes the best signal region of cms_sus_16_039 not unique. And it has no corresponding value of efficiency and stat. Does [SL] - SRS A have any special meaning? Many thanks.

    :question:question PAD 
    opened by Revue-Starlight-Topstar 12
  • Can't run SampleAnalysis: wrong libLAPACK.dylib version

    Can't run SampleAnalysis: wrong libLAPACK.dylib version

    Question

    When I try to run fastjet on MadNalysis5, it gives me the error that: dyld: Library not loaded: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib Referenced from: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib Reason: Incompatible library version: vecLib requires version 1.0.0 or later, but libLAPACK.dylib provides version 0.0.0 MA5-ERROR: run over 'fourmuonspythia' aborted.

    And when I try to locate libLAPACK from my terminal, it gives me (base) dhcp-v025-087:/ mac$ locate libLAPACK.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib

    (base) dhcp-v025-087:/ mac$ locate liblapack.dylib /opt/miniconda3/envs/mac/lib/liblapack.dylib /opt/miniconda3/envs/py27/lib/liblapack.dylib /opt/miniconda3/pkgs/liblapack-3.9.0-13_osx64_openblas/lib/liblapack.dylib /opt/miniconda3/pkgs/liblapack-3.9.0-8_openblas/lib/liblapack.dylib /usr/lib/liblapack.dylib

    So I'm guessing even though I have the newer version of liblapack installed, my system is not case sensitive and only gives me the original version in my system. Is there a way to get around this?

    Version: MacOS 10.13.6 Python version: system->Python 3.10.4 but using Python 2.7.9 for MA5 MA5: 1.9.60

    Thank you!

    :question:question :hammer_and_wrench:Compilation 
    opened by tshelley200 11
  • ma5 `v2.0.4-beta` can not produce expert mode files in reco level

    ma5 `v2.0.4-beta` can not produce expert mode files in reco level

    Question

    I am interested in using ma5 to carried out jet substructure analysis, so I march to ma5 in v2.0.4-beta version. But I didn't successfully generate expert mode files in reconstructed level. The error report in the screen is shown as below. Additionally, I found that the generated main.cc file is not completed. I know v2 version is a beta version. If you could do me a favor, I would be grateful. I use ubuntu20 with python3.8. The delphes and the fastjet are installed by ma5 install options.

    MA5: Writing a 'Makefile'... Traceback (most recent call last): File "./bin/ma5", line 75, in madanalysis.core.launcher.LaunchMA5(version, date, ma5dir) File "/home/ys/work/MA5-2/madanalysis5-2.0.4_beta/madanalysis/core/launcher.py", line 430, in LaunchMA5 repeat = MainSession(mode,arglist,ma5dir,version,date) File "/home/ys/work/MA5-2/madanalysis5-2.0.4_beta/madanalysis/core/launcher.py", line 306, in MainSession if not expert.Copy(dirname,config=config_file): File "/home/ys/work/MA5-2/madanalysis5-2.0.4_beta/madanalysis/core/expert_mode.py", line 152, in Copy if not jobber.CreateBldDir(analysisName=title,outputName="user.saf"): File "/home/ys/work/MA5-2/madanalysis5-2.0.4_beta/madanalysis/IOinterface/job_writer.py", line 625, in CreateBldDir self.CreateMainFct(file,analysisName,outputName) File "/home/ys/work/MA5-2/madanalysis5-2.0.4_beta/madanalysis/IOinterface/job_writer.py", line 560, in CreateMainFct for item in self.main.multiparticles.Get("invisible"): File "/home/ys/work/MA5-2/madanalysis5-2.0.4_beta/madanalysis/multiparticle/multiparticle_collection.py", line 84, in Get return self.table[name] KeyError: 'invisible

    :bug:bug :question:question :mechanical_arm:ExpertMode 
    opened by fortuneteller-y 3
  • Extract observable specific data from event shower.

    Extract observable specific data from event shower.

    I'm sorry if this question could be better asked at madgraph as opposed to madanalysis, but I'm quite new and I don't understand the inner workings of either yet. I'm trying to shower a particle level event and from that event extract information on the observables e.g. differential cross section at different centre of mass energies or (and I don't understand jets that well yet) transverse momenta of certain jets. Essentially I would like the data out of which the histograms are made in the pdf report at parton or hadron level. Could you explain how to get this data in a way that a person who is not that familiar with coding could apply. I have heard of lhe reading software and for the unweighted events I've been able to extract this information, but not on the showered events. Thanks in advance.

    best, pim herbschleb

    :question:question NormalMode 
    opened by pimherbschleb 1
  • error in `set selection` command

    error in `set selection` command

    System Settings

    hp i7 python2.7 and python 3.10.6 gcc/g++ 11.3.0 madanalysis5 v1.9.60

    Describe the bug

    when I give command set selection[4].ymin = 1 it gives the following error

    ma5>import samples/ttbarlhe as ttbar MA5: -> Storing the file 'ttbar_sl_2.lhe' in the dataset 'ttbar'. MA5: -> Storing the file 'ttbar_fh.lhe.gz' in the dataset 'ttbar'. MA5: -> Storing the file 'ttbar_sl_1.lhe' in the dataset 'ttbar'. MA5: -> Storing the file 'ttbar_sl_2.lhe.gz' in the dataset 'ttbar'. MA5: -> Storing the file 'ttbar_sl_1.lhe.gz' in the dataset 'ttbar'. ma5>define l = l+ l- ma5>select (l) PT > 20 ma5>select (j) PT > 10 ma5>select (j) DELTAR (l) > 0.4 ma5>plot PT (l[1]) 50 0 500[logY] ma5>set selection[4].ymin = 1 Traceback (most recent call last): File "/home/abdul/madanalysis5/madanalysis5/./bin/ma5", line 77, in madanalysis.core.launcher.LaunchMA5(version, date, ma5dir) File "/home/abdul/madanalysis5/madanalysis5/madanalysis/core/launcher.py", line 430, in LaunchMA5 repeat = MainSession(mode,arglist,ma5dir,version,date) File "/home/abdul/madanalysis5/madanalysis5/madanalysis/core/launcher.py", line 334, in MainSession interpreter.cmdloop() File "/usr/lib/python3.10/cmd.py", line 138, in cmdloop stop = self.onecmd(line) File "/usr/lib/python3.10/cmd.py", line 217, in onecmd return func(arg) File "/home/abdul/madanalysis5/madanalysis5/madanalysis/interpreter/interpreter.py", line 133, in do_set self.cmd_set.do(self.split_arg(line),line) File "/home/abdul/madanalysis5/madanalysis5/madanalysis/interpreter/cmd_set.py", line 290, in do self.do_selection(args2) File "/home/abdul/madanalysis5/madanalysis5/madanalysis/interpreter/cmd_set.py", line 237, in do_selection self.main.selection[index-1].user_SetParameter(variable,args[6]) File "/home/abdul/madanalysis5/madanalysis5/madanalysis/selection/histogram.py", line 152, in user_SetParameter if tmp > self.ymax: TypeError: '>' not supported between instances of 'float' and 'list'

    To Reproduce

    ma5>import samples/ttbarlhe as ttbar MA5: -> Storing the file 'ttbar_sl_2.lhe' in the dataset 'ttbar'. MA5: -> Storing the file 'ttbar_fh.lhe.gz' in the dataset 'ttbar'. MA5: -> Storing the file 'ttbar_sl_1.lhe' in the dataset 'ttbar'. MA5: -> Storing the file 'ttbar_sl_2.lhe.gz' in the dataset 'ttbar'. MA5: -> Storing the file 'ttbar_sl_1.lhe.gz' in the dataset 'ttbar'. ma5>define l = l+ l- ma5>select (l) PT > 20 ma5>select (j) PT > 10 ma5>select (j) DELTAR (l) > 0.4 ma5>plot PT (l[1]) 50 0 500[logY] ma5>set selection[4].ymin = 1 Traceback (most recent call last): File "/home/abdul/madanalysis5/madanalysis5/./bin/ma5", line 77, in madanalysis.core.launcher.LaunchMA5(version, date, ma5dir) File "/home/abdul/madanalysis5/madanalysis5/madanalysis/core/launcher.py", line 430, in LaunchMA5 repeat = MainSession(mode,arglist,ma5dir,version,date) File "/home/abdul/madanalysis5/madanalysis5/madanalysis/core/launcher.py", line 334, in MainSession interpreter.cmdloop() File "/usr/lib/python3.10/cmd.py", line 138, in cmdloop stop = self.onecmd(line) File "/usr/lib/python3.10/cmd.py", line 217, in onecmd return func(arg) File "/home/abdul/madanalysis5/madanalysis5/madanalysis/interpreter/interpreter.py", line 133, in do_set self.cmd_set.do(self.split_arg(line),line) File "/home/abdul/madanalysis5/madanalysis5/madanalysis/interpreter/cmd_set.py", line 290, in do self.do_selection(args2) File "/home/abdul/madanalysis5/madanalysis5/madanalysis/interpreter/cmd_set.py", line 237, in do_selection self.main.selection[index-1].user_SetParameter(variable,args[6]) File "/home/abdul/madanalysis5/madanalysis5/madanalysis/selection/histogram.py", line 152, in user_SetParameter if tmp > self.ymax: TypeError: '>' not supported between instances of 'float' and 'list'

    Expected behaviour

    No response

    Log files

    No response

    Additional information

    No response

    :bug:bug NormalMode 
    opened by 834abdulquddus 1
  • Error when using import <dirname> command

    Error when using import command

    I've installed MadAnalysis5 v. 1.9.60 and am attempting to run MadAnalysis in Normal Mode on the set of samples that can be obtained by doing install samples. So I've done:

    ./bin/ma5 
    install samples
    import samples/ttbar*lhe* as ttbar
    define l = l+ l-
    plot PT(l[1]) 50 0 500
    submit ttbarPlot
    

    This mostly gives me the expected output, which I will attach at ttbarPlot.zip. However, I'm confused about two aspects of the documentation. p. 59 states that "As an output, a Root file [57] is generated so that the analysis can be accessed later, as, e.g., directly in the Root framework or in a new session of MadAnalysis 5. In this last case, the SampleAnalyzer (executed) job can be imported by means of the command import: import <dirname>"

    I have not been able to see a ROOT file. Could you point me to where it can be found, or do I misunderstand the expected output?

    I also have not been able to get the import <dirname> command to work. In a fresh MadAnalysis5 session, import ttbarPlot results in an error. I will paste the output below. I'm not sure if I misunderstand how this import command should be used, or if this is a bug resulting from the use of input as a variable name on L168-171 of cmd_import.py. Any help would be much appreciated.

    [[email protected] madanalysis5$ ./bin/ma5 
    MA5: 
    MA5: *************************************************************
    MA5: *                                                           *
    MA5: *        W E L C O M E  to  M A D A N A L Y S I S  5        *
    MA5: *                         ______  ______                    *
    MA5: *                 /'\_/`\/\  __ \/\  ___\                   *
    MA5: *                /\      \ \ \_\ \ \ \__/                   *
    MA5: *                \ \ \__\ \ \  __ \ \___``\                 *
    MA5: *                 \ \ \_/\ \ \ \/\ \/\ \_\ \                *
    MA5: *                  \ \_\\ \_\ \_\ \_\ \____/                *
    MA5: *                   \/_/ \/_/\/_/\/_/\/___/                 *
    MA5: *                                                           *
    MA5: *   MA5 release : 1.9.60                       2021/12/13   *
    MA5: *                                                           *
    MA5: *         Comput. Phys. Commun. 184 (2013) 222-256          *
    MA5: *             Eur. Phys. J. C74 (2014) 3103                 *
    MA5: *                                                           *
    MA5: *   The MadAnalysis Development Team - Please visit us at   *
    MA5: *            https://launchpad.net/madanalysis5             *
    MA5: *                                                           *
    MA5: *              Type 'help' for in-line help.                *
    MA5: *                                                           *
    MA5: *************************************************************
    MA5: Platform: Darwin 19.6.0 [MAC/OSX mode]
    MA5: Reading user settings ...
    MA5: Checking mandatory packages:
    MA5:      - Python                   [OK]
    MA5:      - GNU GCC g++              [OK]
    MA5:      - GNU Make                 [OK]
    MA5: Checking optional packages devoted to data processing:
    MA5:      - Zlib                     [DISABLED]
    MA5:      - FastJet                  [OK]
    MA5:      - Root                     [OK]
    MA5:      - Delphes                  [DISABLED]
    MA5:      - Delphes-MA5tune          [DISABLED]
    MA5: Checking the MadAnalysis 5 core library:
    MA5:   => MadAnalysis libraries found.
    MA5:   => MadAnalysis test program works.
    MA5: Reading user settings ...
    MA5: Checking optional packages devoted to reinterpretation:
    MA5:      - SciPy                    [OK]
    MA5:      - PAD                      [DISABLED]
    MA5:      - PADForMA5tune            [DISABLED]
    MA5:      - PADForSFS                [DISABLED]
    MA5:      - pyhf                     [OK]
    MA5: Checking optional packages devoted to histogramming:
    MA5:      - Root                     [OK]
    MA5:      - Matplotlib               [OK]
    MA5:      - gnuplot                  [DISABLED]
    MA5-WARNING: gnuplot disabled. Plots in gnuplot format file will not be produced.
    MA5:      - pdflatex                 [OK]
    MA5:      - latex                    [OK]
    MA5: Package used for graphical rendering: Root
    MA5: *************************************************************
    MA5: Particle labels exported from madanalysis/input/particles_name_default.txt
    MA5:   => 87 particles successfully exported.
    MA5: Multiparticle labels exported from madanalysis/input/multiparticles_default.txt
    MA5:   => Creation of the label 'invisible' (-> missing energy).
    MA5:   => Creation of the label 'hadronic' (-> jet energy).
    MA5:   => 8 multiparticles successfully exported.
    ma5>import ttbarPlot
    MA5: SampleAnalyzer job folder is detected
    MA5: Restore MadAnalysis configuration used for this job ...
    MA5-WARNING: You are going to reinitialize MadAnalysis 5. The current configuration will be lost.
    MA5-WARNING: Are you sure to do that ? (Y/N)
    Traceback (most recent call last):
      File "/Applications/madanalysis5/./bin/ma5", line 77, in <module>
        madanalysis.core.launcher.LaunchMA5(version, date, ma5dir)
      File "/Applications/madanalysis5/madanalysis/core/launcher.py", line 430, in LaunchMA5
        repeat = MainSession(mode,arglist,ma5dir,version,date)
      File "/Applications/madanalysis5/madanalysis/core/launcher.py", line 334, in MainSession
        interpreter.cmdloop()
      File "/usr/local/Cellar/[email protected]/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/cmd.py", line 138, in cmdloop
        stop = self.onecmd(line)
      File "/usr/local/Cellar/[email protected]/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/cmd.py", line 217, in onecmd
        return func(arg)
      File "/Applications/madanalysis5/madanalysis/interpreter/interpreter.py", line 205, in do_import
        self.cmd_import.do(self.split_arg(line),self,self.history)
      File "/Applications/madanalysis5/madanalysis/interpreter/cmd_import.py", line 83, in do
        self.ImportJob(filename,myinterpreter,history)
      File "/Applications/madanalysis5/madanalysis/interpreter/cmd_import.py", line 148, in ImportJob
        answer=input("Answer: ")
    UnboundLocalError: local variable 'input' referenced before assignment
    

    ttbarPlot.zip

    :bug:bug NormalMode 
    opened by robinhayes 2
  • card 'madanalysis5_hadron_card.dat' is not created

    card 'madanalysis5_hadron_card.dat' is not created

    System Settings

    Madanalysis5 version: 1.10.4 python -version: 3.9.13 gcc -version: 8.5.0

    Describe the bug

    hi experts

    I use MG5_aMC version 3_4_1 and Madanalysis5 version 1.10.4. When I try to generate any process with madanalysis5 outputs, I get the error below: Command "launch auto " interrupted with error: IsADirectoryError : [Errno 21] Is a directory: '/home/kada/MG5_aMC_v3_4_1/ppHZnlo_HPO/Cards/madanalysis5_hadron_card.dat'

    If there is a way to fix this?

    cordially.

    Meziani

    To Reproduce

    Command "launch auto " interrupted with error: IsADirectoryError : [Errno 21] Is a directory: '/home/kada/MG5_aMC_v3_4_1/ppHZnlo_HPO/Cards/madanalysis5_hadron_card.dat' Please report this bug on https://bugs.launchpad.net/mg5amcnlo

    Expected behaviour

    No response

    Log files

    No response

    Additional information

    No response

    :bug:bug NormalMode MG5 
    opened by Mohamed-Meziani 4
Releases(v2.0.4_beta)
  • v2.0.4_beta(Jul 18, 2022)

    This prerelease includes improvements on the SFS module, which comes with the capability of Jet substructure analyses. The main goals of this release are as follows:

    • Provide a user-friendly interface for jet substructure tools (only in expert mode).
    • Enable multiple jet definitions in a given analysis (expert and normal mode).
    • Enable jet-based tau tagging (expert and normal mode).
    • Enable multi-level jet tagging (expert and normal mode).
    • Enable modifiable C Jet matching (expert and normal mode).

    Note: This release is a beta version. Hence may include unstable behaviour. Please report any problems in our dedicated issues section alongside with necessary information.

    What's Changed

    The software changelog for v2.0 can be found in changelog-v2.0.md.

    This release includes the following PRs:

    • Jet Substructure in https://github.com/MadAnalysis/madanalysis5/pull/13
    • Separate running mode for Delphes and SFS-FastJet in https://github.com/MadAnalysis/madanalysis5/pull/53
    • Substructure to Shared Library in https://github.com/MadAnalysis/madanalysis5/pull/63
    • Multi-level object tagging in https://github.com/MadAnalysis/madanalysis5/pull/97
    • Tagging remastered in https://github.com/MadAnalysis/madanalysis5/pull/86

    Full Changelog: https://github.com/MadAnalysis/madanalysis5/compare/v1.10.3...v2.0.4_beta

    Source code(tar.gz)
    Source code(zip)
  • v1.10.4(Jul 18, 2022)

    This release concentrates on transitioning to the c++11 environment for the SampleAnalyzer backend and improving the LHC interpretation interface.

    • Implementation of simplified and full likelihoods in the LHC recasting (recast mode) (details in arXiv: 2206.14870 [hep-ph]).
    • Improvements in code structure and transitioning to c++11 environment.
    • Additional functionalities for expert mode analysis to simplify the analysis structure.
    • Externalization of python based third-party software.
    • Usage of the software is now limited to python v3.6+.

    What's Changed

    The software changelog for v1.10 can be found in changelog-v1.10.md.

    This release includes the following PRs:

    • minor fix to avoid NaN in CLs_output following issue #3 by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/4
    • Full likelihoods by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/5
    • Core update by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/10
    • PADForSFS mass execution crash bugfix by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/17
    • Documentation on Pull Requests by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/14
    • Vectorized SR declaration for cut initialization by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/29
    • Declaration for required Python libraries for the usage of the entire framework by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/31
    • Test interface by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/20
    • Workflow and Changelog by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/54
    • update copyright dates by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/57
    • ntracks have been moved to RecParticleFormat by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/56
    • fixing issue #52 by @BFuks in https://github.com/MadAnalysis/madanalysis5/pull/64
    • Warning messages by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/51
    • Improvements in validation suite by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/59
    • Deprecate python based third-party software installation by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/68
    • Global hadronic and invisible particle declaration by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/66
    • Check release updates by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/65
    • Bugfix for covariance matrix construction for simplified likelihoods by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/88
    • Bug fix in version check message by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/91
    • Extend debug mode message by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/90
    • Update ma5 by @BFuks in https://github.com/MadAnalysis/madanalysis5/pull/92
    • Bug fix in error handling by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/95
    • Bugfix in SL interface by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/93
    • Fix the random seed by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/96
    • Fixes conventions, adding collision type for jet clustering algos, fi… by @econte-cms in https://github.com/MadAnalysis/madanalysis5/pull/101
    • Bugfix in RecEventFormat Memory allocation by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/100
    • Update references by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/105
    • Bugfix in expert-reco mode initiation by @jackaraz in https://github.com/MadAnalysis/madanalysis5/pull/111

    Full Changelog: https://github.com/MadAnalysis/madanalysis5/compare/v1.9.60...v1.10.4

    Source code(tar.gz)
    Source code(zip)
  • v1.10.3(Jul 1, 2022)

  • v1.9.60(Jan 12, 2022)

    • Adding support for LLP also in the SFS.
    • Particle propagation module.
    • PYHF/simplified likelihood interface.
    • TACO methods are available.
    • Python3 support.
    • Connection of the PAD to the MA5 dataverse + reorganisation of how it works.
    • Many minor bug fixes.
    • Update to newer Delphes/Root versions
    Source code(tar.gz)
    Source code(zip)
Owner
MadAnalysis
A package for event file analysis and recasting of LHC results
MadAnalysis
Weighing Counts: Sequential Crowd Counting by Reinforcement Learning

LibraNet This repository includes the official implementation of LibraNet for crowd counting, presented in our paper: Weighing Counts: Sequential Crow

Hao Lu 18 Nov 05, 2022
This is an official implementation for "Video Swin Transformers".

Video Swin Transformer By Ze Liu*, Jia Ning*, Yue Cao, Yixuan Wei, Zheng Zhang, Stephen Lin and Han Hu. This repo is the official implementation of "V

Swin Transformer 981 Jan 03, 2023
Flower - A Friendly Federated Learning Framework

Flower - A Friendly Federated Learning Framework Flower (flwr) is a framework for building federated learning systems. The design of Flower is based o

Adap 1.8k Jan 01, 2023
A super lightweight Lagrangian model for calculating millions of trajectories using ERA5 data

Easy-ERA5-Trck Easy-ERA5-Trck Galleries Install Usage Repository Structure Module Files Version iteration Easy-ERA5-Trck is a super lightweight Lagran

Zhenning Li 26 Nov 19, 2022
Official implementation of Deep Reparametrization of Multi-Frame Super-Resolution and Denoising

Deep-Rep-MFIR Official implementation of Deep Reparametrization of Multi-Frame Super-Resolution and Denoising Publication: Deep Reparametrization of M

Goutam Bhat 39 Jan 04, 2023
Torch code for our CVPR 2018 paper "Residual Dense Network for Image Super-Resolution" (Spotlight)

Residual Dense Network for Image Super-Resolution This repository is for RDN introduced in the following paper Yulun Zhang, Yapeng Tian, Yu Kong, Bine

Yulun Zhang 494 Dec 30, 2022
Code for: Imagine by Reasoning: A Reasoning-Based Implicit Semantic Data Augmentation for Long-Tailed Classification

Imagine by Reasoning: A Reasoning-Based Implicit Semantic Data Augmentation for Long-Tailed Classification Prerequisite PyTorch = 1.2.0 Python3 torch

16 Dec 14, 2022
GAN example for Keras. Cuz MNIST is too small and there should be something more realistic.

Keras-GAN-Animeface-Character GAN example for Keras. Cuz MNIST is too small and there should an example on something more realistic. Some results Trai

160 Sep 20, 2022
🍷 Gracefully claim weekly free games and monthly content from Epic Store.

EPIC 免费人 🚀 优雅地领取 Epic 免费游戏 Introduction 👋 Epic AwesomeGamer 帮助玩家优雅地领取 Epic 免费游戏。 使用 「Epic免费人」可以实现如下需求: get:搬空游戏商店,获取所有常驻免费游戏与免费附加内容; claim:领取周免游戏及其免

571 Dec 28, 2022
High performance, easy-to-use, and scalable machine learning (ML) package, including linear model (LR), factorization machines (FM), and field-aware factorization machines (FFM) for Python and CLI interface.

What is xLearn? xLearn is a high performance, easy-to-use, and scalable machine learning package that contains linear model (LR), factorization machin

Chao Ma 3k Jan 03, 2023
AoT is a system for automatically generating off-target test harness by using build information.

AoT: Auto off-Target Automatically generating off-target test harness by using build information. Brought to you by the Mobile Security Team at Samsun

Samsung 10 Oct 19, 2022
This repository contains the code for the paper "PIFu: Pixel-Aligned Implicit Function for High-Resolution Clothed Human Digitization"

PIFu: Pixel-Aligned Implicit Function for High-Resolution Clothed Human Digitization News: [2020/05/04] Added EGL rendering option for training data g

Shunsuke Saito 1.5k Jan 03, 2023
Object detection (YOLO) with pytorch, OpenCV and python

Real Time Object/Face Detection Using YOLO-v3 This project implements a real time object and face detection using YOLO algorithm. You only look once,

1 Aug 04, 2022
Background Matting: The World is Your Green Screen

Background Matting: The World is Your Green Screen By Soumyadip Sengupta, Vivek Jayaram, Brian Curless, Steve Seitz, and Ira Kemelmacher-Shlizerman Th

Soumyadip Sengupta 4.6k Jan 04, 2023
Angular & Electron desktop UI framework. Angular components for native looking and behaving macOS desktop UI (Electron/Web)

Angular Desktop UI This is a collection for native desktop like user interface components in Angular, especially useful for Electron apps. It starts w

Marc J. Schmidt 49 Dec 22, 2022
we propose a novel deep network, named feature aggregation and refinement network (FARNet), for the automatic detection of anatomical landmarks.

Feature Aggregation and Refinement Network for 2D Anatomical Landmark Detection Overview Localization of anatomical landmarks is essential for clinica

aoyueyuan 0 Aug 28, 2022
Use deep learning, genetic programming and other methods to predict stock and market movements

StockPredictions Use classic tricks, neural networks, deep learning, genetic programming and other methods to predict stock and market movements. Both

Linda MacPhee-Cobb 386 Jan 03, 2023
Imagededup - 😎 Finding duplicate images made easy

imagededup is a python package that simplifies the task of finding exact and near duplicates in an image collection.

idealo 4.3k Jan 07, 2023
You are AllSet: A Multiset Function Framework for Hypergraph Neural Networks.

AllSet This is the repo for our paper: You are AllSet: A Multiset Function Framework for Hypergraph Neural Networks. We prepared all codes and a subse

Jianhao 51 Dec 24, 2022
这是一个unet-pytorch的源码,可以训练自己的模型

Unet:U-Net: Convolutional Networks for Biomedical Image Segmentation目标检测模型在Pytorch当中的实现 目录 性能情况 Performance 所需环境 Environment 注意事项 Attention 文件下载 Downl

Bubbliiiing 567 Jan 05, 2023