lhapdf is hosted by Hepforge, IPPP Durham
LHAPDF 6.5.4
Loading...
Searching...
No Matches
PDFIndex.h
1// -*- C++ -*-
2//
3// This file is part of LHAPDF
4// Copyright (C) 2012-2023 The LHAPDF collaboration (see AUTHORS for details)
5//
6#pragma once
7#ifndef LHAPDF_PDFIndex_H
8#define LHAPDF_PDFIndex_H
9
10#include "LHAPDF/Utils.h"
11
12namespace LHAPDF {
13
14
17
19 std::map<int, std::string>& getPDFIndex();
20
25 std::pair<std::string, int> lookupPDF(int lhaid);
26
30 std::pair<std::string, int> lookupPDF(const std::string& pdfstr);
31
36 int lookupLHAPDFID(const std::string& setname, int nmem);
37
39 inline int lookupLHAPDFID(const std::string& setname_nmem) {
40 const std::pair<string,int> idpair = lookupPDF(setname_nmem);
41 return lookupLHAPDFID(idpair.first, idpair.second);
42 }
43
45
46
47}
48#endif
int lookupLHAPDFID(const std::string &setname, int nmem)
std::pair< std::string, int > lookupPDF(int lhaid)
std::map< int, std::string > & getPDFIndex()
Get the singleton LHAPDF set ID -> PDF index map.
Namespace for all LHAPDF functions and classes.
Definition AlphaS.h:14