Page MenuHomeHEPForge
Authored By
aidin
May 31 2023, 3:48 PM
Size
1 KB
Referenced Files
None
Subscribers
None

MG_make.sh

#!/bin/bash
MG="docker run -i --rm -u `id -u $USER`:`id -g` -v $PWD:$PWD -w $PWD herwigcollaboration/herwig-7.3:7.3.0 mg5_aMC"
RB="docker run -i --rm -u `id -u $USER`:`id -g` -v $PWD:$PWD -w $PWD herwigcollaboration/herwig-7.3:7.3.0 rivet-build"
# setup file for RS to be stored
File="MG_setup.dat"
DIR="yyll"
if [ -d "$DIR" ]; then
echo "$DIR already exists, skipping"
else
echo "import model sm" >> $File
echo "define p = g u c d s u~ c~ d~ s~" >> $File
echo "define l+ = e+ mu+" >> $File
echo "define l- = e- mu-" >> $File
echo "define p = a g u c d s u~ c~ d~ s~" >> $File
echo "define j = g u c d s u~ c~ d~ s~" >> $File
echo "define l+ = e+ mu+ ta+" >> $File
echo "define l- = e- mu- ta-" >> $File
echo "define vl = ve vm vt" >> $File
echo "define vl~ = ve~ vm~ vt~" >> $File
echo "generate a a > l+ l-" >> $File
echo "output madevent "$DIR" -nojpeg" >> $File
fi
$MG $File
rm $File
if [ -d "$DIR" ]; then
cp param_card.dat $DIR/Cards/param_card.dat
cp run_card.dat $DIR/Cards/run_card.dat
echo "autoupdate 0" >> $File
echo "launch "$DIR >> $File
fi
$MG $File
rm py.py MG5_debug $File
# compiling rivet analysis
$RB Rivet.so RivetAnalysis_yy.cc
export RIVET_ANALYSIS_PATH=$PWD
echo ""
echo "Done"

File Metadata

Mime Type
text/x-shellscript
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1283780
Default Alt Text
MG_make.sh (1 KB)

Event Timeline