3
# This runs hep2lhe on the unweighted_events.dat
5
# Usage: run_hep2lhe [pydir [run_name]]
6
# where pydir is the path to the hep2lhe executable
11
if [ ! -e ../Cards/pythia_card.dat ]; then
12
echo "No pythia_card.dat found. Quitting..."
16
echo $$ >> ../myprocid
18
rm -f hep2lhe.log > /dev/null
19
rm -f hep2lhe.err > /dev/null
20
rm -f hep2lhe.out > /dev/null
22
echo "Running hep2lhe"
23
$pydir/hep2lhe >& hep2lhe.log
25
echo "pythia_events.lhe file generated, with simple jet clustering"
26
echo "Warning! Never use this file for detector studies!"
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
b'\\ No newline at end of file'