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-2019 The HepMC collaboration (see AUTHORS for details)
5 //
6 /**
7  * @file Setup.cc
8  * @brief Implementation of Setup class
9  *
10  */
11 #include "HepMC3/Setup.h"
12 
13 namespace HepMC3 {
14 
15 const unsigned int Setup::DEFAULT_DOUBLE_ALMOST_EQUAL_MAXULPS = 10;
16 const double Setup::DOUBLE_EPSILON = 10e-20;
18 void Setup::set_print_errors(const bool flag) { m_is_printing_errors = flag; }
20 void Setup::set_print_warnings(const bool flag) { m_is_printing_warnings = flag; }
22 void Setup::set_debug_level(const int level) { m_debug_level = level; }
23 bool Setup::m_is_printing_errors = true;
25 int Setup::m_debug_level = 5;
26 
27 } // namespace HepMC3
static bool print_warnings()
Get warning messages printing flag.
Definition: Setup.cc:19
static void set_debug_level(const int level)
Set debug level.
Definition: Setup.cc:22
static bool print_errors()
Get error messages printing flag.
Definition: Setup.cc:17
static int m_debug_level
Level of debug messages printed out.
Definition: Setup.h:66
static bool m_is_printing_warnings
Flag for printing warning messages.
Definition: Setup.h:65
static int debug_level()
Get debug level.
Definition: Setup.cc:21
static void set_print_errors(const bool flag)
set error messages printing flag
Definition: Setup.cc:18
static void set_print_warnings(const bool flag)
Set warning messages printing flag.
Definition: Setup.cc:20
Definition of class Setup.
static const unsigned int DEFAULT_DOUBLE_ALMOST_EQUAL_MAXULPS
Default maxUlps for AlmostEqual2sComplement function (double precision)
Definition: Setup.h:54
static bool m_is_printing_errors
Flag for printing error messages.
Definition: Setup.h:64
static const double DOUBLE_EPSILON
Default threshold for comparing double variables.
Definition: Setup.h:57