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 {
26
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
53 private:
54
58 std::map <int, int> m_id_to_inx;
60 std::map <int, int> m_inx_to_id;
61
63 TH1F* m_hSignalAll = nullptr;
65 TH1F* m_hCommonAll = nullptr;
67 TH1F* m_hCountsAll = nullptr;
69 TH1F* m_hOccupancyAll = nullptr;
71 TCanvas* m_cSignalAll = nullptr;
73 TCanvas* m_cCommonAll = nullptr;
75 TCanvas* m_cCountsAll = nullptr;
77 TCanvas* m_cOccupancyAll = nullptr;
78
80 TH2F* m_hSignal[NUM_MODULES];
82 TH2F* m_hCommon[NUM_MODULES];
84 TH2F* m_hCounts[NUM_MODULES];
86 TCanvas* m_cSignal[NUM_MODULES];
88 TCanvas* m_cCommon[NUM_MODULES];
90 TCanvas* m_cCounts[NUM_MODULES];
92 TF1* m_fLandau = nullptr; // only one fit function
94 TF1* m_fGaus = nullptr; // only one fit function
95
96 };
97
98} // end namespace Belle2
99
DQMHistAnalysisModule()
Constructor / Destructor.
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_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
void event() override final
This method is called for each event.
std::string m_histogramDirectoryName
Histogram doirectory.
std::map< int, int > m_id_to_inx
maps from VXDid to index
void beginRun() override final
Called when entering a new run.
TH2F * m_hCounts[NUM_MODULES]
2D Counts Histograms
TCanvas * m_cCounts[NUM_MODULES]
2D Counts Canvases
Abstract base class for different kinds of events.