lhapdf is hosted by Hepforge, IPPP Durham
LHAPDF  6.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
PDF lookup in the LHAPDF ID index

Functions

std::map< int, std::string > & LHAPDF::getPDFIndex ()
 Get the singleton LHAPDF set ID -> PDF index map.
 
std::pair< std::string, int > LHAPDF::lookupPDF (int lhaid)
 
std::pair< std::string, int > LHAPDF::lookupPDF (const std::string &pdfstr)
 Decode a single PDF member ID string into a setname,memid pair. More...
 
int LHAPDF::lookupLHAPDFID (const std::string &setname, int nmem)
 
int LHAPDF::lookupLHAPDFID (const std::string &setname_nmem)
 Look up the member's LHAPDF index from a setname/member string.
 

Detailed Description

Function Documentation

int LHAPDF::lookupLHAPDFID ( const std::string &  setname,
int  nmem 
)

Look up the member's LHAPDF index from the set name and member ID.

If lookup fails, -1 is returned, otherwise the LHAPDF ID code. NB. This function is relatively slow, since it requires std::map reverse lookup.

std::pair<std::string, int> LHAPDF::lookupPDF ( int  lhaid)

Look up a PDF set name and member ID by the LHAPDF ID code

The set name and member ID are returned as an std::pair. If lookup fails, a pair ("", -1) is returned.

Examples:
/tests/testindex.cc.
std::pair<std::string, int> LHAPDF::lookupPDF ( const std::string &  pdfstr)

Decode a single PDF member ID string into a setname,memid pair.

Note
A trivial <SET,MEM> decoding rather than a "real lookup", for convenience & uniformity.