lhapdf is hosted by Hepforge, IPPP Durham
LHAPDF 6.5.3
Loading...
Searching...
No Matches
Config.h
1// -*- C++ -*-
2//
3// This file is part of LHAPDF
4// Copyright (C) 2012-2022 The LHAPDF collaboration (see AUTHORS for details)
5//
6#pragma once
7#ifndef LHAPDF_Config_H
8#define LHAPDF_Config_H
9
10#include "LHAPDF/Info.h"
11
12namespace LHAPDF {
13
14
16 class Config : public Info {
17 public:
18
21
30 static Config& get();
32
33
36
37
38 private:
39
42 // std::cout << "CONFIG CONSTRUCTION" << std::endl;
43 }
44
45 };
46
47
50
56 inline int verbosity() {
57 return Config::get().get_entry_as<int>("Verbosity", 1);
58 }
59
65 inline void setVerbosity(int v) {
66 Config::get().set_entry("Verbosity", v);
67 }
68
70
71
72}
73#endif
Class for PDF set metadata and manipulation.
Definition: Config.h:16
~Config()
Config destructor, used for end-of-run banner printing.
Config()
Hide the default constructor.
Definition: Config.h:41
static Config & get()
Metadata base class for PDFs, PDF sets, or global configuration.
Definition: Info.h:29
void set_entry(const std::string &key, const T &val)
Set a keyed value entry.
Definition: Info.h:141
T get_entry_as(const std::string &key) const
Definition: Info.h:122
int verbosity()
Definition: Config.h:56
void setVerbosity(int v)
Definition: Config.h:65
Namespace for all LHAPDF functions and classes.
Definition: AlphaS.h:14