Skip to main content

Generation, simulation, analysis, and statistical inference in one go.

Project description

mario-mapyde v0.2.3

MaPyDe stands for MadGraph-Pythia-Delphes which is a utility that allows one to run all of the various HEP toolings or chain them together and perform a quick analysis with the results, such as running CERN ATLAS SimpleAnalysis or pyhf.


Actions Status Documentation Status

PyPI version Conda-Forge PyPI platforms

GitHub Discussion ReadTheDocs

Docker Images

Docker images are made available in our container registry.

docker pull ghcr.io/scipp-atlas/mario-mapyde/madgraph
docker pull ghcr.io/scipp-atlas/mario-mapyde/delphes
docker pull ghcr.io/scipp-atlas/mario-mapyde/pyplotting

If you want to run on a machine with an NVidia GPU and use it for limit setting with pyhf, then there's a container for that too:

docker pull ghcr.io/scipp-atlas/mario-mapyde/pyplotting-cuda

Running

Everyone is centralized around the concept of providing a user configuration file that references a template. By default, defaults.toml is used (if not specified). These configuration files significantly control how to run or execute the various steps in the chain of mapyde. Use the command line interface to get started:

# display the help
mapyde --help

# display the prefix path for data cards shipped with mapyde
mapyde --prefix cards

# parse and display the config
mapyde config parse user.toml

# run all steps
maypde run all user.toml

# run only madgraph
mapyde run madgraph user.toml

# display the help for running
mapyde run --help

Configuration Details

There are a lot of different configuration options one can specify. For right now, the user is asked to look at defaults.toml, run mapyde config parse user.toml, open a discussion, or look at the source code.

MadGraph

Produces a hepmc file. You can:

  • specify process, param, and run cards
    • define particle masses in config file
    • define additional kinematic cuts to apply at parton level
  • specify pythia card
  • define center of mass energy

Delphes

Run a parameterized detector simulation, outputting a ROOT file. You can:

  • specify Delphes card

Analysis

Analyze the Delphes output, which could be user-provided analysis code. There are some scripts already provided for you:

  • scripts/Delphes2SA.py will make an ntuple that can be parsed by SimpleAnalysis for limit setting.
  • scripts/SimpleAna.py will make a generic "flat" ntuple in a ROOT file.
  • scripts/muscan.py will use pyhf to perform a mu-scan and compute upper-limits for a public likelihood injected with results from SimpleAnalysis.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mapyde-0.2.3.tar.gz (269.2 kB view details)

Uploaded Source

Built Distribution

mapyde-0.2.3-py3-none-any.whl (358.9 kB view details)

Uploaded Python 3

File details

Details for the file mapyde-0.2.3.tar.gz.

File metadata

  • Download URL: mapyde-0.2.3.tar.gz
  • Upload date:
  • Size: 269.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for mapyde-0.2.3.tar.gz
Algorithm Hash digest
SHA256 8a0dfe8017c937bcbe04d45e6a4c318de32a4b0f1f34252f1a2d8e633bcd00c8
MD5 878f0757e77df876c461f29a28704af1
BLAKE2b-256 beabe77fe73197df1f7d5fcf4caa93537cb5426bfe70ece50852201de1bc9b6b

See more details on using hashes here.

File details

Details for the file mapyde-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: mapyde-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 358.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for mapyde-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fbc0129991ade980c18e25ea9d4f9c44e273f41896292a9c5c7112c82caf49df
MD5 7a35c2ca93deb2c3b5a3f7fa33d87169
BLAKE2b-256 e2d84080ecd03234cbbd95b04e4bd7620d9e70236ed140fe7962df93e654df79

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page