Belle II Software  release-05-01-25
FlavorTaggerInfoMap.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2015 - Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Christian Roca and Fernando Abudinen *
7  * *
8  * This software is provided "as is" without any warranty. *
9  **************************************************************************/
10 
11 #include <analysis/dataobjects/FlavorTaggerInfoMap.h>
12 
13 using namespace Belle2;
14 
15 
16 
17 /************************SETTERS***********************/
18 
19 
20 void FlavorTaggerInfoMap::setTargetTrackLevel(const std::string& category, const Track* track)
21 {
22  m_targetTrackLevel.insert(std::pair<std::string, const Track*>(category, track));
23 }
24 
25 
26 void FlavorTaggerInfoMap::setProbTrackLevel(const std::string& category, float probability)
27 {
28  m_probTrackLevel.insert(std::pair<std::string, float>(category, probability));
29 }
30 
31 
32 void FlavorTaggerInfoMap::setTargetEventLevel(const std::string& category, const Belle2::Track* track)
33 {
34  m_targetEventLevel.insert(std::pair<std::string, const Track*>(category, track));
35 }
36 
37 
38 void FlavorTaggerInfoMap::setProbEventLevel(const std::string& category, float probability)
39 {
40  m_probEventLevel.insert(std::pair<std::string, float>(category, probability));
41 }
42 
43 
44 void FlavorTaggerInfoMap::setQpCategory(const std::string& category, float qp)
45 {
46  m_qpCategory.insert(std::pair<std::string, float>(category, qp));
47 }
48 
49 void FlavorTaggerInfoMap::setHasTrueTarget(const std::string& category, float isTrue)
50 {
51  m_hasTrueTarget.insert(std::pair<std::string, float>(category, isTrue));
52 }
53 
54 void FlavorTaggerInfoMap::setIsTrueCategory(const std::string& category, float isTrue)
55 {
56  m_isTrueCategory.insert(std::pair<std::string, float>(category, isTrue));
57 }
58 
60 {
61  m_qrCombined = qr;
62 }
63 
64 
65 void FlavorTaggerInfoMap::setB0Probability(float B0Probability)
66 {
67  m_B0Probability = B0Probability;
68 }
69 
70 
71 void FlavorTaggerInfoMap::setB0barProbability(float B0barProbability)
72 {
73  m_B0barProbability = B0barProbability;
74 }
75 
76 
77 /************************GETTERS***********************/
78 
79 
80 std::map<std::string, const Belle2::Track*> FlavorTaggerInfoMap::getTargetTrackLevel()
81 {
82  return m_targetTrackLevel;
83 }
84 
85 std::map<std::string, float> FlavorTaggerInfoMap::getProbTrackLevel()
86 {
87  return m_probTrackLevel;
88 }
89 
90 std::map<std::string, const Belle2::Track*> FlavorTaggerInfoMap::getTargetEventLevel()
91 {
92  return m_targetEventLevel;
93 }
94 
95 std::map<std::string, float> FlavorTaggerInfoMap::getProbEventLevel()
96 {
97  return m_probEventLevel;
98 }
99 
100 std::map<std::string, float> FlavorTaggerInfoMap::getQpCategory()
101 {
102  return m_qpCategory;
103 }
104 
105 std::map<std::string, float> FlavorTaggerInfoMap::getHasTrueTarget()
106 {
107  return m_hasTrueTarget;
108 }
109 
110 std::map<std::string, float> FlavorTaggerInfoMap::getIsTrueCategory()
111 {
112  return m_isTrueCategory;
113 }
114 
116 {
117  return m_qrCombined;
118 }
119 
121 {
122  return m_B0Probability;
123 }
124 
126 {
127  return m_B0barProbability;
128 }
Belle2::FlavorTaggerInfoMap::m_B0Probability
float m_B0Probability
Direct Output of the Combiner: Probability of being a B0.
Definition: FlavorTaggerInfoMap.h:235
Belle2::FlavorTaggerInfoMap::getTargetEventLevel
std::map< std::string, const Belle2::Track * > getTargetEventLevel()
get map containing the category name and the corresponding pointer to the track with highest category...
Definition: FlavorTaggerInfoMap.cc:90
Belle2::FlavorTaggerInfoMap::setProbTrackLevel
void setProbTrackLevel(const std::string &category, float probability)
Map filler: Set the category name and the corresponding highest target track probability.
Definition: FlavorTaggerInfoMap.cc:26
Belle2::FlavorTaggerInfoMap::setB0Probability
void setB0Probability(float B0Probability)
Saves the B0Probability output of the Combiner.
Definition: FlavorTaggerInfoMap.cc:65
Belle2::FlavorTaggerInfoMap::m_isTrueCategory
std::map< std::string, float > m_isTrueCategory
map containing the category name and a float value which is 1 if the corresponding category tags the ...
Definition: FlavorTaggerInfoMap.h:232
Belle2::FlavorTaggerInfoMap::setQpCategory
void setQpCategory(const std::string &category, float qr)
Map filler: Set the category name and the corresponding qr Output, i.e.
Definition: FlavorTaggerInfoMap.cc:44
Belle2::FlavorTaggerInfoMap::m_qpCategory
std::map< std::string, float > m_qpCategory
map containing the category name and the corresponding qr Output, i.e.
Definition: FlavorTaggerInfoMap.h:228
Belle2::FlavorTaggerInfoMap::getB0Probability
float getB0Probability()
Probability of being a B0.
Definition: FlavorTaggerInfoMap.cc:120
Belle2::FlavorTaggerInfoMap::setB0barProbability
void setB0barProbability(float B0barProbability)
Saves the B0barProbability output of the Combiner.
Definition: FlavorTaggerInfoMap.cc:71
Belle2::FlavorTaggerInfoMap::setTargetEventLevel
void setTargetEventLevel(const std::string &category, const Belle2::Track *track)
Map filler: Set the category name and the pointer of the track with the highest category probability ...
Definition: FlavorTaggerInfoMap.cc:32
Belle2::FlavorTaggerInfoMap::getQrCombined
float getQrCombined()
qr Output of the Combiner.
Definition: FlavorTaggerInfoMap.cc:115
Belle2::FlavorTaggerInfoMap::setProbEventLevel
void setProbEventLevel(const std::string &category, float probability)
Map filler: Set the category name and the highest category probability for the corresponding category...
Definition: FlavorTaggerInfoMap.cc:38
Belle2::FlavorTaggerInfoMap::m_probEventLevel
std::map< std::string, float > m_probEventLevel
map containing the category name and the corresponding highest category probability in Event Level
Definition: FlavorTaggerInfoMap.h:226
Belle2::FlavorTaggerInfoMap::getQpCategory
std::map< std::string, float > getQpCategory()
get map containing the category name and the corresponding qr Output
Definition: FlavorTaggerInfoMap.cc:100
Belle2::FlavorTaggerInfoMap::getProbEventLevel
std::map< std::string, float > getProbEventLevel()
get map containing the category name and the corresponding highest category probability in Event Leve...
Definition: FlavorTaggerInfoMap.cc:95
Belle2::FlavorTaggerInfoMap::m_hasTrueTarget
std::map< std::string, float > m_hasTrueTarget
map containing the category name and a float value which is 1 if the corresponding category has a tar...
Definition: FlavorTaggerInfoMap.h:230
Belle2::FlavorTaggerInfoMap::setIsTrueCategory
void setIsTrueCategory(const std::string &category, float isTrue)
Map filler: Set the category name and the corresponding truth MC value.
Definition: FlavorTaggerInfoMap.cc:54
Belle2::FlavorTaggerInfoMap::getB0barProbability
float getB0barProbability()
Probability of being a B0bar.
Definition: FlavorTaggerInfoMap.cc:125
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::FlavorTaggerInfoMap::m_targetTrackLevel
std::map< std::string, const Belle2::Track * > m_targetTrackLevel
map containing the category name and the corresponding pointer to the track with highest target proba...
Definition: FlavorTaggerInfoMap.h:220
Belle2::FlavorTaggerInfoMap::m_probTrackLevel
std::map< std::string, float > m_probTrackLevel
map containing the category name and thecorresponding highest target track probability in Track Level
Definition: FlavorTaggerInfoMap.h:222
Belle2::FlavorTaggerInfoMap::getIsTrueCategory
std::map< std::string, float > getIsTrueCategory()
get map containing the category truth.
Definition: FlavorTaggerInfoMap.cc:110
Belle2::FlavorTaggerInfoMap::m_qrCombined
float m_qrCombined
qr Output of the Combiner.
Definition: FlavorTaggerInfoMap.h:234
Belle2::FlavorTaggerInfoMap::setHasTrueTarget
void setHasTrueTarget(const std::string &category, float isTrue)
Map filler: Set the category name and the corresponding MC target truth value.
Definition: FlavorTaggerInfoMap.cc:49
Belle2::Track
Class that bundles various TrackFitResults.
Definition: Track.h:35
Belle2::FlavorTaggerInfoMap::m_B0barProbability
float m_B0barProbability
Direct Output of the Combiner: Probability of being a B0bar).
Definition: FlavorTaggerInfoMap.h:236
Belle2::FlavorTaggerInfoMap::m_targetEventLevel
std::map< std::string, const Belle2::Track * > m_targetEventLevel
map containing the category name and the corresponding pointer to the track with highest category pro...
Definition: FlavorTaggerInfoMap.h:224
Belle2::FlavorTaggerInfoMap::setTargetTrackLevel
void setTargetTrackLevel(const std::string &category, const Belle2::Track *track)
SETTERS The setters are expected to fill a map whose element corresponds to the probabilities and tra...
Definition: FlavorTaggerInfoMap.cc:20
Belle2::FlavorTaggerInfoMap::getTargetTrackLevel
std::map< std::string, const Belle2::Track * > getTargetTrackLevel()
get map containing the category name and the corresponding pointer to the track with highest target p...
Definition: FlavorTaggerInfoMap.cc:80
Belle2::FlavorTaggerInfoMap::getProbTrackLevel
std::map< std::string, float > getProbTrackLevel()
get map containing the category name and thecorresponding highest target track probability in Track L...
Definition: FlavorTaggerInfoMap.cc:85
Belle2::FlavorTaggerInfoMap::getHasTrueTarget
std::map< std::string, float > getHasTrueTarget()
get map containing the category truth.
Definition: FlavorTaggerInfoMap.cc:105
Belle2::FlavorTaggerInfoMap::setQrCombined
void setQrCombined(float qr)
Saves qr Output of the Combiner.
Definition: FlavorTaggerInfoMap.cc:59