18namespace Belle2::VariablePersistenceManager {
20 enum VariableDataType {
64 TypedVariable(
const std::string& variableName,
const VariableDataType& variableDataType)
92 BinnedVariable(
const std::string& variableName,
int _nBins,
float _lowBin,
float _highBin)
127 typedef std::variant<double, int, bool> VariableType;
133 typedef std::vector<std::variant<TypedVariable, BinnedVariable>> Variables;
139 typedef std::map<std::string, VariableType> EvaluatedVariables;
float lowBin
The lower bin boundary.
float highBin
The upper bin boundary.
float getHighBin() const
Retrieves the upper bin edge.
BinnedVariable(const std::string &variableName, int _nBins, float _lowBin, float _highBin)
Constructs a new BinnedVariable.
float getLowBin() const
Retrieves the lower bin edge.
int getNbins() const
Retrieves the number of bins.
int nBins
The number of bins.
TypedVariable(const std::string &variableName, const VariableDataType &variableDataType)
Constructs a new TypedVariable.
VariableDataType dataType
The data type of the variable.
VariableDataType getDataType() const
Retrieves the data type of this variable.
virtual std::string getName() const
Retrieves the name of the variable.
std::string name
The name of the variable.
Variable(const std::string &variableName)
Constructs a new Variable.
virtual ~Variable()=default
Virtual destructor.