MARLEY (Model of Argon Reaction Low Energy Yields) v2.0.0
A Monte Carlo event generator for tens-of-MeV neutrino interactions
Loading...
Searching...
No Matches
Setup.h
1// -*- C++ -*-
2//
3// This file is part of HepMC
4// Copyright (C) 2014-2023 The HepMC collaboration (see AUTHORS for details)
5//
8
9#ifndef HEPMC3_SETUP_H
10#define HEPMC3_SETUP_H
11
12
13
14namespace HepMC3 {
15
22class Setup {
23
25 Setup() {}
27 ~Setup() {}
28
29
30public:
31
34
36 static bool print_errors();
38 static void set_print_errors(const bool flag);
39
41 static int errors_level();
43 static void set_errors_level(const int flag);
44
45
47 static bool print_warnings();
49 static void set_print_warnings(const bool flag);
50
52 static int warnings_level();
54 static void set_warnings_level(const int flag);
55
56
58 static int debug_level();
60 static void set_debug_level(const int level);
62
65
67 static const unsigned int DEFAULT_DOUBLE_ALMOST_EQUAL_MAXULPS;
68
70 static const double DOUBLE_EPSILON;
71
73
74
75private:
76
77 static int m_errors_level;
78 static int m_warnings_level;
79 static bool m_is_printing_errors;
80 static bool m_is_printing_warnings;
81 static int m_debug_level;
82};
83
84
85} // namespace HepMC3
86
87#endif
static int errors_level()
Get error messages printing level.
static const unsigned int DEFAULT_DOUBLE_ALMOST_EQUAL_MAXULPS
Default maxUlps for AlmostEqual2sComplement function (double precision)
Definition Setup.h:67
static int debug_level()
Get debug level.
static void set_debug_level(const int level)
Set debug level.
static bool print_warnings()
Get warning messages printing flag.
static void set_errors_level(const int flag)
set error messages printing level
static int warnings_level()
Get warning messages printing level.
static void set_print_errors(const bool flag)
set error messages printing flag
static void set_print_warnings(const bool flag)
Set warning messages printing flag.
static bool print_errors()
Get error messages printing flag.
static void set_warnings_level(const int flag)
Set warning messages printing level.
static const double DOUBLE_EPSILON
Default threshold for comparing double variables.
Definition Setup.h:70