10#include <dqm/analysis/modules/DQMHistAnalysisECLConnectedRegions.h>
22 B2DEBUG(20,
"DQMHistAnalysisECLConnectedRegions: Constructor done.");
30 for (
auto& pv_name : {
"largest_cr_avg_crystals_num",
"largest_cr_localmax_num"}) {
36 B2DEBUG(20,
"DQMHistAnalysisECLConnectedRegions: initialized.");
41 B2DEBUG(20,
"DQMHistAnalysisECLConnectedRegions: beginRun called.");
47 auto crystalsDistributionHist = (TH1F*)
findHist(
"ECL/Crystals_distribution_in_largest_cr");
48 if (crystalsDistributionHist) {
51 auto localMaxDistributionHist = (TH1F*)
findHist(
"ECL/LocalMaximum_distribution_in_largest_cr");
52 if (localMaxDistributionHist) {
63 B2DEBUG(20,
"DQMHistAnalysisECLConnectedRegions: endRun called");
71 B2DEBUG(20,
"terminate called");
DQMHistAnalysisECLConnectedRegionsModule()
< derived from DQMHistAnalysisModule class.
void initialize() override final
Initialize the module.
std::string m_pvPrefix
Prefix to use for PVs registered by this module.
MonitoringObject * m_monObj
monitoring object
void terminate() override final
Terminate.
double m_largestCRLocalMaxNum
Average number local maximum in largest ECL CR.
void event() override final
Event processor.
void endRun() override final
Call when a run ends.
void beginRun() override final
Call when a run begins.
double m_largestCRAvgCrystalsNum
Average number of crystals in largest ECL CR.
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 setEpicsPV(std::string keyname, double value)
Write value to a EPICS PV.
int registerEpicsPV(std::string pvname, std::string keyname="")
EPICS related Functions.
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 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.