MARLEY (Model of Argon Reaction Low Energy Yields) v2.0.0
A Monte Carlo event generator for tens-of-MeV neutrino interactions
Loading...
Searching...
No Matches
HepMC3::Setup Class Reference

Configuration for HepMC. More...

#include <Setup.h>

Static Public Member Functions

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

Static Public Attributes

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

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.

Member Function Documentation

◆ debug_level()

int HepMC3::Setup::debug_level ( )
static

Get debug level.

Definition at line 56 of file marley_hepmc3.cc.

56{ return m_debug_level; }

◆ errors_level()

int HepMC3::Setup::errors_level ( )
static

Get error messages printing level.

Definition at line 58 of file marley_hepmc3.cc.

58{ return m_errors_level; }

◆ print_errors()

bool HepMC3::Setup::print_errors ( )
static

Get error messages printing flag.

Definition at line 52 of file marley_hepmc3.cc.

52{ return m_is_printing_errors; }

◆ print_warnings()

bool HepMC3::Setup::print_warnings ( )
static

Get warning messages printing flag.

Definition at line 54 of file marley_hepmc3.cc.

54{ return m_is_printing_warnings; }

◆ set_debug_level()

void HepMC3::Setup::set_debug_level ( const int level)
static

Set debug level.

Definition at line 57 of file marley_hepmc3.cc.

57{ m_debug_level = level; }

◆ set_errors_level()

void HepMC3::Setup::set_errors_level ( const int flag)
static

set error messages printing level

Definition at line 59 of file marley_hepmc3.cc.

59{ m_errors_level = level; }

◆ set_print_errors()

void HepMC3::Setup::set_print_errors ( const bool flag)
static

set error messages printing flag

Definition at line 53 of file marley_hepmc3.cc.

53{ m_is_printing_errors = flag; }

◆ set_print_warnings()

void HepMC3::Setup::set_print_warnings ( const bool flag)
static

Set warning messages printing flag.

Definition at line 55 of file marley_hepmc3.cc.

55{ m_is_printing_warnings = flag; }

◆ set_warnings_level()

void HepMC3::Setup::set_warnings_level ( const int flag)
static

Set warning messages printing level.

Definition at line 61 of file marley_hepmc3.cc.

61{ m_warnings_level = level;}

◆ warnings_level()

int HepMC3::Setup::warnings_level ( )
static

Get warning messages printing level.

Definition at line 60 of file marley_hepmc3.cc.

60{ return m_warnings_level; }

Member Data Documentation

◆ DEFAULT_DOUBLE_ALMOST_EQUAL_MAXULPS

const unsigned int HepMC3::Setup::DEFAULT_DOUBLE_ALMOST_EQUAL_MAXULPS = 10
static

Default maxUlps for AlmostEqual2sComplement function (double precision)

Definition at line 67 of file Setup.h.

◆ DOUBLE_EPSILON

const double HepMC3::Setup::DOUBLE_EPSILON = 10e-20
static

Default threshold for comparing double variables.

Definition at line 70 of file Setup.h.


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