Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F1993095
MG_make.sh
aidin (aidin masouminia)
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Authored By
aidin
May 31 2023, 4:31 PM
2023-05-31 16:31:47 (UTC+1)
Size
1 KB
Referenced Files
None
Subscribers
None
MG_make.sh
View Options
#!/bin/bash
# define main commands
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 MG proc file 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
# build the matrix elements
$MG
$File
# replace parameter and run cards and set up the run
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
# run MadGraph ro generate unweighted events
$MG
$File
# clean up
rm py.py MG5_debug
$File
# compile Rivet analysis
$RB
Rivet.so RivetAnalysis_yy.cc
export
RIVET_ANALYSIS_PATH
=
$PWD
echo
"Done"
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1283814
Default Alt Text
MG_make.sh (1 KB)
Attached To
Mode
Photon-induced simulations in Herwig
Attached
Detach File
Event Timeline
Log In to Comment