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#ifdef _BELLE2_EPICS
16// EPICS
17#include "cadef.h"
18#endif
19
20#include <dqm/core/DQMHistAnalysis.h>
21
22#include <TF1.h>
23#include <TCanvas.h>
24#include <TLine.h>
25
26namespace Belle2 {
34
35 // Public functions
36 public:
37
42
47
51 void initialize() override final;
52
56 void beginRun() override final;
57
61 void event() override final;
62
66 void endRun() override final;
67
71 void terminate() override final;
72
73 // Data members
74 private:
76 std::string m_histoname;
78 std::string m_function;
82 std::string m_pvPrefix;
83
85 TF1* m_f1 = nullptr;
87 TCanvas* m_c1 = nullptr;
89 TLine* m_line = nullptr;
91 TLine* m_line_lo = nullptr;
93 TLine* m_line_hi = nullptr;
94
95#ifdef _BELLE2_EPICS
96 chid mychid[10];// hard limit max 10 parameters
97#endif
98 };
100} // end namespace Belle2
101
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::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.