Belle II Software development
DQMHistAnalysisEpicsExample.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 : DQMHistAnalysisEpicsExample.h
10// Description : An example module for DQM histogram analysis
11//-
12
13#pragma once
14
15#include <dqm/core/DQMHistAnalysis.h>
16
17#include <TF1.h>
18#include <TLine.h>
19
20namespace Belle2 {
28
29 // Public functions
30 public:
31
36
41
45 void initialize() override final;
46
50 void beginRun() override final;
51
55 void event() override final;
56
60 void endRun() override final;
61
65 void terminate() override final;
66
67 // Data members
68 private:
70 std::string m_histoname;
72 std::string m_function;
76 std::string m_pvPrefix;
77
79 TF1* m_f1 = nullptr;
81 TCanvas* m_c1 = nullptr;
83 TLine* m_line = nullptr;
85 TLine* m_line_lo = nullptr;
87 TLine* m_line_hi = nullptr;
88
90 std::vector<std::string> mypv;
91 };
93} // end namespace Belle2
94
Class definition for the output module of Sequential ROOT I/O.
TLine * m_line_hi
The line for the higher bound.
void terminate() override final
This method is called at the end of the event processing.
Int_t m_parameters
The fit function parameters for EPICS.
void event() override final
This method is called for each event.
TLine * m_line_lo
The line for the lower bound.
void endRun() override final
This method is called if the current run ends.
std::string m_histoname
The name of the histogram.
void beginRun() override final
Called when entering a new run.
TLine * m_line
The line for the fitting result.
std::vector< std::string > mypv
list of pv names
std::string m_function
The definition of the fit function.
The base class for the histogram analysis module.
Abstract base class for different kinds of events.