-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·37 lines (29 loc) · 779 Bytes
/
Copy pathsetup.sh
File metadata and controls
executable file
·37 lines (29 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# set up CMSSW environment to get LHAPDF
eval `scramv1 runtime -sh`
# specify LHAPDF location
LHAPDF=`scram tool info lhapdf | grep LIBDIR | cut -d '=' -f 2`
DIRNAME=2gNNLO_2.1
echo "Using LHAPDF from location " ${LHAPDF}
# get 2gNNLO v2.1
if [ ! -e ${DIRNAME} ]
then
echo "Downloading 2gNNLO"
wget http://www.physik.uzh.ch/~lcieri/2gNNLO_2.1.tar.gz
fi
if [ -e ${DIRNAME} ]
then
rm -rf ${DIRNAME}
tar xvf 2gNNLO_2.1.tar.gz
fi
# patch 2gNNLO to produce distributions of interest
for i in `ls patches`
do
echo "patching "${i}
patch ${DIRNAME}"/src/"${i} "patches/"${i}
done
# replace LHAPDF with custom version
sed -i 's|/usr/local/share/lhapdf/PDFsets/lib|'"$LHAPDF"'|g' ${DIRNAME}/src/Makefile
# make 2gNNLO
cd ${DIRNAME}
make