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) {
static Environment & Instance()
Static method to get a reference to the Environment instance.
Class definition of HistoManager module.
virtual void initialize() override
module functions
virtual void event() override
This method is the core of the module.
virtual void endRun() override
This method is called if the current run ends.
virtual void terminate() override
This method is called at the end of the event processing.
virtual void beginRun() override
Called when entering a new run.
@ c_HistogramManager
This module is used to manage histograms accumulated by other modules.
static int EvtProcID()
Return ID of the current process.
static RbTupleManager & Instance()
Access to singleton.
int terminate()
Function called by HistoManager module at the end.
void init(int nprocess, const char *filename, const char *workdir=".")
Global initialization.
int begin(int pid)
Function called by HistoManager module for the first event.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.