Belle II Software  release-08-01-10
RbTupleManager Class Reference

Class to manage histograms defined in registered modules. More...

#include <RbTuple.h>

Collaboration diagram for RbTupleManager:

Public Member Functions

 RbTupleManager (int nprocess, const char *filename, const char *workdir=".")
 Constructor to use hadd()
 
void init (int nprocess, const char *filename, const char *workdir=".")
 Global initialization.
 
void register_module (Module *)
 Functions called by analysis modules in mother process.
 
int begin (int pid)
 Function called by HistoManager module for the first event.
 
int terminate ()
 Function called by HistoManager module at the end.
 
int dump ()
 Function to dump histograms/tuples to the file.
 
int hadd (bool deleteflag=true)
 Functions to add up all histogram files.
 
const std::vector< Module * > & getHistDefiningModules () const
 Return the list of modules that have defined histograms.
 

Static Public Member Functions

static RbTupleManagerInstance ()
 Access to singleton.
 

Private Attributes

std::vector< Module * > m_histdefs
 registered HistoModules.
 
int m_nproc {0}
 Number of parallel processes.
 
std::string m_filename
 Name of histogram output file.
 
std::string m_workdir
 Name of working directory.
 
TFile * m_root {nullptr}
 Histogram output file.
 

Static Private Attributes

static RbTupleManagers_instance = nullptr
 singleton instance.
 

Detailed Description

Class to manage histograms defined in registered modules.

Definition at line 29 of file RbTuple.h.


The documentation for this class was generated from the following files: