Belle II Software  release-08-01-10
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/core/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  void initialize() override final;
51 
55  void event() override final;
56 
61  void endRun() override final;
62 
67  void terminate() override final;
68 
69  protected:
70  bool m_debug;
73  int alertColor[3] = {kWhite, kYellow, kRed};
75  int m_minStats = 10000;
77  //TObjects for DQM analysis
78  TLine* m_LineForMB[5] = {};
79  TCanvas* m_c_bits = NULL;
80  TCanvas* m_c_mergerHit = NULL;
81  TCanvas* m_c_hitsPerEvent = NULL;
82  TCanvas* m_c_theta = NULL;
85  TH2Poly* m_apdPoly = NULL;
86  TCanvas* m_c_apdHist = NULL;
88  std::vector<int> maskedMergers{53};
89  };
90 
92 } // 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.
void initialize() override final
Initialize the Module.
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.
bool m_enableAlert
Enable alert by base color of canvases.
TCanvas * m_c_theta
Canvas for modified theta histogram.
Belle2::ARICHChannelHist * m_apdHist
ARICH TObject to draw hit map for each APD.
void terminate() override final
Termination action.
void event() override final
Event processor.
void endRun() override final
End-of-run action.
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.
int alertColor[3]
Alert color of canvases.
The base class for the histogram analysis module.
Abstract base class for different kinds of events.