EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
Write records into a ROOT TTree. More...
#include <acts/blob/sPHENIX/thirdparty/dfelibs/dfe/dfe_io_root.hpp>
Public Member Functions | |
NamedTupleRootWriter ()=delete | |
NamedTupleRootWriter (const NamedTupleRootWriter &)=delete | |
NamedTupleRootWriter (NamedTupleRootWriter &&)=delete | |
NamedTupleRootWriter & | operator= (const NamedTupleRootWriter &)=delete |
NamedTupleRootWriter & | operator= (NamedTupleRootWriter &&)=delete |
NamedTupleRootWriter (const std::string &path, const std::string &tree_name) | |
NamedTupleRootWriter (TDirectory *dir, const std::string &tree_name) | |
~NamedTupleRootWriter () | |
Write the tree and close the owned file. | |
void | append (const NamedTuple &record) |
Append a record to the file. | |
Private Types | |
using | Tuple = typename NamedTuple::Tuple |
Private Member Functions | |
template<std::size_t... I> | |
void | setup_branches (std::index_sequence< I...>) |
Private Attributes | |
TFile * | m_file |
TTree * | m_tree |
Tuple | m_data |
Write records into a ROOT TTree.
Definition at line 42 of file dfe_io_root.hpp.
View newest version in sPHENIX GitHub at line 42 of file dfe_io_root.hpp
|
private |
Definition at line 71 of file dfe_io_root.hpp.
View newest version in sPHENIX GitHub at line 71 of file dfe_io_root.hpp
|
delete |
|
delete |
|
delete |
|
inline |
Create a file at the given path. Overwrites existing data.
path | Path to the output file |
tree_name | Name of the output tree within the file |
Definition at line 129 of file dfe_io_root.hpp.
View newest version in sPHENIX GitHub at line 129 of file dfe_io_root.hpp
References dfe::NamedTupleRootWriter< NamedTuple >::m_file, dfe::NamedTupleRootWriter< NamedTuple >::m_tree, dfe::NamedTupleRootWriter< NamedTuple >::setup_branches(), and value.
|
inline |
Create a tree in a ROOT directory. Overwrites existing data.
dir | Output directory for the tree |
tree_name | Name of the output tree relative to the directory |
When the writer is created with an existing ROOT directory, the user is responsible for ensuring the underlying file is closed.
Definition at line 146 of file dfe_io_root.hpp.
View newest version in sPHENIX GitHub at line 146 of file dfe_io_root.hpp
References dfe::NamedTupleRootWriter< NamedTuple >::m_tree, dfe::NamedTupleRootWriter< NamedTuple >::setup_branches(), and value.
|
inline |
Write the tree and close the owned file.
Definition at line 225 of file dfe_io_root.hpp.
View newest version in sPHENIX GitHub at line 225 of file dfe_io_root.hpp
|
inline |
Append a record to the file.
Definition at line 239 of file dfe_io_root.hpp.
View newest version in sPHENIX GitHub at line 239 of file dfe_io_root.hpp
References m_data.
|
delete |
|
delete |
|
inlineprivate |
Definition at line 205 of file dfe_io_root.hpp.
View newest version in sPHENIX GitHub at line 205 of file dfe_io_root.hpp
References I, m_data, eicpy.verify::names, value, and nlohmann::detail::void().
Referenced by dfe::NamedTupleRootWriter< NamedTuple >::NamedTupleRootWriter().
|
private |
Definition at line 75 of file dfe_io_root.hpp.
View newest version in sPHENIX GitHub at line 75 of file dfe_io_root.hpp
|
private |
Definition at line 73 of file dfe_io_root.hpp.
View newest version in sPHENIX GitHub at line 73 of file dfe_io_root.hpp
Referenced by dfe::NamedTupleRootWriter< NamedTuple >::NamedTupleRootWriter().
|
private |
Definition at line 74 of file dfe_io_root.hpp.
View newest version in sPHENIX GitHub at line 74 of file dfe_io_root.hpp
Referenced by dfe::NamedTupleRootWriter< NamedTuple >::NamedTupleRootWriter().