Belle II Software development
|
Small class for classifying types of reconstructed track candidates. More...
#include <TCType.h>
Public Types | |
enum | Type { UnknownType , Unclassified , Lost , RefOutlier , Ghost , SmallStump , Clone , Contaminated , Clean , Perfect , AllTCTypes , Reference , NTypes } |
allows classifying TCs More... | |
Static Public Member Functions | |
static bool | isValidType (TCType::Type type) |
checks if a type given is a valid type for a TCType | |
static bool | isValidName (std::string type) |
checks if the name given is a valid name for a TCType | |
static std::string | getTypeName (TCType::Type type) |
for given TCType the corresponding string-name will be returned. | |
static TCType::Type | getTypeEnum (std::string type) |
for given string name of a TCType the corresponding TCType will be returned. | |
static bool | isReference (TCType::Type aType) |
returns true if given TCType is a reference-Type, false if not | |
static bool | isTestTC (TCType::Type aType) |
returns true if given TCType is a testTC-Type, false if not | |
static bool | isGoodTestTC (TCType::Type aType) |
returns true if given TCType is a testTC-Type and did successfully reconstruct a track | |
Static Protected Attributes | |
static std::map< Type, std::string > | s_fromTypeToString |
static map allowing translation from a given type to its name stored as a string | |
static std::map< std::string, Type > | s_fromStringToType |
static map allowing translation from a given name stored as a string to its type | |
Small class for classifying types of reconstructed track candidates.
Contains enums and converter from and to strings
enum Type |
allows classifying TCs
Definition at line 29 of file TCType.h.
|
inlinestatic |
for given string name of a TCType the corresponding TCType will be returned.
For invalid types, UnknownType will be passed
Definition at line 74 of file TCType.h.
|
inlinestatic |
for given TCType the corresponding string-name will be returned.
For invalid types, UnknownType will be passed
Definition at line 62 of file TCType.h.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
checks if the name given is a valid name for a TCType
Definition at line 55 of file TCType.h.
|
inlinestatic |
checks if a type given is a valid type for a TCType
Definition at line 48 of file TCType.h.
|
staticprotected |
static map allowing translation from a given name stored as a string to its type
setting static dictionary translating string -> type
|
staticprotected |
static map allowing translation from a given type to its name stored as a string
setting static dictionary translating type -> string