10 #include <tracking/trackFindingCDC/utilities/Named.h>
12 #include <RtypesCore.h>
26 namespace TrackFindingCDC {
40 Recorder(
const std::function<
void(TTree&)>& setBranches,
41 const std::string& rootFileName,
42 const std::string& treeName =
"recorded_tree");
54 const std::string& rootFileName,
55 const std::string& treeName =
"recorded_tree");
Record the MVA variables.
Class to fill a tree from a set of variables.
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 gi...
std::unique_ptr< Impl > m_impl
Pointer to implementation hiding the details.
void capture()
Capture the registered variable values and write them out.
void write()
Write all captured variables to disk.
~Recorder()
Destructor writing the TTree and closing the ROOT File.
Abstract base class for different kinds of events.