Belle II Software development
DQMHistAnalysisECLShapers.h
1/**************************************************************************
2 * basf2 (Belle II Analysis Software Framework) *
3 * Author: The Belle II Collaboration *
4 * *
5 * See git log for contributors and copyright holders. *
6 * This file is licensed under LGPL-3.0, see LICENSE.md. *
7 **************************************************************************/
8
9#pragma once
10
11//DQM
12#include <dqm/core/DQMHistAnalysis.h>
13
14//std
15#include <set>
16
17//ECL
18#include <ecl/dbobjects/ECLChannelMap.h>
19
20namespace Belle2 {
25
29
31
32 public:
33
36
38 void initialize() override final;
40 void beginRun() override final;
42 void event() override final;
44 void endRun() override final;
46 void terminate() override final {}
47
48 private:
50 std::string m_pvPrefix;
51
53 const static int c_collector_count = ECL::ECL_CRATES;
54
56 double robust_max(std::multiset<double> values);
57
67 double m_pedwidth_max[4] = {};
71 double m_pedwidth_avg[4] = {};
72
74 TCanvas* m_c_main = nullptr;
75 };
76
77} // end namespace Belle2
78
void initialize() override final
Initialize the module.
double m_pedwidth_avg[4]
Average pedestal width array See m_pedwidth_max for the details.
DQMHistAnalysisECLShapersModule()
< derived from DQMHistAnalysisModule class.
std::string m_pvPrefix
Prefix to use for PVs registered by this module.
MonitoringObject * m_monObj
monitoring object
double robust_max(std::multiset< double > values)
Remove upper 10% of the values, return the maximum in the remaining 90%.
double m_pedwidth_max[4]
Max pedestal width array [0] -> Max pedestal width in FWD endcap [1] -> Max pedestal width in barrel ...
void event() override final
Event processor.
TCanvas * m_c_main
main panel for monitoring object
void endRun() override final
Call when a run ends.
void beginRun() override final
Call when a run begins.
static const int c_collector_count
Number of ECLCollector modules (normally 52)
DQMHistAnalysisModule()
Constructor / Destructor.
MonitoringObject is a basic object to hold data for the run-dependency monitoring Run summary TCanvas...
Abstract base class for different kinds of events.