Belle II Software development
TCType.cc
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8#include <tracking/trackFindingVXD/analyzingTools/TCType.h>
9
10using namespace Belle2;
11
13std::map<Belle2::TCType::Type, std::string> Belle2::TCType::s_fromTypeToString = {
14 {Belle2::TCType::UnknownType, std::string("UnknownType")},
15 {Belle2::TCType::Unclassified, std::string("Unclassified")},
16 {Belle2::TCType::Lost, std::string("Lost")},
17 {Belle2::TCType::RefOutlier, std::string("RefOutlier")},
18 {Belle2::TCType::Ghost, std::string("Ghost")},
19 {Belle2::TCType::SmallStump, std::string("SmallStump")},
20 {Belle2::TCType::Clone, std::string("Clone")},
21 {Belle2::TCType::Contaminated, std::string("Contaminated")},
22 {Belle2::TCType::Clean, std::string("Clean")},
23 {Belle2::TCType::Perfect, std::string("Perfect")},
24 {Belle2::TCType::AllTCTypes, std::string("AllTCTypes")},
25 {Belle2::TCType::Reference, std::string("Reference")},
26 {Belle2::TCType::NTypes, std::string("NTypes")}
27};
28
29
31std::map<std::string, Belle2::TCType::Type> Belle2::TCType::s_fromStringToType = {
32 {std::string("UnknownType"), Belle2::TCType::UnknownType},
33 {std::string("Unclassified"), Belle2::TCType::Unclassified},
34 {std::string("Lost"), Belle2::TCType::Lost},
35 {std::string("RefOutlier"), Belle2::TCType::RefOutlier},
36 {std::string("Ghost"), Belle2::TCType::Ghost},
37 {std::string("SmallStump"), Belle2::TCType::SmallStump},
38 {std::string("Clone"), Belle2::TCType::Clone},
39 {std::string("Contaminated"), Belle2::TCType::Contaminated},
40 {std::string("Clean"), Belle2::TCType::Clean},
41 {std::string("Perfect"), Belle2::TCType::Perfect},
42 {std::string("AllTCTypes"), Belle2::TCType::AllTCTypes},
43 {std::string("Reference"), Belle2::TCType::Reference},
44 {std::string("NTypes"), Belle2::TCType::NTypes}
45};
static std::map< std::string, Type > s_fromStringToType
static map allowing translation from a given name stored as a string to its type
Definition: TCType.h:115
static std::map< Type, std::string > s_fromTypeToString
static map allowing translation from a given type to its name stored as a string
Definition: TCType.h:112
Abstract base class for different kinds of events.