LHAPDF is hosted by Hepforge, IPPP Durham
LHAPDF  6.1.6
PDFInfo.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_PDFInfo_H
8 #define LHAPDF_PDFInfo_H
9 
10 #include "LHAPDF/Info.h"
11 #include "LHAPDF/Factories.h"
12 #include "LHAPDF/PDFIndex.h"
13 
14 namespace LHAPDF {
15 
16 
18  class PDFInfo : public Info {
19  public:
20 
22 
23 
29  PDFInfo() { }
30 
35  PDFInfo(const std::string& mempath);
36 
38  PDFInfo(const std::string& setname, int member);
39 
41  PDFInfo(int lhaid);
42 
44 
45 
47 
48 
50  bool has_key(const std::string& key) const;
51 
53  const std::string& get_entry(const std::string& key) const;
54 
56  const std::string& get_entry(const std::string& key, const std::string& fallback) const {
57  return Info::get_entry(key, fallback);
58  }
59 
61 
62 
63  private:
64 
66  std::string _setname;
67 
70  int _member;
71 
72  };
73 
74 
75 }
76 #endif
int _member
Definition: PDFInfo.h:70
virtual const std::string & get_entry(const std::string &key) const
Definition: Info.h:108
PDFInfo()
Definition: PDFInfo.h:29
Metadata class for PDF members.
Definition: PDFInfo.h:18
Namespace for all LHAPDF functions and classes.
Definition: AlphaS.h:14
const std::string & get_entry(const std::string &key, const std::string &fallback) const
Retrieve a metadata string by key name, with a fallback.
Definition: PDFInfo.h:56
std::string _setname
Name of the set in which this PDF is contained (for PDFSet lookup)
Definition: PDFInfo.h:66
Metadata base class for PDFs, PDF sets, or global configuration.
Definition: Info.h:30
bool has_key(const std::string &key) const
Can this Info object return a value for the given key? (it may be defined non-locally) ...
const std::string & get_entry(const std::string &key) const
Retrieve a metadata string by key name.