Belle II Software development
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/core/DQMHistAnalysis.h>
16
17#include <TH2F.h>
18#include <TF1.h>
19
20namespace Belle2 {
28
29 enum { NUM_MODULES = 40}; // we want that from geometry
30 // Public functions
31 public:
32
37
41 void initialize() override final;
42
46 void beginRun() override final;
47
51 void event() override final;
52
56 void endRun() override final;
57
61 void terminate() override final;
62
63 private:
64
68 std::map <int, int> m_id_to_inx;
70 std::map <int, int> m_inx_to_id;
71
73 TH1F* m_hSignalAll = nullptr;
75 TH1F* m_hCommonAll = nullptr;
77 TH1F* m_hCountsAll = nullptr;
79 TH1F* m_hOccupancyAll = nullptr;
81 TCanvas* m_cSignalAll = nullptr;
83 TCanvas* m_cCommonAll = nullptr;
85 TCanvas* m_cCountsAll = nullptr;
87 TCanvas* m_cOccupancyAll = nullptr;
88
90 TH2F* m_hSignal[NUM_MODULES];
92 TH2F* m_hCommon[NUM_MODULES];
94 TH2F* m_hCounts[NUM_MODULES];
96 TCanvas* m_cSignal[NUM_MODULES];
98 TCanvas* m_cCommon[NUM_MODULES];
100 TCanvas* m_cCounts[NUM_MODULES];
102 TF1* m_fLandau = nullptr; // only one fit function
104 TF1* m_fGaus = nullptr; // only one fit function
105
106 };
108} // end namespace Belle2
109
The base class for the histogram analysis module.
Class definition for the output module of Sequential ROOT I/O.
TH2F * m_hSignal[NUM_MODULES]
2D Signal Histograms
TH2F * m_hCommon[NUM_MODULES]
2D Common Histograms
void initialize() override final
Initializer.
TCanvas * m_cSignal[NUM_MODULES]
2D Signal Canvases
TCanvas * m_cOccupancyAll
All Occupancy Canvas.
TCanvas * m_cCommonAll
All Common Canvas.
TCanvas * m_cCommon[NUM_MODULES]
2D Common Canvases
TH1F * m_hOccupancyAll
All Occupancy Histogram.
std::map< int, int > m_inx_to_id
maps from index to VXDid
TCanvas * m_cSignalAll
All Signal Canvas.
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.
TH1F * m_hSignalAll
All Signal Histogram.
std::string m_histogramDirectoryName
Histogram doirectory.
void endRun() override final
This method is called if the current run ends.
TH1F * m_hCountsAll
All Counts Histogram.
std::map< int, int > m_id_to_inx
maps from VXDid to index
void beginRun() override final
Called when entering a new run.
TH1F * m_hCommonAll
All Common Histogram.
TH2F * m_hCounts[NUM_MODULES]
2D Counts Histograms
TCanvas * m_cCounts[NUM_MODULES]
2D Counts Canvases
TCanvas * m_cCountsAll
All Counts Canvas.
Abstract base class for different kinds of events.