Belle II Software
development
Toggle main menu visibility
Main Page
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
x
z
Typedefs
a
b
c
d
e
g
i
k
l
m
n
p
r
s
t
u
v
w
Enumerations
a
b
c
e
f
g
n
p
s
v
z
Enumerator
c
d
f
p
t
v
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Enumerations
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
k
l
m
n
o
p
r
s
t
u
v
w
z
Related Symbols
b
c
d
g
i
o
r
s
t
Files
File List
File Members
All
Functions
Typedefs
Macros
▼
Belle II Software
►
Topics
►
Namespaces
►
Classes
▼
Files
▼
File List
►
alignment
►
analysis
►
arich
►
b2bii
►
background
►
beast
►
calibration
►
cdc
►
daq
►
decfiles
►
display
►
dqm
►
ecl
►
framework
►
generators
►
geometry
►
hlt
►
ir
►
klm
►
masterclass
►
mdst
►
mva
►
online_book
►
pxd
►
rawdata
►
reconstruction
►
simulation
►
site_scons
►
structure
►
svd
►
top
▼
tracking
►
ckf
►
dataobjects
►
datcon
►
dbobjects
►
dqmUtils
►
eventTimeExtraction
►
examples
►
gfbfield
►
kinkFinding
►
mcMatcher
►
modules
►
roiFinding
►
scripts
►
spacePointCreation
►
studies
►
tests
►
tools
►
trackExtrapolateG4e
►
trackFindingCDC
▼
trackFindingVXD
►
algorithms
►
analyzingTools
►
environment
►
filterMap
►
filterTools
►
mva
►
sectorMapTools
►
segmentNetwork
►
tcTools
►
trackQualityEstimators
►
trackSegmentTools
►
trackSetEvaluator
►
utilities
▼
variableExtractors
▼
include
ClusterInfoExtractor.h
QEResultsExtractor.h
SimpleVariableRecorder.h
VariableExtractor.h
►
trackFitting
►
v0Finding
►
validation
►
variables
►
vxdCaTracking
►
vxdHoughTracking
►
vxdMomentumEstimation
►
trg
►
validation
►
vxd
Doxygen.h
resource_analyzer.py
►
File Members
VariableExtractor.h
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
9
#pragma once
10
#include <vector>
11
#include <string>
12
#include <tracking/trackFindingVXD/utilities/Named.h>
13
#include <unordered_map>
14
15
16
namespace
Belle2
{
22
class
VariableExtractor
{
23
public
:
24
25
protected
:
27
void
addVariable
(
const
std::string& identifier, std::vector<
Named<float*>
>& variables)
28
{
29
//todo: verify if it is faster to check explicitly or not
30
auto
value =
m_variables
.emplace(identifier, NAN).first;
31
variables.emplace_back(identifier, &(value->second));
32
}
27
void
addVariable
(
const
std::string& identifier, std::vector<
Named<float*>
>& variables) {
…
}
33
35
std::unordered_map<std::string, float>
m_variables
;
36
};
22
class
VariableExtractor
{
…
};
37
38
}
Belle2::Named
A mixin class to attach a name to an object. Based on class with same name in CDC package.
Definition
Named.h:21
Belle2::VariableExtractor
class to extract individual variables
Definition
VariableExtractor.h:22
Belle2::VariableExtractor::addVariable
void addVariable(const std::string &identifier, std::vector< Named< float * > > &variables)
add a variable to the variable set
Definition
VariableExtractor.h:27
Belle2::VariableExtractor::m_variables
std::unordered_map< std::string, float > m_variables
unordered_map to associate float value with a string name
Definition
VariableExtractor.h:35
Belle2
Abstract base class for different kinds of events.
Definition
MillepedeAlgorithm.h:17
tracking
trackFindingVXD
variableExtractors
include
VariableExtractor.h
Generated on Sun May 18 2025 03:07:22 for Belle II Software by
1.13.2