MadGraph is a integrated event generator for the high energy phisics and widely used in that field.
This docker image significantly simplifies the process to use MadGraph.
You need to install docker first. Check here.
docker pull hfukuda/madgraph
This container uses model files in /var/UFO_models and outputs in /var/MG_outputs.
So you should indicate these folders like this:
docker run -t -i -v $HOME/models:/var/UFO_models -v $HOME/outputs:/var/MG_outputs hfukuda/madgraph
Note that the local path must be an absolute, not a relative one.
To use madevent for a process named PROC_NAME
, you can run
docker run -it --rm -v $HOME/outputs:/var/MG_outputs -w /var/MG_outputs/PROC_NAME hfukuda/madgraph bin/madevent
By default, the madgraph run as root. If you want to run it as the current user, add --user=$(id -u):$(id -g)
like this:
docker run -t -i --user=$(id -u):$(id -g) -v $HOME/models:/var/UFO_models -v $HOME/outputs:/var/MG_outputs hfukuda/madgraph
Note that $HOME/outputs
must exist beforehand. Otherwise madgraph doesn't work well due to the permission problem.