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-2021 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
13namespace HepMC3 {
14
15const unsigned int Setup::DEFAULT_DOUBLE_ALMOST_EQUAL_MAXULPS = 10;
16const double Setup::DOUBLE_EPSILON = 10e-20;
18void Setup::set_print_errors(const bool flag) { m_is_printing_errors = flag; }
20void Setup::set_print_warnings(const bool flag) { m_is_printing_warnings = flag; }
22void Setup::set_debug_level(const int level) { m_debug_level = level; }
26
27} // namespace HepMC3
Definition of class Setup.
static const double DOUBLE_EPSILON
Default threshold for comparing double variables.
Definition: Setup.h:57
static int m_debug_level
Level of debug messages printed out.
Definition: Setup.h:66
static void set_debug_level(const int level)
Set debug level.
Definition: Setup.cc:22
static bool m_is_printing_errors
Flag for printing error messages.
Definition: Setup.h:64
static bool m_is_printing_warnings
Flag for printing warning messages.
Definition: Setup.h:65
static void set_print_errors(const bool flag)
set error messages printing flag
Definition: Setup.cc:18
static bool print_warnings()
Get warning messages printing flag.
Definition: Setup.cc:19
static void set_print_warnings(const bool flag)
Set warning messages printing flag.
Definition: Setup.cc:20
static bool print_errors()
Get error messages printing flag.
Definition: Setup.cc:17
static int debug_level()
Get debug level.
Definition: Setup.cc:21
HepMC3 main namespace.