~maddevelopers/mg5amcnlo/WWW_tg

« back to all changes in this revision

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

  • Committer: Martin Delcourt
  • Date: 2013-03-25 20:56:51 UTC
  • Revision ID: mdel@perso.be-20130325205651-f3bisj4z2jlfyjh3
added test et test2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
#
3
 
#  This runs hep2lhe on the unweighted_events.dat
4
 
#
5
 
#  Usage: run_hep2lhe [pydir  [run_name]]
6
 
#  where pydir is the path to the hep2lhe executable
7
 
 
8
 
pydir=$1
9
 
 
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
 
 
18
 
rm -f hep2lhe.log > /dev/null
19
 
rm -f hep2lhe.err > /dev/null
20
 
rm -f hep2lhe.out > /dev/null
21
 
 
22
 
echo "Running hep2lhe"
23
 
$pydir/hep2lhe >& hep2lhe.log
24
 
 
25
 
echo "pythia_events.lhe file generated, with simple jet clustering"
26
 
echo "Warning! Never use this file for detector studies!"
27
 
 
28
 
if [ -e pythia_events.lhe ] && [ -e pythia_events.init ]; then
29
 
   echo "<LesHouchesEvents version=\"1.0\">" > temp.lhe
30
 
   cat pythia_events.init >> temp.lhe
31
 
   cat pythia_events.lhe >> temp.lhe
32
 
   mv temp.lhe pythia_events.lhe
33
 
   rm pythia_events.init
34
 
fi
 
 
b'\\ No newline at end of file'