10#include <dqm/analysis/modules/DQMHistAnalysisDAQMonObj.h>
26 B2DEBUG(20,
"DQMHistAnalysisDAQMonObj: Constructor done.");
36 B2DEBUG(20,
"DQMHistAnalysisDAQMonObj: initialized.");
41 B2DEBUG(20,
"DQMHistAnalysisDAQMonObj: beginRun called.");
46 B2DEBUG(20,
"DQMHistAnalysisDAQMonObj: event called.");
51 B2DEBUG(20,
"DQMHistAnalysisDAQMonObj: endRun called.");
53 auto* PXDDataSize = (TH1F*)
findHist(
"DAQ/PXDDataSize");
54 auto* SVDDataSize = (TH1F*)
findHist(
"DAQ/SVDDataSize");
55 auto* CDCDataSize = (TH1F*)
findHist(
"DAQ/CDCDataSize");
56 auto* TOPDataSize = (TH1F*)
findHist(
"DAQ/TOPDataSize");
57 auto* ARICHDataSize = (TH1F*)
findHist(
"DAQ/ARICHDataSize");
58 auto* ECLDataSize = (TH1F*)
findHist(
"DAQ/ECLDataSize");
59 auto* KLMDataSize = (TH1F*)
findHist(
"DAQ/KLMDataSize");
60 auto* TRGDataSize = (TH1F*)
findHist(
"DAQ/TRGDataSize");
61 auto* HLTDataSize = (TH1F*)
findHist(
"DAQ/HLTDataSize");
62 auto* TotalDataSize = (TH1F*)
findHist(
"DAQ/TotalDataSize");
65 PXDDataSize ? PXDDataSize->GetMeanError() : -1);
67 SVDDataSize ? SVDDataSize->GetMeanError() : -1);
69 CDCDataSize ? CDCDataSize->GetMeanError() : -1);
71 TOPDataSize ? TOPDataSize->GetMeanError() : -1);
73 ARICHDataSize ? ARICHDataSize->GetMeanError() : -1);
75 ECLDataSize ? ECLDataSize->GetMeanError() : -1);
77 KLMDataSize ? KLMDataSize->GetMeanError() : -1);
79 TRGDataSize ? TRGDataSize->GetMeanError() : -1);
81 HLTDataSize ? HLTDataSize->GetMeanError() : -1);
83 TotalDataSize ? TotalDataSize->GetMeanError() : -1);
89 B2DEBUG(20,
"terminate called");
void initialize() override final
Initialize the Module.
MonitoringObject * m_monObj
monitoring object
~DQMHistAnalysisDAQMonObjModule()
Destructor.
void terminate() override final
Termination action.
DQMHistAnalysisDAQMonObjModule()
Constructor.
void event() override final
This method is called for each event.
void endRun() override final
End-of-run action.
void beginRun() override final
Called when entering a new run.
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 setDescription(const std::string &description)
Sets the description of the module.
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)
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
Abstract base class for different kinds of events.