HepMC3 event record library: Setup.cc Source File

HepMC3 event record library

Setup.cc
Go to the documentation of this file.
1// -*- C++ -*-
2//
3// This file is part of HepMC
4// Copyright (C) 2014-2023 The HepMC collaboration (see AUTHORS for details)
5//
6/**
7 * @file Setup.cc
8 * @brief Implementation of \b Setup class
9 *
10 */
11#include "HepMC3/Setup.h"
12
13namespace HepMC3 {
14
15const unsigned int Setup::DEFAULT_DOUBLE_ALMOST_EQUAL_MAXULPS = 10;
16const double Setup::DOUBLE_EPSILON = 10e-20;
17 bool Setup::print_errors() { return m_is_printing_errors; }
18 void Setup::set_print_errors(const bool flag) { m_is_printing_errors = flag; }
19 bool Setup::print_warnings() { return m_is_printing_warnings; }
20 void Setup::set_print_warnings(const bool flag) { m_is_printing_warnings = flag; }
21 int Setup::debug_level() { return m_debug_level; }
22 void Setup::set_debug_level(const int level) { m_debug_level = level; }
23 int Setup::errors_level() { return m_errors_level; }
24 void Setup::set_errors_level(const int level) { m_errors_level = level; }
25 int Setup::warnings_level() { return m_warnings_level; }
26 void Setup::set_warnings_level(const int level) { m_warnings_level = level;}
27bool Setup::m_is_printing_errors = true;
28bool Setup::m_is_printing_warnings = true;
29int Setup::m_debug_level = 5;
30int Setup::m_errors_level = 1000;
31int Setup::m_warnings_level = 750;
32
33} // namespace HepMC3
Setup.h
Definition of class Setup.
HepMC3::Setup::DOUBLE_EPSILON
static const double DOUBLE_EPSILON
Default threshold for comparing double variables.
Definition Setup.h:70
HepMC3::Setup::m_debug_level
static int m_debug_level
Level of debug messages printed out.
Definition Setup.h:81
HepMC3::Setup::DEFAULT_DOUBLE_ALMOST_EQUAL_MAXULPS
static const unsigned int DEFAULT_DOUBLE_ALMOST_EQUAL_MAXULPS
Default maxUlps for AlmostEqual2sComplement function (double precision).
Definition Setup.h:67
HepMC3::Setup::set_debug_level
static void set_debug_level(const int level)
Set debug level.
Definition Setup.cc:22
HepMC3::Setup::set_warnings_level
static void set_warnings_level(const int flag)
Set warning messages printing level.
Definition Setup.cc:26
HepMC3::Setup::m_is_printing_errors
static bool m_is_printing_errors
Flag for printing error messages.
Definition Setup.h:79
HepMC3::Setup::errors_level
static int errors_level()
Get error messages printing level.
Definition Setup.cc:23
HepMC3::Setup::m_warnings_level
static int m_warnings_level
Level for printing warnings messages.
Definition Setup.h:78
HepMC3::Setup::m_is_printing_warnings
static bool m_is_printing_warnings
Flag for printing warning messages.
Definition Setup.h:80
HepMC3::Setup::set_print_errors
static void set_print_errors(const bool flag)
set error messages printing flag
Definition Setup.cc:18
HepMC3::Setup::m_errors_level
static int m_errors_level
Level for printing error messages.
Definition Setup.h:77
HepMC3::Setup::print_warnings
static bool print_warnings()
Get warning messages printing flag.
Definition Setup.cc:19
HepMC3::Setup::set_print_warnings
static void set_print_warnings(const bool flag)
Set warning messages printing flag.
Definition Setup.cc:20
HepMC3::Setup::print_errors
static bool print_errors()
Get error messages printing flag.
Definition Setup.cc:17
HepMC3::Setup::debug_level
static int debug_level()
Get debug level.
Definition Setup.cc:21
HepMC3::Setup::warnings_level
static int warnings_level()
Get warning messages printing level.
Definition Setup.cc:25
HepMC3::Setup::set_errors_level
static void set_errors_level(const int flag)
set error messages printing level
Definition Setup.cc:24
HepMC3
HepMC3 main namespace.
Definition AnalysisExample.h:24