Belle II Software  release-06-01-15
DQMHistAnalysisTOP.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 #pragma once
10 
11 #include <dqm/analysis/modules/DQMHistAnalysis.h>
12 
13 #include <TCanvas.h>
14 #include <TH1.h>
15 #include <TString.h>
16 #include <TLine.h>
17 #include <TPaveText.h>
18 
19 namespace Belle2 {
29 
30  // Public functions
31  public:
32 
37 
41  virtual ~DQMHistAnalysisTOPModule();
42 
46  virtual void initialize() override;
47 
51  virtual void beginRun() override;
52 
56  virtual void event() override;
57 
61  virtual void endRun() override;
62 
66  virtual void terminate() override;
67 
73  TH1* find_histo_in_canvas(TString hname);
75  private:
77  TCanvas* m_c_goodHitsMean = nullptr;
79  TCanvas* m_c_goodHitsRMS = nullptr;
81  TCanvas* m_c_badHitsMean = nullptr;
83  TCanvas* m_c_badHitsRMS = nullptr;
84 
86  TCanvas* m_c_good_hits_xy_[17] = {};
88  TCanvas* m_c_bad_hits_xy_[17] = {};
90  TCanvas* m_c_good_hits_asics_[17] = {};
92  TCanvas* m_c_bad_hits_asics_[17] = {};
93 
95  TH1F* m_h_goodHitsMean = nullptr;
97  TH1F* m_h_goodHitsRMS = nullptr;
99  TH1F* m_h_badHitsMean = nullptr;
101  TH1F* m_h_badHitsRMS = nullptr;
102 
104  TLine* m_line1 = nullptr;
106  TLine* m_line2 = nullptr;
108  TPaveText* m_text1 = nullptr;
110  TPaveText* m_text2 = nullptr;
111  };
113 } // end namespace Belle2
114 
The base class for the histogram analysis module.
Class for TOP histogram analysis.
TPaveText * m_text2
The text for the conditions of the nornal window.
TH1 * find_histo_in_canvas(TString hname)
Find histogram corresponding to canvas.
virtual void initialize() override
Initializer.
virtual ~DQMHistAnalysisTOPModule()
Destructor.
virtual void event() override
This method is called for each event.
TPaveText * m_text1
The text for the conditions of the nornal window.
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.
TCanvas * m_c_goodHitsMean
Data members.
TH1F * m_h_goodHitsMean
Histogram for the mean of the good hits.
TCanvas * m_c_bad_hits_asics_[17]
Canvas for 16 bad Hits ASICS.
TCanvas * m_c_badHitsRMS
Canvas for the RMS of the bad hits.
virtual void beginRun() override
Called when entering a new run.
TH1F * m_h_goodHitsRMS
Histogram for the RMS of the good hits.
TCanvas * m_c_good_hits_xy_[17]
Canvas for 16 good Hits XY.
TCanvas * m_c_good_hits_asics_[17]
Canvas for 16 good Hits ASICS.
TCanvas * m_c_bad_hits_xy_[17]
Canvas for 16 bad Hits XY.
TCanvas * m_c_goodHitsRMS
Canvas for the RMS of the good hits.
TCanvas * m_c_badHitsMean
Canvas for the mean of the bad hits.
TH1F * m_h_badHitsMean
Histogram for the mean of the bad hits.
TLine * m_line1
The line for the upper bound of the nornal window.
TLine * m_line2
The line for the lower bound of the nornal window.
TH1F * m_h_badHitsRMS
Histogram for the RMS of the bad hits.
Abstract base class for different kinds of events.