Belle II Software  release-06-00-14
DQMHistAnalysisExampleFlags.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 : DQMHistAnalysisExampleFlags.h
10 // Description : An example module for DQM histogram analysis
11 //-
12 
13 #pragma once
14 
15 #include <dqm/analysis/modules/DQMHistAnalysis.h>
16 
17 #include <TH2F.h>
18 #include <TCanvas.h>
19 
20 namespace Belle2 {
28 
29  // Public functions
30  public:
31 
34  private:
35 
37  void initialize() override final;
38 
40  void beginRun() override final;
41  void event() override final;
42  void endRun() override final;
43  void terminate() override final;
44 
45  // Data members
46 
48  TH2F* m_hFlagtest = nullptr;
50  TCanvas* m_cFlagtest = nullptr;
51 
52  };
54 } // end namespace Belle2
55 
Class definition for the output module of Sequential ROOT I/O.
void initialize() override final
Module functions to be called from main process.
void terminate() override final
This method is called at the end of the event processing.
void event() override final
This method is the core of the module.
TCanvas * m_cFlagtest
The drawing canvas for the test.
void endRun() override final
This method is called if the current run ends.
void beginRun() override final
Module functions to be called from event process.
The base class for the histogram analysis module.
Abstract base class for different kinds of events.