~maddevelopers/mg5amcnlo/WWW5_caching

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
#
#  This runs pythia on the unweighted_events.dat
#
#  Usage: run_pythia [pydir]
#  where pydir is the path to the pythia executable

pydir=$1
main=`pwd`

if [ ! -e ../Cards/pythia_card.dat ]; then
  echo "No pythia_card.dat found. Quitting..."
  exit
fi

echo $$ >> ../myprocid
# shower and hadronize event through Pythia
echo " " >> ../Cards/pythia_card.dat
echo "      LHAPATH=$pydir/PDFsets" >> ../Cards/pythia_card.dat
export PDG_MASS_TBL=$pydir/mass_width_2004.mc

$pydir/pythia && touch pythia.done