12#include <tracking/trackFindingVXD/filterMap/filterFramework/TBranchLeafType.h>
22 template <
class Variable>
37 void setValue(
const typename Variable::variableType& var)
44 template<
class ... SpacePoints>
52 template <
class Variable>
55 if (tree !=
nullptr && tree -> GetBranch(Variable::name().c_str()) ==
nullptr)
56 m_branch = tree->Branch(Variable::name().c_str(), & m_storedValue,
void evaluateOn(const SpacePoints &... sps)
Evaluate the variable for the given SpacePoints.
void setValue(const typename Variable::variableType &var)
Set the value to be stored in the TTree.
TBranch * m_branch
Member for the pointer to the TBranch.
Variable::variableType m_storedValue
The value to be stored in the branch.
char TBranchLeafType(const char *)
Overloading TBranchLeafType to be able to get identifier 'C' for type char*.
VariableTBranch(TTree *tree)
Add to the TTree.
Abstract base class for different kinds of events.