10#include <dqm/analysis/modules/DQMHistAnalysisMonObj.h>
27 setDescription(
"Example module for making MonitoringObject in DQMHistAnalysis module");
55 TH1* hits =
findHist(
"ARICH/hitsPerEvent");
62 if (hits) hits->Draw();
64 if (bits) bits->Draw();
68 m_monObj->
setVariable(
"hitsPerEvent", hits ? hits->GetMean() : 0, hits ? hits->GetMeanError() : -1);
76 B2DEBUG(20,
"DQMHistAnalysisMonObj : endRun called");
82 B2DEBUG(20,
"terminate called");
The base class for the histogram analysis module.
static MonitoringObject * getMonitoringObject(const std::string &name)
Get MonitoringObject with given name (new object is created if non-existing)
static TH1 * findHist(const std::string &histname, bool onlyIfUpdated=false)
Get histogram from list (no other search).
void initialize() override final
Initialize the Module.
MonitoringObject * m_monObj
MonitoringObject to be produced by this module.
void terminate() override final
Termination action.
DQMHistAnalysisMonObjModule()
Constructor.
TCanvas * m_c_mask
Canvas with histograms related to channel masking.
TCanvas * m_c_main
Canvas with main run summary histograms.
void endRun() override final
End-of-run action.
~DQMHistAnalysisMonObjModule()
Destructor.
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_ParallelProcessingCertified
This module can be run in parallel processing mode safely (All I/O must be done through the data stor...
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)
void addCanvas(TCanvas *canv)
Add Canvas to monitoring object.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.