Belle II Software development
DQMHistAnalysisExample.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 : DQMHistAnalysisExample.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
19namespace Belle2 {
27
28 // Public functions
29 public:
30
35
40
45 void initialize() override final;
46
51 void beginRun() override final;
52
56 void event() override final;
57
62 void endRun() override final;
63
67 void terminate() override final;
68
70 private:
74 std::string m_histogramName;
76 std::string m_pvPrefix;
77
79 private:
81 TF1* m_function = nullptr;
83 TCanvas* m_canvas = nullptr;
84
85 };
87} // end namespace Belle2
88
Class definition for the output module of Sequential ROOT I/O.
void initialize() override final
Initializer.
std::string m_histogramName
name of histogram
std::string m_pvPrefix
prefix for EPICS PVs
TCanvas * m_canvas
The drawing canvas for the fitting result.
void terminate() override final
This method is called at the end of the event processing.
void event() override final
This method is called for each event.
std::string m_histogramDirectoryName
Parameters accessible from basf2 scripts.
void endRun() override final
This method is called if the current run ends.
void beginRun() override final
Called when entering a new run.
The base class for the histogram analysis module.
Abstract base class for different kinds of events.