3
# This runs Delphes 3 on the pythia_events.hep
5
# Usage: run_delphes3 [delphes3dir [para/serial [run_name]]]
6
# where delphes3dir is the path to the delphes3 executable
15
if [ ! -e ../Cards/delphes_card.dat ]; then
16
echo "No delphes_card.dat found. Quitting..."
20
if [ ! -e $delphesdir/DelphesSTDHEP ]; then
21
echo "No Delphes executable found at $delphesdir/DelphesSTDHEP. Quitting..."
25
echo $$ >> ../myprocid
27
# Set delphes path in delphes_card.dat
29
$delphesdir/DelphesSTDHEP ../Cards/delphes_card.dat delphes.root pythia_events.hep
30
$delphesdir/root2lhco delphes.root delphes_events.lhco
32
if [ -e delphes_events.lhco ]; then
33
# write the delphes banner
34
sed -e "s/^/#/g" ${run}/${run}_${tag}_banner.txt > ${run}/${tag}_delphes_events.lhco
35
echo "## Integrated weight (pb) : ${cross}" >> ${run}/${tag}_delphes_events.lhco
36
cat delphes_events.lhco >> ${run}/${tag}_delphes_events.lhco
37
rm -f delphes_events.lhco