~maddevelopers/mg5amcnlo/WWW5_caching

« back to all changes in this revision

Viewing changes to users/mardelcourt/PROC_129738/PROC_129738/bin/internal/run_pythia

  • Committer: John Doe
  • Date: 2013-03-25 20:27:02 UTC
  • Revision ID: john.doe@gmail.com-20130325202702-5sk3t1r8h33ca4p4
first clean version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
#
 
3
#  This runs pythia on the unweighted_events.dat
 
4
#
 
5
#  Usage: run_pythia [pydir]
 
6
#  where pydir is the path to the pythia executable
 
7
 
 
8
pydir=$1
 
9
main=`pwd`
 
10
 
 
11
if [ ! -e ../Cards/pythia_card.dat ]; then
 
12
  echo "No pythia_card.dat found. Quitting..."
 
13
  exit
 
14
fi
 
15
 
 
16
echo $$ >> ../myprocid
 
17
# shower and hadronize event through Pythia
 
18
echo " " >> ../Cards/pythia_card.dat
 
19
echo "      LHAPATH=$pydir/PDFsets" >> ../Cards/pythia_card.dat
 
20
export PDG_MASS_TBL=$pydir/mass_width_2004.mc
 
21
 
 
22
$pydir/pythia && touch pythia.done
 
23