HepMC event record
Private Member Functions | Static Private Attributes
Setup Class Reference

Detailed Description

Configuration for HepMC.

Todo:
Move some of the helper functions, logging, exceptions, etc. to specific files

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

Todo:
Change to a namespace
Todo:
Move some of the helper functions, logging, exceptions, etc. to specific files

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

Todo:
Change to a namespace

Definition at line 27 of file build/outputs/include/HepMC/Setup.h.

#include <Setup.h>

Static Public Member Functions

Accessors
static bool print_errors ()
 Get error messages printing flag. More...
 
static void set_print_errors (bool flag)
 set error messages printing flag More...
 
static bool print_warnings ()
 Get warning messages printing flag. More...
 
static void set_print_warnings (bool flag)
 Set warning messages printing flag. More...
 
static int debug_level ()
 Get debug level. More...
 
static void set_debug_level (int level)
 Set debug level. More...
 
static bool print_errors ()
 Get error messages printing flag. More...
 
static void set_print_errors (bool flag)
 set error messages printing flag More...
 
static bool print_warnings ()
 Get warning messages printing flag. More...
 
static void set_print_warnings (bool flag)
 Set warning messages printing flag. More...
 
static int debug_level ()
 Get debug level. More...
 
static void set_debug_level (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...
 
 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...
 

Constructor & Destructor Documentation

◆ Setup() [1/2]

Setup ( )
inlineprivate

Private constructor.

Definition at line 30 of file build/outputs/include/HepMC/Setup.h.

◆ ~Setup() [1/2]

~Setup ( )
inlineprivate

Private destructor.

Definition at line 32 of file build/outputs/include/HepMC/Setup.h.

◆ Setup() [2/2]

Setup ( )
inlineprivate

Private constructor.

Definition at line 30 of file include/HepMC/Setup.h.

◆ ~Setup() [2/2]

~Setup ( )
inlineprivate

Private destructor.

Definition at line 32 of file include/HepMC/Setup.h.

Member Function Documentation

◆ debug_level() [1/2]

static int debug_level ( )
inlinestatic

Get debug level.

Definition at line 51 of file build/outputs/include/HepMC/Setup.h.

References Setup::m_debug_level.

◆ debug_level() [2/2]

static int debug_level ( )
inlinestatic

Get debug level.

Definition at line 51 of file include/HepMC/Setup.h.

References Setup::m_debug_level.

◆ print_errors() [1/2]

static bool print_errors ( )
inlinestatic

Get error messages printing flag.

Definition at line 41 of file build/outputs/include/HepMC/Setup.h.

References Setup::m_is_printing_errors.

◆ print_errors() [2/2]

static bool print_errors ( )
inlinestatic

Get error messages printing flag.

Definition at line 41 of file include/HepMC/Setup.h.

References Setup::m_is_printing_errors.

◆ print_warnings() [1/2]

static bool print_warnings ( )
inlinestatic

Get warning messages printing flag.

Definition at line 46 of file include/HepMC/Setup.h.

References Setup::m_is_printing_warnings.

◆ print_warnings() [2/2]

static bool print_warnings ( )
inlinestatic

Get warning messages printing flag.

Definition at line 46 of file build/outputs/include/HepMC/Setup.h.

References Setup::m_is_printing_warnings.

◆ set_debug_level() [1/2]

static void set_debug_level ( int  level)
inlinestatic

Set debug level.

Definition at line 53 of file include/HepMC/Setup.h.

References Setup::m_debug_level.

◆ set_debug_level() [2/2]

static void set_debug_level ( int  level)
inlinestatic

Set debug level.

Definition at line 53 of file build/outputs/include/HepMC/Setup.h.

References Setup::m_debug_level.

◆ set_print_errors() [1/2]

static void set_print_errors ( bool  flag)
inlinestatic

set error messages printing flag

Definition at line 43 of file include/HepMC/Setup.h.

References Setup::m_is_printing_errors.

◆ set_print_errors() [2/2]

static void set_print_errors ( bool  flag)
inlinestatic

set error messages printing flag

Definition at line 43 of file build/outputs/include/HepMC/Setup.h.

References Setup::m_is_printing_errors.

◆ set_print_warnings() [1/2]

static void set_print_warnings ( bool  flag)
inlinestatic

Set warning messages printing flag.

Definition at line 48 of file build/outputs/include/HepMC/Setup.h.

References Setup::m_is_printing_warnings.

◆ set_print_warnings() [2/2]

static void set_print_warnings ( bool  flag)
inlinestatic

Set warning messages printing flag.

Definition at line 48 of file include/HepMC/Setup.h.

References Setup::m_is_printing_warnings.

Field Documentation

◆ DEFAULT_DOUBLE_ALMOST_EQUAL_MAXULPS

const unsigned int DEFAULT_DOUBLE_ALMOST_EQUAL_MAXULPS = 10
static

Default maxUlps for AlmostEqual2sComplement function (double precision)

Definition at line 59 of file build/outputs/include/HepMC/Setup.h.

◆ DOUBLE_EPSILON

const double DOUBLE_EPSILON = 10e-20
static

Default threshold for comparing double variables.

Definition at line 62 of file build/outputs/include/HepMC/Setup.h.

◆ m_debug_level

int m_debug_level = 5
staticprivate

Level of debug messages printed out.

Definition at line 71 of file build/outputs/include/HepMC/Setup.h.

◆ m_is_printing_errors

bool m_is_printing_errors = true
staticprivate

Flag for printing error messages.

Definition at line 69 of file build/outputs/include/HepMC/Setup.h.

◆ m_is_printing_warnings

bool m_is_printing_warnings = true
staticprivate

Flag for printing warning messages.

Definition at line 70 of file build/outputs/include/HepMC/Setup.h.


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