Belle II Software  release-08-01-10
DQMHistAnalysisDeltaEpicsMonObjExample.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 // File : DQMHistAnalysisDeltaEpicsMonObjExample.h
10 // Description : DQM Analysis Delta+Epics+MonObj example
11 //-
12 
13 #pragma once
14 
15 #include <dqm/core/DQMHistAnalysis.h>
16 
17 #include <TLine.h>
18 
19 namespace Belle2 {
27 
28  // Public functions
29  public:
30 
35 
36  private:
37 
42 
46  void initialize(void) override final;
47 
51  void beginRun(void) override final;
52 
56  void endRun(void) override final;
57 
61  void event(void) override final;
62 
66  void terminate(void) override final;
67 
71  void doHistAnalysis(bool forMiraBelle = false);
72 
73  private:
74 
75  // Data members
79  std::string m_histogramName;
81  std::string m_pvPrefix;
82 
84  TCanvas* m_canvas = nullptr;
85 
88 
90  double m_meanLowerAlarm{NAN};
92  double m_meanLowerWarn{NAN};
94  double m_meanUpperWarn{NAN};
96  double m_meanUpperAlarm{NAN};
98  double m_widthUpperWarn{NAN};
100  double m_widthUpperAlarm{NAN};
101 
103  TLine* m_meanLowerAlarmLine{nullptr};
105  TLine* m_meanLowerWarnLine{nullptr};
107  TLine* m_meanUpperWarnLine{nullptr};
109  TLine* m_meanUpperAlarmLine{nullptr};
110 
111  };
113 } // end namespace Belle2
114 
void terminate(void) override final
This method is called at the end of the event processing.
void beginRun(void) override final
Called when entering a new run.
void event(void) override final
This method is called for each event.
void doHistAnalysis(bool forMiraBelle=false)
Do the actual processing.
The base class for the histogram analysis module.
MonitoringObject is a basic object to hold data for the run-dependency monitoring Run summary TCanvas...
Abstract base class for different kinds of events.