![]() |
KaliVeda
Toolkit for HIC analysis
|
Facilitate use of std::vector branches in data analysis.
Definition at line 14 of file KVTreeVectorBranchHandler.h.
#include <KVTreeVectorBranchHandler.h>

Public Member Functions | |
| template<typename VarType > | |
| void | AddVectorBranch (TTree *t, const std::string &var) |
| void | ClearVectorBranches () |
| template<typename VarType > | |
| void | FillVectorBranch (const std::string &var, VarType val) |
|
inline |
Add a branch to the tree in order to store a vector of values
| VarType | type of variable in vector (int, float and double can be used) |
| [in] | t | pointer to the TTree |
| [in] | var | name to be used for the new branch |
Example of use:
Definition at line 67 of file KVTreeVectorBranchHandler.h.
|
inline |
Clear all vectors contained in branches, ready to treat a new event
Definition at line 75 of file KVTreeVectorBranchHandler.h.
|
inline |
Add a value to the vector contained in the named branch
| VarType | type of variable in vector (int, float and double can be used) |
| [in] | var | name of branch |
| [in] | val | value to add to vector |
Example of use:
Definition at line 96 of file KVTreeVectorBranchHandler.h.