lhapdf
is hosted by
Hepforge
,
IPPP Durham
LHAPDF
6.5.5
Loading...
Searching...
No Matches
include
LHAPDF
PDFIndex.h
1
// -*- C++ -*-
2
//
3
// This file is part of LHAPDF
4
// Copyright (C) 2012-2024 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
15
/// @defgroup index PDF lookup in the LHAPDF ID index
16
///@{
17
18
/// Get the singleton LHAPDF set ID -> PDF index map
19
std
::
map
<
int
,
std
::
string
>&
getPDFIndex
();
20
21
/// Look up a PDF set name and member ID by the LHAPDF ID code
22
///
23
/// The set name and member ID are returned as an std::pair.
24
/// If lookup fails, a pair ("", -1) is returned.
25
std
::
pair
<
std
::
string
,
int
>
lookupPDF
(
int
lhaid);
26
27
/// @brief Decode a single PDF member ID string into a setname,memid pair
28
///
29
/// @note A trivial <SET,MEM> decoding rather than a "real lookup", for convenience & uniformity.
30
std
::
pair
<
std
::
string
,
int
>
lookupPDF
(
const
std::string& pdfstr);
31
32
/// Look up the member's LHAPDF index from the set name and member ID.
33
///
34
/// If lookup fails, -1 is returned, otherwise the LHAPDF ID code.
35
/// NB. This function is relatively slow, since it requires std::map reverse lookup.
36
int
lookupLHAPDFID
(
const
std::string& setname,
int
nmem);
37
38
/// Look up the member's LHAPDF index from a setname/member string.
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
44
///@}
45
46
47
}
48
#
endif
LHAPDF::lookupLHAPDFID
int lookupLHAPDFID(const std::string &setname, int nmem)
LHAPDF::lookupLHAPDFID
int lookupLHAPDFID(const std::string &setname_nmem)
Look up the member's LHAPDF index from a setname/member string.
Definition
PDFIndex.h:39
LHAPDF::lookupPDF
std::pair< std::string, int > lookupPDF(int lhaid)
LHAPDF::lookupPDF
std::pair< std::string, int > lookupPDF(const std::string &pdfstr)
Decode a single PDF member ID string into a setname,memid pair.
LHAPDF::getPDFIndex
std::map< int, std::string > & getPDFIndex()
Get the singleton LHAPDF set ID -> PDF index map.
LHAPDF
Namespace for all LHAPDF functions and classes.
Definition
AlphaS.h:14
Generated on Mon Dec 16 2024 19:04:48 for LHAPDF by
1.12.0