HepMC3 event record library
Private Member Functions | Static Private Attributes
Setup Class Reference

Configuration for HepMC. More...

#include <Setup.h>

Static Public Member Functions

Accessors
static bool print_errors ()
 Get error messages printing flag. More...
 
static void set_print_errors (const bool flag)
 set error messages printing flag More...
 
static bool print_warnings ()
 Get warning messages printing flag. More...
 
static void set_print_warnings (const bool flag)
 Set warning messages printing flag. More...
 
static int debug_level ()
 Get debug level. More...
 
static void set_debug_level (const int level)
 Set debug level. More...
 

Static Public Attributes

Static constants
static const unsigned int DEFAULT_DOUBLE_ALMOST_EQUAL_MAXULPS = 10
 Default maxUlps for AlmostEqual2sComplement function (double precision) More...
 
static const double DOUBLE_EPSILON = 10e-20
 Default threshold for comparing double variables. More...
 

Private Member Functions

 Setup ()
 Private constructor. More...
 
 ~Setup ()
 Private destructor. More...
 

Static Private Attributes

static bool m_is_printing_errors = true
 Flag for printing error messages. More...
 
static bool m_is_printing_warnings = true
 Flag for printing warning messages. More...
 
static int m_debug_level = 5
 Level of debug messages printed out. More...
 

Detailed Description

Configuration for HepMC.

Contains macro definitions for printing debug output, feature deprecation, etc. Static class - configuration is shared among all HepMC events and program threads

Definition at line 22 of file Setup.h.

Constructor & Destructor Documentation

Setup ( )
inlineprivate

Private constructor.

Definition at line 25 of file Setup.h.

~Setup ( )
inlineprivate

Private destructor.

Definition at line 27 of file Setup.h.

Member Function Documentation

int debug_level ( )
static

Get debug level.

Definition at line 21 of file Setup.cc.

References Setup::m_debug_level.

bool print_errors ( )
static

Get error messages printing flag.

Definition at line 17 of file Setup.cc.

References Setup::m_is_printing_errors.

bool print_warnings ( )
static

Get warning messages printing flag.

Definition at line 19 of file Setup.cc.

References Setup::m_is_printing_warnings.

void set_debug_level ( const int  level)
static

Set debug level.

Definition at line 22 of file Setup.cc.

References Setup::m_debug_level.

void set_print_errors ( const bool  flag)
static

set error messages printing flag

Definition at line 18 of file Setup.cc.

References Setup::m_is_printing_errors.

void set_print_warnings ( const bool  flag)
static

Set warning messages printing flag.

Definition at line 20 of file Setup.cc.

References Setup::m_is_printing_warnings.

Field Documentation

const unsigned int DEFAULT_DOUBLE_ALMOST_EQUAL_MAXULPS = 10
static

Default maxUlps for AlmostEqual2sComplement function (double precision)

Definition at line 54 of file Setup.h.

const double DOUBLE_EPSILON = 10e-20
static

Default threshold for comparing double variables.

Definition at line 57 of file Setup.h.

int m_debug_level = 5
staticprivate

Level of debug messages printed out.

Definition at line 66 of file Setup.h.

bool m_is_printing_errors = true
staticprivate

Flag for printing error messages.

Definition at line 64 of file Setup.h.

bool m_is_printing_warnings = true
staticprivate

Flag for printing warning messages.

Definition at line 65 of file Setup.h.


The documentation for this class was generated from the following files: