Belle II Software development
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
23namespace 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 beginRun() override final;
68
73 void terminate() override final;
74
79 int getRing(int modID);
80
81
82 protected:
83 bool m_debug;
85 double m_hotLimit;
89 int alertColor[3] = {kWhite, kYellow, kRed};
91 int m_minStats = 10000;
93 //TObjects for DQM analysis
94 TLine* m_LineForMB[5] = {};
95 TCanvas* m_c_bits = NULL;
96 TCanvas* m_c_mergerHit = NULL;
97 TCanvas* m_c_hitsPerEvent = NULL;
98 TCanvas* m_c_theta = NULL;
101 TH2Poly* m_apdPoly = NULL;
102 TCanvas* m_c_apdHist = NULL;
104 std::vector<int> maskedMergers{53};
105 };
106
108} // 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.
double m_hotLimit
Occupancy limit for hot channels.
double m_badApdOccLimit
Occupancy threshold for bad APDs, in units of average APD occupancy.
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.
int getRing(int modID)
Returns ring number of HAPD with given moduleID.
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.
double m_sigBitFracLowAlarm
Alarm limit for overall signal/background fraction.
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.
void beginRun() override final
begin-of-run action.
int m_minStats
The lower limit on the number of events to enable the alert.
TCanvas * m_c_hitsPerEvent
Canvas for modified hitsPerTrack histogram.
double m_sigBitFracLowWarn
Warning limit for overall signal/background fraction.
int alertColor[3]
Alert color of canvases.
The base class for the histogram analysis module.
Abstract base class for different kinds of events.