Belle II Software  release-06-02-00
DQMHistAnalysisARICH.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 //DQM
12 #include <dqm/analysis/modules/DQMHistAnalysis.h>
13 
14 //ARICH
15 #include <arich/utility/ARICHChannelHist.h>
16 
17 #include <vector>
18 
19 #include <TCanvas.h>
20 #include <TLine.h>
21 #include <TH2Poly.h>
22 
23 namespace Belle2 {
33 
34  public:
35 
40 
45 
50  virtual void initialize() override;
51 
56  virtual void beginRun() override;
57 
61  virtual void event() override;
62 
67  virtual void endRun() override;
68 
73  virtual void terminate() override;
74 
75  protected:
76  bool m_debug;
79  int alertColor[3] = {kWhite, kYellow, kRed};
81  int m_minStats = 10000;
83  //TObjects for DQM analysis
84  TLine* m_LineForMB[5] = {};
85  TCanvas* m_c_bits = NULL;
86  TCanvas* m_c_mergerHit = NULL;
87  TCanvas* m_c_hitsPerEvent = NULL;
88  TCanvas* m_c_theta = NULL;
91  TH2Poly* m_apdPoly = NULL;
92  TCanvas* m_c_apdHist = NULL;
94  std::vector<int> maskedMergers{53};
95  };
96 
98 } // Belle2 namespace
ARICH histogram with HAPD plane 3 options for bin segmentation are available type 0 - one bin per HAP...
Make summary of data quality from reconstruction.
TCanvas * m_c_apdHist
Canvas for 2D hit map of APDs.
TH2Poly * m_apdPoly
hit map for each APD
TLine * m_LineForMB[5]
Lines to divide the sectors on mergerHit histogram.
TCanvas * m_c_mergerHit
Canvas for modified mergerHit histogram.
virtual void initialize() override
Initialize the Module.
bool m_enableAlert
Enable alert by base color of canvases.
virtual void event() override
Event processor.
TCanvas * m_c_theta
Canvas for modified theta histogram.
Belle2::ARICHChannelHist * m_apdHist
ARICH TObject to draw hit map for each APD.
virtual void endRun() override
End-of-run action.
virtual void terminate() override
Termination action.
virtual void beginRun() override
Called when entering a new run.
TCanvas * m_c_bits
Canvas for modified bits histogram.
std::vector< int > maskedMergers
The id numbers of masked merger boards to avoid unnecessary alert.
int m_minStats
The lower limit on the number of events to enable the alert.
TCanvas * m_c_hitsPerEvent
Canvas for modified hitsPerTrack histogram.
virtual ~DQMHistAnalysisARICHModule()
Destructor.
int alertColor[3]
Alert color of canvases.
The base class for the histogram analysis module.
Abstract base class for different kinds of events.