Belle II Software development
VariableTBranch< Variable > Class Template Reference

This class contains. More...

#include <VariableTBranch.h>

Public Member Functions

 VariableTBranch (TTree *tree)
 Add to the TTree.
 
void setValue (const typename Variable::variableType &var)
 Set the value to be stored in the TTree.
 
template<class ... SpacePoints>
void evaluateOn (const SpacePoints &... sps)
 Evaluate the variable for the given SpacePoints.
 

Private Attributes

Variable::variableType m_storedValue
 The value to be stored in the branch.
 
TBranch * m_branch
 Member for the pointer to the TBranch.
 

Detailed Description

template<class Variable>
class Belle2::VariableTBranch< Variable >

This class contains.

Definition at line 23 of file VariableTBranch.h.

Member Function Documentation

◆ evaluateOn()

void evaluateOn ( const SpacePoints &...  sps)
inline

Evaluate the variable for the given SpacePoints.

Template Parameters
SpacePoints: SpacePoints type(s)
Parameters
sps: SpacePoints

Definition at line 45 of file VariableTBranch.h.

46 {
47 m_storedValue = Variable::value(sps ...);
48 }
Variable::variableType m_storedValue
The value to be stored in the branch.

◆ setValue()

void setValue ( const typename Variable::variableType &  var)
inline

Set the value to be stored in the TTree.

Parameters
var: this value will be set

Definition at line 37 of file VariableTBranch.h.

38 { m_storedValue = var;}

Member Data Documentation

◆ m_branch

TBranch* m_branch
private

Member for the pointer to the TBranch.

Definition at line 27 of file VariableTBranch.h.

◆ m_storedValue

Variable::variableType m_storedValue
private

The value to be stored in the branch.

Definition at line 25 of file VariableTBranch.h.


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