Project
Loading...
Searching...
No Matches
o2::mch::Error Struct Reference

#include <Error.h>

Public Member Functions

ErrorGroup getGroup () const
 
std::string getGroupName () const
 
std::string getTypeName () const
 
std::string getTypeDescription () const
 
std::string asString () const
 

Static Public Member Functions

static const std::map< ErrorType, std::string > getTypeNames (ErrorGroup group)
 

Public Attributes

ErrorType type {0}
 type of processing error
 
uint32_t id0 = 0
 additional descriptor used for certain error types
 
uint32_t id1 = 0
 additional descriptor used for certain error types
 
uint64_t count = 0
 number of occurences
 

Static Public Attributes

static const std::map< ErrorGroup, std::string > groupNames
 names of known error group
 
static const std::map< ErrorType, std::string > typeNames
 names of known error type
 
static const std::map< ErrorType, std::string > typeDescriptions
 descriptions of known error type
 

Detailed Description

generic structure to handle MCH processing errors

Definition at line 69 of file Error.h.

Member Function Documentation

◆ asString()

std::string o2::mch::Error::asString ( ) const

returns the error message corresponding to this error

Definition at line 86 of file Error.cxx.

◆ getGroup()

ErrorGroup o2::mch::Error::getGroup ( ) const
inline

returns the group to which this error belongs

Definition at line 86 of file Error.h.

◆ getGroupName()

std::string o2::mch::Error::getGroupName ( ) const

returns the name of the group to which this error belongs

Definition at line 59 of file Error.cxx.

◆ getTypeDescription()

std::string o2::mch::Error::getTypeDescription ( ) const

returns the type description of this error

Definition at line 77 of file Error.cxx.

◆ getTypeName()

std::string o2::mch::Error::getTypeName ( ) const

returns the type name of this error

Definition at line 68 of file Error.cxx.

◆ getTypeNames()

const std::map< ErrorType, std::string > o2::mch::Error::getTypeNames ( ErrorGroup  group)
static

returns the known error type names within the given group

Parameters
grouperror group

Definition at line 48 of file Error.cxx.

Member Data Documentation

◆ count

uint64_t o2::mch::Error::count = 0

number of occurences

Definition at line 77 of file Error.h.

◆ groupNames

const std::map< ErrorGroup, std::string > o2::mch::Error::groupNames
static
Initial value:

names of known error group

Definition at line 70 of file Error.h.

◆ id0

uint32_t o2::mch::Error::id0 = 0

additional descriptor used for certain error types

Definition at line 75 of file Error.h.

◆ id1

uint32_t o2::mch::Error::id1 = 0

additional descriptor used for certain error types

Definition at line 76 of file Error.h.

◆ type

ErrorType o2::mch::Error::type {0}

type of processing error

Definition at line 74 of file Error.h.

◆ typeDescriptions

const std::map< ErrorType, std::string > o2::mch::Error::typeDescriptions
static
Initial value:
= {
{ErrorType::PreClustering_MultipleDigitsInSamePad, "multiple digits on the same pad"},
{ErrorType::Clustering_TooManyLocalMaxima, "too many local maxima"},
{ErrorType::Tracking_TooManyCandidates, "too many track candidates"},
@ PreClustering_MultipleDigitsInSamePad

descriptions of known error type

Definition at line 72 of file Error.h.

◆ typeNames

const std::map< ErrorType, std::string > o2::mch::Error::typeNames
static
Initial value:

names of known error type

Definition at line 71 of file Error.h.


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