9#include <dqm/analysis/modules/DQMHistAnalysisExample.h>
26 setDescription(
"Example DQMHistAnalysisModule! with base features");
32 B2DEBUG(20,
"DQMHistAnalysisExample: Constructor done.");
43 B2DEBUG(20,
"DQMHistAnalysisExample: initialized.");
45 a.ReplaceAll(
"/",
"_");
47 m_function =
new TF1(
"f_" + a, TString(
"gaus"), -100, 100);
53 B2DEBUG(20,
"DQMHistAnalysisExample : beginRun called");
65 B2DEBUG(20,
"mean " <<
m_function->GetParameter(1));
66 B2DEBUG(20,
"sigma" <<
m_function->GetParameter(2));
75 B2DEBUG(20,
"DQMHistAnalysisExample : endRun called");
82 B2DEBUG(20,
"terminate called");
void initialize() override final
Initializer.
DQMHistAnalysisExampleModule()
Constructor.
std::string m_histogramName
name of histogram
std::string m_pvPrefix
prefix for EPICS PVs
TF1 * m_function
Data members.
TCanvas * m_canvas
The drawing canvas for the fitting result.
void terminate() override final
This method is called at the end of the event processing.
void event() override final
This method is called for each event.
std::string m_histogramDirectoryName
Parameters accessible from basf2 scripts.
~DQMHistAnalysisExampleModule()
Destructor.
void endRun() override final
This method is called if the current run ends.
void beginRun() override final
Called when entering a new run.
The base class for the histogram analysis module.
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 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.