Belle II Software development
VariableExtractor Class Reference

class to extract individual variables More...

#include <VariableExtractor.h>

Inheritance diagram for VariableExtractor:
ClusterInfoExtractor EventInfoExtractor FlipRecoTrackExtractor FlipRecoTrackExtractor2nd HitInfoExtractor QEResultsExtractor RecoTrackExtractor SubRecoTrackExtractor

Protected Member Functions

void addVariable (const std::string &identifier, std::vector< Named< float * > > &variables)
 add a variable to the variable set
 

Protected Attributes

std::unordered_map< std::string, float > m_variables
 unordered_map to associate float value with a string name
 

Detailed Description

class to extract individual variables

Definition at line 22 of file VariableExtractor.h.

Member Function Documentation

◆ addVariable()

void addVariable ( const std::string &  identifier,
std::vector< Named< float * > > &  variables 
)
inlineprotected

add a variable to the variable set

Definition at line 27 of file VariableExtractor.h.

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 }
std::unordered_map< std::string, float > m_variables
unordered_map to associate float value with a string name

Member Data Documentation

◆ m_variables

std::unordered_map<std::string, float> m_variables
protected

unordered_map to associate float value with a string name

Definition at line 35 of file VariableExtractor.h.


The documentation for this class was generated from the following file: