Class to fill a tree from a set of variables.
More...
#include <Recorder.h>
|
| Recorder (const std::function< void(TTree &)> &setBranches, const std::string &rootFileName, const std::string &treeName="recorded_tree") |
| Construct the Recorder opening the given ROOT file and create the underlying TTree and add let the given function setup branches. More...
|
|
| Recorder (const std::vector< Named< Float_t * > > &namedVariables, const std::string &rootFileName, const std::string &treeName="recorded_tree") |
| Construct the Recorder opening the given ROOT file and create the underlying TTree and add variable names and values addresses as branches to it. More...
|
|
| ~Recorder () |
| Destructor writing the TTree and closing the ROOT File.
|
|
void | write () |
| Write all captured variables to disk.
|
|
void | capture () |
| Capture the registered variable values and write them out.
|
|
|
std::unique_ptr< Impl > | m_impl |
| Pointer to implementation hiding the details.
|
|
Class to fill a tree from a set of variables.
Definition at line 31 of file Recorder.h.
◆ Recorder() [1/2]
Recorder |
( |
const std::function< void(TTree &)> & |
setBranches, |
|
|
const std::string & |
rootFileName, |
|
|
const std::string & |
treeName = "recorded_tree" |
|
) |
| |
Construct the Recorder opening the given ROOT file and create the underlying TTree and add let the given function setup branches.
- Parameters
-
setBranches | Function invoked with the underlying TTree as argument which is supposed create Branches and provide the value adresses. |
rootFileName | Name of ROOT file to which should be written. |
treeName | Name of the TTree in the ROOT file. |
◆ Recorder() [2/2]
Recorder |
( |
const std::vector< Named< Float_t * > > & |
namedVariables, |
|
|
const std::string & |
rootFileName, |
|
|
const std::string & |
treeName = "recorded_tree" |
|
) |
| |
Construct the Recorder opening the given ROOT file and create the underlying TTree and add variable names and values addresses as branches to it.
- Parameters
-
namedVariables | A sequence of named values that are used as addresses of branches |
rootFileName | Name of ROOT file to which should be written. |
treeName | Name of the TTree in the ROOT file. |
The documentation for this class was generated from the following files: