hosted by CEDAR HepForge

LHAPDF the Les Houches Accord PDF Interface


Installation (4.1 onwards)

First download the required gzipped tar file (eg lhapdf-v.r.p.tar.gz) from the downloads section (either with or without the PDFsets as required). Then do the following:-

tar -xvzf lhapdf-v.r.p.tar.gz to unpack this into the directory lhapdf-v.r.p.

cd lhapdf-v.r.p to change directory (v.r.p = version.revision.patch, eg 5.3.1).

If you have root priviledge and want the installed files to go by default into /usr/local then do:

./configure

If you do not have root priviledge and/or want the files installed into a different directory then do:

./configure --prefix=/path/to/directory note: this should be a different directory to the 'lhapdf-v.r.p' directory, otherwise the install step will not work.

If you want to install a memory light version to work with mainly single pdfs then use:

./configure --prefix=/path/to/directory --enable-low-memory

If you want to install with as max number of set different from the default of 3 then use:

./configure --prefix=/path/to/directory --with-max-num-pdfsets=N

Then do:

make
make install

The following directories/files should now have been installed in your selected installation directory.

lib/libLHAPDF.a, lib/libLHAPDF.so etc.
The static (.a) and dynamic (.so etc.) LHAPDF (and LHAGLUE) libraries. These are the compiled FORTRAN routines to link against your program. See the shared libraries page for more detail on compiling against these libraries.
share/lhapdf/PDFsets/
The directory containing all the PDF parameter/grid data sets. Note that all the available sets are downloaded in the full tar file, or they can be selected individually after installation. In the latter case they should be put into this directory.
bin/lhapdf-config
A script (which must be in the users execution path) used by the LHAPDF routine "InitPDFsetByName" to determine the correct path to the PDF data sets.

From version 5.3.0 onwards additionally the following files are installed:

lib/libLHAPDFWrap.a.
The static C++ wrapper library
lib/libLHAPDFWrap.so
The dynamic C++ wrapper library
share/lhapdf/PDFsets.index
A text file detailing the LHaglue PDF numbers and, where applicable, the old PDFLIB equivalent numbers as well as the max and min ranges of X and Q**2.

If you wish to install the various components into different directories than above, the following options to ./configure (as well as --prefix=) can be used:

--bindir=DIR --datadir=DIR --libdir=DIR

Note that DIR are absolute paths to the required directories and lhapdf-config will automatically handle these paths. More details are given in the INSTALL file in the downloaded package.


LHAPDF is maintained by Mike Whalley and Andy Buckley at Durham University (UK)
email: lhapdf@projects.hepforge.org phone: +44-191-334-3807 fax:+44-191-334-3658
Last updated: Thu Oct 16 09:46:12 2008