![]() |
The Gaudi Framework
master (41389df7)
|
Encapsulates a branch within a ROOT TTree, managing the data and interaction with the TTree. More...
#include </builds/gaudi/Gaudi/GaudiUtils/include/Gaudi/details/BranchWrapper.h>

Public Member Functions | |
| BranchWrapper (const gsl::not_null< TTree * > tree, const std::string &className, const std::string &branchName, const std::string &location, const std::string &algName, unsigned int bufferSize=32000, unsigned int splitLevel=99) | |
| void | setDataPtr (void const *dataPtr) |
| void | setBranchData (const gsl::not_null< DataObject * > pObj) |
| const std::string & | getLocation () const |
| const std::string & | getClassName () const |
| void | setBufferSize (unsigned int size) |
| unsigned int | computeOptimalBufferSize (unsigned int minBufferSize, unsigned int maxBufferSize, unsigned int approxEventsPerBasket, unsigned int splitLevel) |
| compute optimal buffer size to fit given number of element per basket, respecting given min and max | |
| void | padEntries () |
| pad the number of item in the branch to the one of the Tree in which it leaves by adding empty entries | |
Private Attributes | |
| void const * | m_dataBuffer = nullptr |
| TBranch * | m_branch = nullptr |
| std::string | m_className |
| std::string | m_location |
| void(* | setBranchAddress )(gsl::not_null< TBranch * >, const void **) |
Encapsulates a branch within a ROOT TTree, managing the data and interaction with the TTree.
Definition at line 25 of file BranchWrapper.h.
| Gaudi::details::BranchWrapper::BranchWrapper | ( | const gsl::not_null< TTree * > | tree, |
| const std::string & | className, | ||
| const std::string & | branchName, | ||
| const std::string & | location, | ||
| const std::string & | algName, | ||
| unsigned int | bufferSize = 32000, | ||
| unsigned int | splitLevel = 99 ) |
Definition at line 37 of file BranchWrapper.cpp.
| unsigned int Gaudi::details::BranchWrapper::computeOptimalBufferSize | ( | unsigned int | minBufferSize, |
| unsigned int | maxBufferSize, | ||
| unsigned int | approxEventsPerBasket, | ||
| unsigned int | splitLevel ) |
compute optimal buffer size to fit given number of element per basket, respecting given min and max
Definition at line 84 of file BranchWrapper.cpp.
|
inline |
Definition at line 44 of file BranchWrapper.h.
|
inline |
Definition at line 43 of file BranchWrapper.h.
| void Gaudi::details::BranchWrapper::padEntries | ( | ) |
pad the number of item in the branch to the one of the Tree in which it leaves by adding empty entries
Definition at line 112 of file BranchWrapper.cpp.
| void Gaudi::details::BranchWrapper::setBranchData | ( | const gsl::not_null< DataObject * > | pObj | ) |
Definition at line 78 of file BranchWrapper.cpp.
|
inline |
Definition at line 45 of file BranchWrapper.h.
| void Gaudi::details::BranchWrapper::setDataPtr | ( | void const * | dataPtr | ) |
Definition at line 71 of file BranchWrapper.cpp.
|
private |
Definition at line 29 of file BranchWrapper.h.
|
private |
Definition at line 30 of file BranchWrapper.h.
|
private |
Definition at line 28 of file BranchWrapper.h.
|
private |
Definition at line 31 of file BranchWrapper.h.
|
private |
Definition at line 32 of file BranchWrapper.h.