Belle II Software development
DQMHistAnalysisSVDOccupancy.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 : DQMHistAnalysisSVDOccupancy.h
10// Description : module for DQM histogram analysis of SVD sensors occupancies
11//-
12
13#pragma once
14
15#include <dqm/analysis/modules/DQMHistAnalysisSVD.h>
16#include <vxd/dataobjects/VxdID.h>
17#include <svd/dataobjects/SVDSummaryPlots.h>
18
19#include <TFile.h>
20#include <TText.h>
21#include <TPaveText.h>
22#include <TCanvas.h>
23#include <TH2F.h>
24
25
26namespace Belle2 {
34
35 // Public functions
36 public:
37
42
47
51 void initialize() override final;
52
56 void beginRun() override final;
57
61 void event() override final;
62
66 void endRun() override final;
67
71 void terminate() override final;
72
73 private:
74
78 double m_occError;
79 double m_occWarning;
80 double m_occEmpty;
86 // plots and canvases
93 // histograms
94 TCanvas* m_cOccupancyU = nullptr;
95 TCanvas* m_cOccupancyV = nullptr;
97 TCanvas* m_cOnlineOccupancyU = nullptr;
98 TCanvas* m_cOnlineOccupancyV = nullptr;
100 TCanvas* m_cOccupancyU3Samples = nullptr;
101 TCanvas* m_cOccupancyV3Samples = nullptr;
103 TCanvas* m_cOnlineOccupancyU3Samples = nullptr;
104 TCanvas* m_cOnlineOccupancyV3Samples = nullptr;
106 TCanvas* m_cOccupancyUGroupId0 = nullptr;
107 TCanvas* m_cOccupancyVGroupId0 = nullptr;
109 // polyline histograms
110 TCanvas* m_cOccupancyRPhiViewU = nullptr;
111 TCanvas* m_cOccupancyRPhiViewV = nullptr;
113 TCanvas* m_cOnlineOccupancyRPhiViewU = nullptr;
114 TCanvas* m_cOnlineOccupancyRPhiViewV = nullptr;
116 TCanvas* m_cOccupancyRPhiViewU3Samples = nullptr;
117 TCanvas* m_cOccupancyRPhiViewV3Samples = nullptr;
122 TCanvas* m_cOccupancyRPhiViewUGroupId0 = nullptr;
123 TCanvas* m_cOccupancyRPhiViewVGroupId0 = nullptr;
127 bool m_additionalPlots = false;
128
130 bool m_RPhiView = false;
131
133 bool m_RPhiViewId0 = false;
134
136 TCanvas* m_cOccupancyChartChip = nullptr;
138 int m_sensors = 0;
140 TCanvas** m_cStripOccupancyU = nullptr;
142 TCanvas** m_cStripOccupancyV = nullptr;
144 Float_t getOccupancy(float entries, int tmp_layer, int nEvents, bool sideV = false);
145 void setOccStatus(float occ, svdStatus& occupancyStatus, bool online = false);
147 std::string m_pvPrefix;
150 std::vector<VxdID> m_SVDModules;
151
167 };
169} // end namespace Belle2
170
Class definition for common method.
Class definition for the output module of Sequential ROOT I/O.
TCanvas * m_cOnlineOccupancyU
online occupancy U histo canvas
TCanvas * m_cOccupancyV
occupancy V histo canvas
svdStatus m_onlineOccV3Samples
0 = normal, 4 = empty, 1 = warning, 2 = error for 3 sampes
svdStatus m_occVstatus
0 = normal, 4 = empty, 1 = warning, 2 = error
TCanvas * m_cOccupancyU
occupancy U histo canvas
TCanvas * m_cOccupancyRPhiViewVGroupId0
occupancy V histo canvas for cluster time group Id = 0
TCanvas * m_cOccupancyRPhiViewV3Samples
occupancy V plot canvas for 3 samples
TCanvas * m_cOnlineOccupancyRPhiViewU3Samples
occupancy U plot canvas for 3 samples
TCanvas ** m_cStripOccupancyV
u-side strip chart occupancy canvas
svdStatus m_occVGroupId0
0 = normal, 4 = empty, 1 = warning, 2 = error for 3 sampels
std::vector< VxdID > m_SVDModules
IDs of all SVD Modules to iterate over.
double m_onlineOccError
error level of the onlineOccupancy
TCanvas * m_cOccupancyRPhiViewUGroupId0
occupancy U histo canvas for cluster time group Id = 0
TCanvas * m_cOccupancyVGroupId0
occupancy V histo canvas for cluster time group Id = 0
SVDSummaryPlots * m_hOccupancy3Samples
occupancy histos for 3 samples
svdStatus m_occU3Samples
0 = normal, 4 = empty, 1 = warning, 2 = error for 3 samples
double m_onlineOccEmpty
empty level of the occupancy
svdStatus m_onlineOccUstatus
0 = normal, 4 = empty, 1 = warning, 2 = error
SVDSummaryPlots * m_hOnlineOccupancy3Samples
online occupancy histos for 3 sampels
SVDSummaryPlots * m_hOccupancy
occupancy histos
std::string m_pvPrefix
string prefix for EPICS PVs
TCanvas * m_cOnlineOccupancyRPhiViewV
online occupancy V plot canvas
double m_occWarning
warning level of the occupancy
svdStatus m_occUGroupId0
0 = normal, 4 = empty, 1 = warning, 2 = error for 3 samples
void terminate() override final
This method is called at the end of the event processing.
TCanvas * m_cOccupancyU3Samples
occupancy U histo canvas for 3 sampes
SVDSummaryPlots * m_hOccupancyGroupId0
occupancy histos for cluster time group id=0
TCanvas * m_cOnlineOccupancyV3Samples
online Occupancy V histo canvas for 3 samples
TCanvas * m_cOccupancyChartChip
occupancy chart histo canvas
void event() override final
This method is called for each event.
bool m_printCanvas
Parameters accesible from basf2 scripts.
TCanvas * m_cOnlineOccupancyRPhiViewV3Samples
occupancy V plot canvas for 3 samples
TCanvas ** m_cStripOccupancyU
u-side strip chart occupancy canvas
TH1F m_hStripOccupancyV[172]
u-side strip chart occupancy histos
Float_t getOccupancy(float entries, int tmp_layer, int nEvents, bool sideV=false)
get occupancy value
svdStatus m_occV3Samples
0 = normal, 4 = empty, 1 = warning, 2 = error for 3 sampels
bool m_3Samples
if true enable 3 samples histograms analysis
svdStatus m_onlineOccVstatus
0 = normal, 4 = empty, 1 = warning, 2 = error
svdStatus m_onlineOccU3Samples
0 = normal, 4 = empty, 1 = warning, 2 = error for 3 sample
void endRun() override final
This method is called if the current run ends.
void setOccStatus(float occ, svdStatus &occupancyStatus, bool online=false)
set occupancy status
TCanvas * m_cOccupancyRPhiViewU3Samples
occupancy U plot canvas for 3 samples
void beginRun() override final
Called when entering a new run.
SVDSummaryPlots * m_hOnlineOccupancy
online occupancy histos
TCanvas * m_cOccupancyRPhiViewU
occupancy U plot canvas
TCanvas * m_cOnlineOccupancyRPhiViewU
online occupancy U plot canvas
double m_occEmpty
empty level of the occupancy
TCanvas * m_cOnlineOccupancyV
online Occupancy V histo canvas
TCanvas * m_cOccupancyUGroupId0
occupancy U histo canvas for cluster time group Id = 0
TCanvas * m_cOccupancyV3Samples
occupancy V histo canvas for 3 samples
double m_onlineOccWarning
warning level of the onlineOccupancy
double m_occError
error level of the occupancy
TCanvas * m_cOnlineOccupancyU3Samples
online occupancy U histo canvas for 3 samples
svdStatus m_occUstatus
0 = normal, 4 = empty, 1 = warning, 2 = error
TCanvas * m_cOccupancyRPhiViewV
occupancy V plot canvas
TH1F m_hStripOccupancyU[172]
u-side strip chart occupancy histos
class to summarize SVD quantities per sensor and side
Abstract base class for different kinds of events.