thepeg is hosted by Hepforge, IPPP Durham
ThePEG  2.2.1
ThePEG::Debug Class Reference

The Debug class defines a number of debug levels and a static public member giving the current debug level in a run. More...

#include <Debug.h>

Public Types

enum  Levels { noDebug = 0, printSomeEvents = 1, printEveryEvent = 5, full = 9 }
 The different debug levels. More...
 

Static Public Member Functions

static void debugItem (int item, bool on)
 Switch on or off a given debug item. More...
 
static void setDebug (int ilev)
 Set the debug level.
 
static bool debugItem (int item)
 Check if a given item should be debugged. More...
 
Functions for manipulating floating point (FPU) signals

(requires the existence of fpu_controll.h on the platform).

static void unmaskFpuErrors ()
 Switch on signalling all FPU exceptions.
 
static void unmaskFpuOverflow ()
 Switch on signalling overflow FPU exceptions.
 
static void unmaskFpuUnderflow ()
 Switch on signalling underflow FPU exceptions.
 
static void unmaskFpuDivZero ()
 Switch on signalling division by zero FPU exceptions.
 
static void unmaskFpuDenorm ()
 Switch on signalling denormalized argument FPU exceptions.
 
static void unmaskFpuInvalid ()
 Switch on signalling invalid operation FPU exceptions.
 
static void maskFpuErrors ()
 Switch off signalling all FPU exceptions.
 
static void maskFpuOverflow ()
 Switch off signalling overflow FPU exceptions.
 
static void maskFpuUnderflow ()
 Switch off signalling underflow FPU exceptions.
 
static void maskFpuDivZero ()
 Switch off signalling division by zero FPU exceptions.
 
static void maskFpuDenorm ()
 Switch off signalling denormalized argument FPU exceptions.
 
static void maskFpuInvalid ()
 Switch off signalling invalid operation FPU exceptions.
 

Static Public Attributes

static int level
 The current level.
 
static bool isset
 If true, the debug level has been set from the outside from the calling program. More...
 
static std::vector< bool > debugItems
 A vector of switches indicating whether a given debug item is switched on or not. More...
 

Detailed Description

The Debug class defines a number of debug levels and a static public member giving the current debug level in a run.

Definition at line 21 of file Debug.h.

Member Enumeration Documentation

◆ Levels

The different debug levels.

Enumerator
noDebug 

No debugging.

printSomeEvents 

Lowest debug level.

Some events are printed out.

printEveryEvent 

Higher debug level.

All events are printed out.

full 

Highest possible debug level.

Definition at line 28 of file Debug.h.

Member Function Documentation

◆ debugItem() [1/2]

static void ThePEG::Debug::debugItem ( int  item,
bool  on 
)
static

Switch on or off a given debug item.

If no such item exists, one will be created.

◆ debugItem() [2/2]

static bool ThePEG::Debug::debugItem ( int  item)
inlinestatic

Check if a given item should be debugged.

If no such item is present false is returned.

Definition at line 71 of file Debug.h.

References full, maskFpuDenorm(), maskFpuDivZero(), maskFpuErrors(), maskFpuInvalid(), maskFpuOverflow(), maskFpuUnderflow(), noDebug, unmaskFpuDenorm(), unmaskFpuDivZero(), unmaskFpuErrors(), unmaskFpuInvalid(), unmaskFpuOverflow(), and unmaskFpuUnderflow().

Member Data Documentation

◆ debugItems

std::vector<bool> ThePEG::Debug::debugItems
static

A vector of switches indicating whether a given debug item is switched on or not.

The index of a debug item has no special meaning. An implementor may assume that a given number corresponds to a certain request for debug output, but cannot be sure that someone else uses that number for some other purpose.

Definition at line 54 of file Debug.h.

◆ isset

bool ThePEG::Debug::isset
static

If true, the debug level has been set from the outside from the calling program.

This would then override any debug settings in the event generator.

Definition at line 45 of file Debug.h.


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