![]() |
The Gaudi Framework
master (69a68366)
|
Wrapper around a given NTuple. More...
#include </builds/gaudi/Gaudi/GaudiUtils/include/Gaudi/NTuple/Writer.h>

Public Member Functions | |
| void | initTree (TFile &file, std::string const &algName, std::string const &name, std::array< std::string, sizeof...(COLUMNS)> const &branchNames) |
| void | fillTree (std::tuple< COLUMNS... > const &data) const |
| fills the tree with given data this is safe to be called in the threaded context | |
| void | writeTree (TFile &file, std::string const &algName) |
Private Member Functions | |
| template<std::size_t... Is> | |
| void | createBranches (std::index_sequence< Is... > const, std::string const &algName, std::array< std::string, sizeof...(COLUMNS)> const &branchNames) const |
Private Attributes | |
| TTree * | m_tree { nullptr } |
| std::vector< details::BranchWrapper > | m_branchWrappers {} |
| std::mutex | m_mtx |
Wrapper around a given NTuple.
Provides the functionality for initializing branches in a ROOT TTree, filling the tree, and writing it to a given file.
An algorithm wanting to write NTuple would typically declare one or several Wrappers as its member and call initTree at initialization, fillTree during processing (that one is thread safe) and finally writeTree at finalization initTree and writeTree are not thread safe
| COLUMNS | Variadic template parameters representing data types in the NTuple |
|
inlineprivate |
Definition at line 86 of file Writer.h.
|
inline |
fills the tree with given data this is safe to be called in the threaded context
Definition at line 59 of file Writer.h.
|
inline |
Definition at line 47 of file Writer.h.
|
inline |
|
mutableprivate |
|
mutableprivate |
|
private |