Belle II Software  release-05-01-25
TCType.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Jakob Lettenbichler (jakob.lettenbichler@oeaw.ac.at) *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 #include <tracking/trackFindingVXD/analyzingTools/TCType.h>
11 
12 using namespace Belle2;
13 
15 std::map<Belle2::TCType::Type, std::string> Belle2::TCType::s_fromTypeToString = {
16  {Belle2::TCType::UnknownType, std::string("UnknownType")},
17  {Belle2::TCType::Unclassified, std::string("Unclassified")},
18  {Belle2::TCType::Lost, std::string("Lost")},
19  {Belle2::TCType::RefOutlier, std::string("RefOutlier")},
20  {Belle2::TCType::Ghost, std::string("Ghost")},
21  {Belle2::TCType::SmallStump, std::string("SmallStump")},
22  {Belle2::TCType::Clone, std::string("Clone")},
23  {Belle2::TCType::Contaminated, std::string("Contaminated")},
24  {Belle2::TCType::Clean, std::string("Clean")},
25  {Belle2::TCType::Perfect, std::string("Perfect")},
26  {Belle2::TCType::AllTCTypes, std::string("AllTCTypes")},
27  {Belle2::TCType::Reference, std::string("Reference")},
28  {Belle2::TCType::NTypes, std::string("NTypes")}
29 };
30 
31 
33 std::map<std::string, Belle2::TCType::Type> Belle2::TCType::s_fromStringToType = {
34  {std::string("UnknownType"), Belle2::TCType::UnknownType},
35  {std::string("Unclassified"), Belle2::TCType::Unclassified},
36  {std::string("Lost"), Belle2::TCType::Lost},
37  {std::string("RefOutlier"), Belle2::TCType::RefOutlier},
38  {std::string("Ghost"), Belle2::TCType::Ghost},
39  {std::string("SmallStump"), Belle2::TCType::SmallStump},
40  {std::string("Clone"), Belle2::TCType::Clone},
41  {std::string("Contaminated"), Belle2::TCType::Contaminated},
42  {std::string("Clean"), Belle2::TCType::Clean},
43  {std::string("Perfect"), Belle2::TCType::Perfect},
44  {std::string("AllTCTypes"), Belle2::TCType::AllTCTypes},
45  {std::string("Reference"), Belle2::TCType::Reference},
46  {std::string("NTypes"), Belle2::TCType::NTypes}
47 };
Belle2::TCType::s_fromTypeToString
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:122
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::TCType::s_fromStringToType
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:125