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.");
40HistoManagerModule::~HistoManagerModule() =
default;
static Environment & Instance()
Static method to get a reference to the Environment instance.
virtual void initialize() override
module functions
virtual void event() override
This method is the core of the module.
HistoManagerModule()
Constructor and Destructor.
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.
std::string m_workdir
Name of working directory.
virtual void beginRun() override
Called when entering a new run.
std::string m_histoFileName
Name of histogram output file.
bool m_tupleManagerInitialized
True if RbTupleManager was initialized.
bool m_initmain
True if initialize() was called.
void setDescription(const std::string &description)
Sets the description of the module.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
@ 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.
void addParam(const std::string &name, T ¶mVariable, const std::string &description, const T &defaultValue)
Adds a new parameter to the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.