LHAPDF is hosted by Hepforge, IPPP Durham
LHAPDF  6.2.1
PDFIndex.h
1 // -*- C++ -*-
2 //
3 // This file is part of LHAPDF
4 // Copyright (C) 2012-2016 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 
12 namespace LHAPDF {
13 
14 
16 
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
std::pair< std::string, int > lookupPDF(int lhaid)
int lookupLHAPDFID(const std::string &setname, int nmem)
Namespace for all LHAPDF functions and classes.
Definition: AlphaS.h:14
std::map< int, std::string > & getPDFIndex()
Get the singleton LHAPDF set ID -> PDF index map.