Belle II Software  release-06-01-15
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 
36 
41 
45  virtual void initialize() override;
46 
50  virtual void beginRun() override;
51 
55  virtual void event() override;
56 
60  virtual void endRun() override;
61 
65  virtual void terminate() override;
66 
68  protected:
70  std::string m_histoname;
72  std::string m_function;
73 
75  private:
77  TF1* m_f = nullptr;
79  TCanvas* m_c = nullptr;
80 
81  };
83 } // end namespace Belle2
84 
Class definition for the output module of Sequential ROOT I/O.
virtual void initialize() override
Initializer.
virtual void event() override
This method is called for each event.
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
Called when entering a new run.
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.