Belle II Software  release-06-00-14
DQMHistAnalysisPXDFits.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 : DQMHistAnalysisPXDFits.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 <TF1.h>
18 #include <TH2F.h>
19 #include <TCanvas.h>
20 
21 namespace Belle2 {
29 
30  enum { NUM_MODULES = 40}; // we want that from geometry
31  // Public functions
32  public:
33 
36 
37  private:
38 
40  void initialize() override final;
41 
43  void beginRun() override final;
44  void event() override final;
45  void endRun() override final;
46  void terminate() override final;
47 
51  std::map <int, int> m_id_to_inx;
53  std::map <int, int> m_inx_to_id;
54 
56  TH1F* m_hSignalAll = nullptr;
58  TH1F* m_hCommonAll = nullptr;
60  TH1F* m_hCountsAll = nullptr;
62  TH1F* m_hOccupancyAll = nullptr;
64  TCanvas* m_cSignalAll = nullptr;
66  TCanvas* m_cCommonAll = nullptr;
68  TCanvas* m_cCountsAll = nullptr;
70  TCanvas* m_cOccupancyAll = nullptr;
71 
73  TH2F* m_hSignal[NUM_MODULES];
75  TH2F* m_hCommon[NUM_MODULES];
77  TH2F* m_hCounts[NUM_MODULES];
79  TCanvas* m_cSignal[NUM_MODULES];
81  TCanvas* m_cCommon[NUM_MODULES];
83  TCanvas* m_cCounts[NUM_MODULES];
85  TF1* m_fLandau = nullptr; // only one fit function
87  TF1* m_fGaus = nullptr; // only one fit function
88 
89  };
91 } // end namespace Belle2
92 
The base class for the histogram analysis module.
Class definition for the output module of Sequential ROOT I/O.
TH2F * m_hSignal[NUM_MODULES]
Histograms.
TH2F * m_hCommon[NUM_MODULES]
Histograms.
void initialize() override final
Module functions to be called from main process.
TCanvas * m_cSignal[NUM_MODULES]
Canvases.
TCanvas * m_cCommon[NUM_MODULES]
Canvases.
std::map< int, int > m_inx_to_id
maps from index to VXDid
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.
std::string m_histogramDirectoryName
Histogram doirectory.
void endRun() override final
This method is called if the current run ends.
std::map< int, int > m_id_to_inx
maps from VXDid to index
void beginRun() override final
Module functions to be called from event process.
TH2F * m_hCounts[NUM_MODULES]
Histograms.
TCanvas * m_cCounts[NUM_MODULES]
Canvases.
Abstract base class for different kinds of events.