Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example of using LHAPDF #60

Open
matthewfeickert opened this issue Apr 27, 2022 · 0 comments
Open

Add example of using LHAPDF #60

matthewfeickert opened this issue Apr 27, 2022 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@matthewfeickert
Copy link
Member

matthewfeickert commented Apr 27, 2022

LHAPDF is installed in the Docker images

# Install LHAPDF
ARG LHAPDF_VERSION=6.3.0
RUN mkdir /code && \
cd /code && \
wget https://lhapdf.hepforge.org/downloads/?f=LHAPDF-${LHAPDF_VERSION}.tar.gz -O LHAPDF-${LHAPDF_VERSION}.tar.gz && \
tar xvfz LHAPDF-${LHAPDF_VERSION}.tar.gz && \
cd LHAPDF-${LHAPDF_VERSION} && \
./configure --help && \
export CXX=$(which g++) && \
export PYTHON=$(which python) && \
./configure \
--prefix=/usr/local/venv && \
make -j$(($(nproc) - 1)) && \
make install && \
rm -rf /code

which allows for users to download LHAPDF sets

$ docker run --rm -ti scailfin/madgraph5-amc-nlo:mg5_amc3.3.2
root@898ccfb286ce:~/data# lhapdf get NNPDF23_lo_as_0130_qed
Unable to download /cvmfs/sft.cern.ch/lcg/external/lhapdfsets/current/NNPDF23_lo_as_0130_qed.tar.gz
NNPDF23_lo_as_0130_qed.tar.gz:    26.3 MB [100.0%] 
root@898ccfb286ce:~/data# lhapdf show NNPDF23_lo_as_0130_qed
NNPDF23_lo_as_0130_qed
======================
LHAPDF ID: 247000
Version: 1
LO QCD + LO QED PDF set, alphas(MZ)=0.130. mem=0 => average on replicas; mem=1-100 => PDF replicas
Number of members: 101
Error type: replicas

root@898ccfb286ce:~/data#

As pointed out by @lukasheinrich, it would probably be helpful to document this with a short note in the README.

@matthewfeickert matthewfeickert added the documentation Improvements or additions to documentation label Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant