 |
Belle II Software
release-05-01-25
|
12 #include <dqm/analysis/modules/DQMHistAnalysisMonObj.h>
15 #include <dqm/analysis/modules/DQMHistAnalysis.h>
28 DQMHistAnalysisMonObjModule::DQMHistAnalysisMonObjModule()
32 setDescription(
"Example module for making MonitoringObject in DQMHistAnalysis module");
69 TH1* hits =
findHist(
"ARICH/hitsPerEvent");
76 if (hits) hits->Draw();
78 if (bits) bits->Draw();
82 m_monObj->
setVariable(
"hitsPerEvent", hits ? hits->GetMean() : 0, hits ? hits->GetMeanError() : -1);
90 B2DEBUG(20,
"DQMHistAnalysisMonObj : endRun called");
96 B2DEBUG(20,
"terminate called");
virtual void terminate() override
Termination action.
virtual void endRun() override
End-of-run action.
void setDescription(const std::string &description)
Sets the description of the module.
virtual void event() override
Event processor.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
@ c_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
TCanvas * m_c_mask
Canvas with histograms related to channel masking.
virtual void initialize() override
Initialize the Module.
static TH1 * findHist(const std::string &histname)
Find histogram.
void setPropertyFlags(unsigned int propertyFlags)
Sets the flags for the module properties.
MonitoringObject * m_monObj
MonitoringObject to be produced by this module.
Abstract base class for different kinds of events.
void addCanvas(TCanvas *canv)
Add Canvas to monitoring object.
void setVariable(const std::string &var, float val, float upErr=-1., float dwErr=-1)
set value to float variable (new variable is made if not yet existing)
virtual ~DQMHistAnalysisMonObjModule()
Destructor.
virtual void beginRun() override
Begin run function.
TCanvas * m_c_main
Canvas with main run summary histograms.
static MonitoringObject * getMonitoringObject(const std::string &histname)
Get MonitoringObject with given name (new object is created if non-existing)
The base class for the histogram analysis module.