lhapdf is hosted by Hepforge, IPPP Durham
LHAPDF 6.5.4
Loading...
Searching...
No Matches
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.
 
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

◆ lookupLHAPDFID()

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.

◆ lookupPDF() [1/2]

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.

◆ lookupPDF() [2/2]

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.