61,70c61,66 < #if [ -f rootinput.txt ] < #then < # rm -f rootinput.txt < #fi < #echo ".x combine_root.C" >> rootinput.txt < #echo ".q" >> rootinput.txt < # < #root -b < rootinput.txt < # < #rm -f rootinput.txt --- > if [ -f rootinput.txt ] > then > rm -f rootinput.txt > fi > echo ".x combine_root.C" >> rootinput.txt > echo ".q" >> rootinput.txt 72,77c68,70 < listInput="" < nlines=`cat temp_root_files.txt | wc -l` < for i in `seq 3 $nlines`; do < listInput=" $listInput `head -n$i temp_root_files.txt | tail -n1`" < done < hadd $thisdir/MADatNLO.root $listInput --- > root -b < rootinput.txt > > rm -f rootinput.txt