14#include <dqm/analysis/modules/DQMHistAnalysisRunNr.h>
39 B2DEBUG(99,
"DQMHistAnalysisRunNr: Constructor done.");
55 m_legend =
new TPaveText(0.6, 0.6, 0.95, 0.95,
"NDC");
60 B2DEBUG(99,
"DQMHistAnalysisRunNr: initialized.");
65 B2DEBUG(99,
"DQMHistAnalysisRunNr: beginRun called.");
95 hist->SetStats(kFALSE);
97 mean = hist->GetMean();
98 if (hist->GetEntries() > 0) {
99 m_legend->AddText(
"Contains Run: Entries");
102 for (
int i = 0; i <= hist->GetXaxis()->GetNbins() + 1; i++) {
104 if (hist->GetBinContent(i) > 0) {
107 tmp.Form(
"%ld: %ld", (
long int)hist->GetXaxis()->GetBinCenter(i), (
long int)hist->GetBinContent(i));
115 }
else if (nfilled == 1) {
146 B2DEBUG(99,
"DQMHistAnalysisRunNr: 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).
@ c_ColorError
Analysis result: Severe issue found.
@ c_ColorTooFew
Not enough entries/event to judge.
@ c_ColorGood
Analysis result: Good.
void setEpicsPV(std::string keyname, double value)
Write value to a EPICS PV.
@ c_StatusTooFew
Not enough entries/event to judge.
@ c_StatusError
Analysis result: Severe issue found.
@ c_StatusGood
Analysis result: Good.
int registerEpicsPV(std::string pvname, std::string keyname="")
EPICS related Functions.
void UpdateCanvas(std::string name, bool updated=true)
Mark canvas as updated (or not)
void terminate(void) override final
This method is called at the end of the event processing.
~DQMHistAnalysisRunNrModule()
Destructor.
TCanvas * m_cRunNr
Final Canvas.
void initialize(void) override final
Initializer.
std::string m_prefix
HLT/ERECO prefix for EPICS PVs.
MonitoringObject * m_monObj
Monitoring Object.
std::string m_histogramDirectoryName
name of histogram directory
DQMHistAnalysisRunNrModule()
Constructor.
TPaveText * m_legend
Legend.
void beginRun(void) override final
Called when entering a new run.
void event(void) override final
This method is called for each event.
void setDescription(const std::string &description)
Sets the description of the module.
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.