Belle II Software  release-06-00-14
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/analysis/modules/DQMHistAnalysis.h>
16 
17 #include <TCanvas.h>
18 #include <TF1.h>
19 
20 namespace Belle2 {
28 
29  // Public functions
30  public:
31 
35 
37  virtual void initialize() override;
38 
40  virtual void beginRun() override;
41  virtual void event() override;
42  virtual void endRun() override;
43  virtual void terminate() override;
44 
46  protected:
48  std::string m_histoname;
50  std::string m_function;
51 
53  private:
55  TF1* m_f = nullptr;
57  TCanvas* m_c = nullptr;
58 
59  };
61 } // end namespace Belle2
62 
Class definition for the output module of Sequential ROOT I/O.
virtual void initialize() override
Module functions to be called from main process.
virtual void event() override
This method is the core of the module.
DQMHistAnalysisExampleModule()
Constructor / Destructor.
virtual void endRun() override
This method is called if the current run ends.
virtual void terminate() override
This method is called at the end of the event processing.
virtual void beginRun() override
Module functions to be called from event process.
std::string m_histoname
Parameters accesible from basf2 scripts.
TCanvas * m_c
The drawing canvas for the fitting result.
std::string m_function
The definition of the fitting function.
The base class for the histogram analysis module.
Abstract base class for different kinds of events.