~maddevelopers/mg5amcnlo/WWW5_caching

« back to all changes in this revision

Viewing changes to users/mardelcourt/PROC_427003/PROC_427003/bin/internal/run_pgs

  • 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 pgs on the pythia_events.hep
 
4
#
 
5
#  Usage: run_pgs [pgsdir [para/serial [run_name]]]
 
6
#  where pgsdir is the path to the pgs executable
 
7
 
 
8
pgsdir=$1
 
9
main=`pwd`
 
10
run=$2
 
11
 
 
12
if [ ! -e ../Cards/pgs_card.dat ]; then
 
13
  echo "No pgs_card.dat found. Quitting..."
 
14
  exit
 
15
fi
 
16
 
 
17
echo $$ >> ../myprocid
 
18
 
 
19
export PDG_MASS_TBL=$pgsdir/mass_width_2004.mc
 
20
 
 
21
  $pgsdir/pgs  --stdhep pythia_events.hep --nev 100000 --L0 --detector ../Cards/pgs_card.dat pgs_uncleaned_events.lhco \
 
22
   && $pgsdir/clean_output -muon pgs_uncleaned_events.lhco pgs_events.lhco && \
 
23
   touch pgs.done
 
24
   
 
25
# Remove tauola output file
 
26
rm -f fort.45 > /dev/null