![]() |
ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Read records from a ROOT TTree. More...
#include <acts/blob/master/thirdparty/dfelibs/dfe/dfe_io_root.hpp>
Public Member Functions | |
| NamedTupleRootReader ()=delete | |
| NamedTupleRootReader (const NamedTupleRootReader &)=delete | |
| NamedTupleRootReader (NamedTupleRootReader &&)=delete | |
| NamedTupleRootReader & | operator= (const NamedTupleRootReader &)=delete |
| NamedTupleRootReader & | operator= (NamedTupleRootReader &&)=delete |
| NamedTupleRootReader (const std::string &path, const std::string &tree_name) | |
| NamedTupleRootReader (TDirectory *dir, const std::string &tree_name) | |
| ~NamedTupleRootReader () | |
| Write the tree and close the owned file. | |
| bool | read (NamedTuple &record) |
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 |
| int64_t | m_next |
| Tuple | m_data |
Read records from a ROOT TTree.
Definition at line 83 of file dfe_io_root.hpp.
View newest version in sPHENIX GitHub at line 83 of file dfe_io_root.hpp
|
private |
Definition at line 115 of file dfe_io_root.hpp.
View newest version in sPHENIX GitHub at line 115 of file dfe_io_root.hpp
|
delete |
|
delete |
|
delete |
|
inline |
Open a file at the given path.
| path | Path to the input file |
| tree_name | Name of the input tree within the file |
Definition at line 249 of file dfe_io_root.hpp.
View newest version in sPHENIX GitHub at line 249 of file dfe_io_root.hpp
References dfe::NamedTupleRootReader< NamedTuple >::m_file, dfe::NamedTupleRootReader< NamedTuple >::m_tree, and dfe::NamedTupleRootReader< NamedTuple >::setup_branches().
Here is the call graph for this function:
|
inline |
Open a tree from a ROOT directory.
| dir | Input directory for the tree |
| tree_name | Name of the input tree relative to the directory |
When the reader is created with an existing ROOT directory, the user is responsible for ensuring the underlying file is closed.
Definition at line 266 of file dfe_io_root.hpp.
View newest version in sPHENIX GitHub at line 266 of file dfe_io_root.hpp
References dfe::NamedTupleRootReader< NamedTuple >::m_tree, and dfe::NamedTupleRootReader< NamedTuple >::setup_branches().
Here is the call graph for this function:
|
inline |
Write the tree and close the owned file.
Definition at line 326 of file dfe_io_root.hpp.
View newest version in sPHENIX GitHub at line 326 of file dfe_io_root.hpp
|
delete |
|
delete |
|
inline |
Read the next record from the file.
Definition at line 336 of file dfe_io_root.hpp.
View newest version in sPHENIX GitHub at line 336 of file dfe_io_root.hpp
References m_data.
|
inlineprivate |
Definition at line 312 of file dfe_io_root.hpp.
View newest version in sPHENIX GitHub at line 312 of file dfe_io_root.hpp
References nlohmann::detail::get(), dfe::io_root_impl::get_address(), I, m_data, and void().
Referenced by dfe::NamedTupleRootReader< NamedTuple >::NamedTupleRootReader().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 120 of file dfe_io_root.hpp.
View newest version in sPHENIX GitHub at line 120 of file dfe_io_root.hpp
|
private |
Definition at line 117 of file dfe_io_root.hpp.
View newest version in sPHENIX GitHub at line 117 of file dfe_io_root.hpp
Referenced by dfe::NamedTupleRootReader< NamedTuple >::NamedTupleRootReader().
|
private |
Definition at line 119 of file dfe_io_root.hpp.
View newest version in sPHENIX GitHub at line 119 of file dfe_io_root.hpp
|
private |
Definition at line 118 of file dfe_io_root.hpp.
View newest version in sPHENIX GitHub at line 118 of file dfe_io_root.hpp
Referenced by dfe::NamedTupleRootReader< NamedTuple >::NamedTupleRootReader().