 |
Belle II Software
release-05-02-19
|
9 #include <framework/modules/histomanager/HistoManagerModule.h>
11 #include <framework/core/Environment.h>
12 #include <framework/pcore/ProcHandler.h>
13 #include <framework/pcore/RbTuple.h>
31 setDescription(
"Manage histograms/Ntuples/TTrees for modules inheriting from the HistoModule class. See https://confluence.desy.de/display/BI/Software+HistogramManagement for details.");
35 addParam(
"histoFileName", m_histoFileName,
"Name of histogram output file.",
string(
"histofile.root"));
36 addParam(
"workDirName", m_workdir,
"Name of working directory.",
string(
"."));
40 HistoManagerModule::~HistoManagerModule() =
default;
53 if (!m_tupleManagerInitialized) {
57 m_tupleManagerInitialized =
true;
63 if (!m_tupleManagerInitialized) {
67 m_tupleManagerInitialized =
true;
73 if (!m_tupleManagerInitialized) {
77 m_tupleManagerInitialized =
true;
83 if (m_tupleManagerInitialized) {
void init(int nprocess, const char *filename, const char *workdir=".")
Global initialization.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
int begin(int pid)
Function called by HistoManager module for the first event.
virtual void initialize() override
module functions
virtual void event() override
This method is the core of the module.
virtual void beginRun() override
Called when entering a new run.
Class definition of HistoManager module.
@ c_HistogramManager
This module is used to manage histograms accumulated by other modules.
Abstract base class for different kinds of events.
static RbTupleManager & Instance()
Access to singleton.
static int EvtProcID()
Return ID of the current process.
virtual void terminate() override
This method is called at the end of the event processing.
virtual void endRun() override
This method is called if the current run ends.
static Environment & Instance()
Static method to get a reference to the Environment instance.
int terminate()
Function called by HistoManager module at the end.