Skip to content

Instantly share code, notes, and snippets.

@veprbl
Last active August 29, 2015 14:10
Show Gist options
  • Save veprbl/6a28bbbaec7998998d29 to your computer and use it in GitHub Desktop.
Save veprbl/6a28bbbaec7998998d29 to your computer and use it in GitHub Desktop.
#!/bin/sh
wget http://fastnlo.hepforge.org/code/other/nlojet++-4.1.3-patched.tar.gz
wget http://fastnlo.hepforge.org/code/other/fastjet-3.0.6.tar.gz
wget http://fastnlo.hepforge.org/code/other/qcdnum-17.00.06-patched.tar.gz
wget http://fastnlo.hepforge.org/code/other/lhapdf-5.9.1.tar.gz
wget http://fastnlo.hepforge.org/code/v23/fastnlo_toolkit-2.3.1pre-1871.tar.gz
wget http://fastnlo.hepforge.org/code/v23/fastnlo_interface_nlojet-2.3.1pre-1855.tar.gz
for i in *.tar.gz; do
tar zxf $i
done
INSTALLDIR=`pwd`
JOB_COUNT=-j2
pushd nlojet++-4.1.3
./configure --prefix=${INSTALLDIR} || exit 1
make install ${JOB_COUNT} || exit 1
popd
pushd fastjet-3.0.6
./configure --prefix=${INSTALLDIR} --enable-allplugins || exit 1
make install ${JOB_COUNT} || exit 1
popd
pushd qcdnum-17-00-06
./makelibs || exit 1
popd
pushd lhapdf-5.9.1
./configure --prefix=${INSTALLDIR} || exit 1
make install ${JOB_COUNT} || exit 1
popd
pushd fastnlo_toolkit-2.3.1pre-1871
./configure --prefix=${INSTALLDIR} --with-lhapdf=${INSTALLDIR} --with-qcdnum=${INSTALLDIR}/qcdnum-17-00-06 || exit 1
make install ${JOB_COUNT} || exit 1
popd
pushd fastnlo_interface_nlojet-2.3.1pre-1855
./configure --prefix=${INSTALLDIR} --with-nlojet=${INSTALLDIR} --with-fnlotoolkit=${INSTALLDIR} --with-fastjet=${INSTALLDIR} || exit 1
make install ${JOB_COUNT} || exit 1
popd
cp fastnlo_interface_nlojet-2.3.1pre-1855/interface/data/fnl2342b_v22_fix.str InclusiveJets.str
bin/nlojet++ --calculate -cnlo -s25361 -u lib/fastnlo_interface_nlojet/libInclusiveJets.la --max-event 10000000
for i in `seq 1000`; do bin/nlojet++ --calculate -cborn -nj$i -s$i -u lib/fastnlo_interface_nlojet/libInclusiveJets.la --max-event 10000 || break; done
echo last seed was $i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment