9#include <calibration/modules/DummyCollector/DummyCollectorModule.h>
28 setDescription(
"Dummy module for running when you don't really need output.");
33 auto hist =
new TH1I(
"histogram",
"Number of times hist->Fill() was called.", 1, 0., 1.);
34 registerObject<TH1I>(
"DummyHist", hist);
39 getObjectPtr<TH1I>(
"DummyHist")->Fill(0.5);
Calibration collector module base class.
virtual void collect() override
Replacement for event(). Fill you calibration data objects here.
virtual void prepare() override
Replacement for initialize(). Register calibration dataobjects here as well.
DummyCollectorModule()
Constructor: Sets the description, the properties and the parameters of the module.
void setDescription(const std::string &description)
Sets the description of the module.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.