![]() |
Belle II Software
release-06-00-14
|
Class to manage histograms defined in registered modules. More...
#include <RbTuple.h>
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 RbTupleManager & | Instance () |
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 RbTupleManager * | s_instance = nullptr |
singleton instance. | |