Belle II Software prerelease-10-00-00a
SVDDQMExpressRecoModule.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 <framework/core/HistoModule.h>
12#include <mdst/dataobjects/SoftwareTriggerResult.h>
13#include <framework/datastore/StoreObjPtr.h>
14#include <vxd/dataobjects/VxdID.h>
15#include <mdst/dataobjects/TRGSummary.h>
16#include <svd/geometry/SensorInfo.h>
17#include <vxd/geometry/GeoCache.h>
18#include <svd/dataobjects/SVDEventInfo.h>
19#include <svd/dbobjects/SVDDQMPlotsConfiguration.h>
20#include <framework/database/DBObjPtr.h>
21#include <vector>
22#include "TList.h"
23#include "TH1F.h"
24#include "TH2F.h"
25
26namespace Belle2 {
31
36 class SVDDQMExpressRecoModule : public HistoModule { // <- derived from HistoModule class
37
38 public:
39
44 /* Destructor */
48
50 void initialize() override final;
52 void terminate() override final;
54 void beginRun() override final;
56 void event() override final;
57
62 void defineHisto() override final;
63
64 private:
65
70
73 bool m_desynchSVDTime = false;
74
77
80
82 bool m_additionalPlots = false;
83
85 bool m_3Samples = false;
86
88 bool m_useParamFromDB = true;
89
91 TList* m_histoList = nullptr;
92
94 int m_expNumber = 0;
96 int m_runNumber = 0;
97
100
102 float m_CutSVDCharge = 0.0;
103
106
109
116
118 TH1F* m_nEvents = nullptr;
119
121 TH1F* m_hitMapCountsU = nullptr;
123 TH1F* m_hitMapCountsV = nullptr;
125 TH1F* m_hitMapClCountsU = nullptr;
127 TH1F* m_hitMapClCountsV = nullptr;
129 TH1F* m_hitMapCountsChip = nullptr;
131 TH1F* m_hitMapClCountsChip = nullptr;
133 TH1F** m_firedU = nullptr;
135 TH1F** m_firedV = nullptr;
137 TH1F** m_clustersU = nullptr;
139 TH1F** m_clustersV = nullptr;
140
142 TH1F** m_clusterChargeU = nullptr;
144 TH1F** m_clusterChargeV = nullptr;
146 TH1F* m_clusterChargeUAll = nullptr;
148 TH1F* m_clusterChargeVAll = nullptr;
150 TH1F* m_clusterChargeU3 = nullptr;
152 TH1F* m_clusterChargeV3 = nullptr;
154 TH1F* m_clusterChargeU456 = nullptr;
156 TH1F* m_clusterChargeV456 = nullptr;
157
159 TH1F** m_clusterSNRU = nullptr;
161 TH1F** m_clusterSNRV = nullptr;
163 TH1F* m_clusterSNRUAll = nullptr;
165 TH1F* m_clusterSNRVAll = nullptr;
167 TH1F* m_clusterSNRU3 = nullptr;
169 TH1F* m_clusterSNRV3 = nullptr;
171 TH1F* m_clusterSNRU456 = nullptr;
173 TH1F* m_clusterSNRV456 = nullptr;
174
176 TH1F* m_stripMaxBinUAll = nullptr;
178 TH1F* m_stripMaxBinVAll = nullptr;
180 TH1F* m_stripMaxBinU3 = nullptr;
182 TH1F* m_stripMaxBinV3 = nullptr;
184 TH1F* m_stripMaxBinU6 = nullptr;
186 TH1F* m_stripMaxBinV6 = nullptr;
187
189 TH1F** m_stripSignalU = nullptr;
191 TH1F** m_stripSignalV = nullptr;
193 TH1F** m_stripCountU = nullptr;
195 TH1F** m_stripCountV = nullptr;
197 TH1F** m_onlineZSstripCountU = nullptr;
199 TH1F** m_onlineZSstripCountV = nullptr;
200
202 TH1F** m_stripCountGroupId0U = nullptr;
203
205 TH1F** m_stripCountGroupId0V = nullptr;
206
208 TH1F** m_strip3SampleCountU = nullptr;
210 TH1F** m_strip3SampleCountV = nullptr;
215
216
218 TH1F** m_strip6SampleCountU = nullptr;
220 TH1F** m_strip6SampleCountV = nullptr;
225
227 TH1F** m_clusterSizeU = nullptr;
229 TH1F** m_clusterSizeV = nullptr;
230
232 TH2F* m_clusterTimeGroupIdU = nullptr;
234 TH2F* m_clusterTimeGroupIdV = nullptr;
235
236
241
246
248 TH1F** m_clusterTimeU = nullptr;
250 TH1F** m_clusterTimeV = nullptr;
252 TH1F* m_clusterTimeUAll = nullptr;
254 TH1F* m_clusterTimeVAll = nullptr;
256 TH1F* m_clusterTimeU3 = nullptr;
258 TH1F* m_clusterTimeV3 = nullptr;
260 TH1F* m_clusterTimeU456 = nullptr;
262 TH1F* m_clusterTimeV456 = nullptr;
263
265 TH1F* m_cluster3SampleTimeU3 = nullptr;
267 TH1F* m_cluster3SampleTimeV3 = nullptr;
272
274 TH1F* m_cluster6SampleTimeU3 = nullptr;
276 TH1F* m_cluster6SampleTimeV3 = nullptr;
281
282 //----------------------------------------------------------------
283 // Additional histograms for out of ExpressReco
284 //----------------------------------------------------------------
285
287 TH2F** m_hitMapU = nullptr;
289 TH2F** m_hitMapV = nullptr;
291 TH1F** m_hitMapUCl = nullptr;
293 TH1F** m_hitMapVCl = nullptr;
294
295 };
296
298}
Class for accessing objects in the database.
Definition DBObjPtr.h:21
HistoModule()
Constructor.
Definition HistoModule.h:32
TH1F ** m_hitMapUCl
Hitmaps clusters for u.
TH1F ** m_clustersV
number of v clusters per event
SVDDQMExpressRecoModule(const SVDDQMExpressRecoModule &)=delete
Copy constructor (disabled)
TH1F * m_clusterSNRVAll
v SNR of clusters for all sensors
TH1F ** m_strip3SampleCountV
v strip count for 3 samples
TH1F * m_clusterTimeV456
v Time of clusters for layer 4,5,6 sensors
bool m_useParamFromDB
if true read back from DB configuration parameters
TH1F * m_clusterSNRUAll
u SNR of clusters for all sensors
TH1F * m_clusterChargeU3
u charge of clusters for layer 3 sensors
void initialize() override final
Module function initialize.
TH2F * m_clusterTimeGroupIdV
time group id for V side
TH1F * m_clusterSNRV3
v SNR of clusters for layer 3 sensors
TH1F * m_hitMapCountsV
Hitmaps v of Digits.
TH2F ** m_hitMapU
Hitmaps pixels for u.
TH1F ** m_onlineZSstrip6sampleCountU
u strip count (online Zero Suppression) for 6 samples
std::string m_storeNoZSSVDShaperDigitsName
not zero-suppressed SVDShaperDigits StoreArray name
bool m_skipRejectedEvents
if true skip events rejected by HLT
TH1F * m_stripMaxBinU6
u MaxBin of strips for layer 6 sensors (offline Zero Suppression)
TH1F * m_clusterTimeUAll
u time of clusters for all sensors
TH1F ** m_onlineZSstrip3SampleCountV
v strip count (online Zero Suppression for 3 samples
TH1F * m_hitMapClCountsU
Hitmaps u of Clusters.
TH2F * m_clusterTimeFineGroupIdV
time group id for V side for fine trigger
float m_CutSVDCharge
cut for accepting strips to hitmap histogram default = 0 ADU
TH1F * m_cluster6SampleTimeU3
u Time of clusters for layer 3 sensors for 6 samples
StoreObjPtr< SVDEventInfo > m_svdEventInfo
SVDEventInfo data object.
TH1F * m_hitMapCountsU
Hitmaps u of Digits.
TH1F ** m_clusterSNRV
v SNR of clusters per sensor
TH1F ** m_clusterChargeV
v charge of clusters
TH1F * m_cluster3SampleTimeU3
u Time of clusters for layer 3 sensors for 3 samples
TH1F ** m_stripSignalU
u charge of strips
TH1F * m_clusterChargeUAll
u charge of clusters for all sensors
TH1F * m_cluster3SampleTimeU456
u Time of clusters for layer 4,5,6 sensors for 3 samples
TH1F * m_clusterChargeU456
u charge of clusters for layer 4,5,6 sensors
void defineHisto() override final
Histogram definitions such as TH1(), TH2(), TNtuple(), TTree()....
TH1F * m_cluster3SampleTimeV456
v Time of clusters for layer 4,5,6 sensors for 3 samples
TH1F * m_clusterTimeV3
v Time of clusters for layer 3 sensors
DBObjPtr< SVDDQMPlotsConfiguration > m_svdPlotsConfig
SVD DQM plots configuration.
TH1F ** m_clusterSNRU
u SNR of clusters per sensor
TH1F ** m_hitMapVCl
Hitmaps clusters for v.
TH1F ** m_strip3SampleCountU
u strip count for 3 samples
void terminate() override final
Module function terminate.
TH1F * m_stripMaxBinV3
v MaxBin of strips for layer 3 sensors (offline Zero Suppression)
TH1F * m_clusterTimeVAll
v time of clusters for all sensors
TH2F * m_clusterTimeCoarseGroupIdU
time group id for U side for coarse trigger
void event() override final
Module function event.
TH1F ** m_onlineZSstripCountV
v strip count (online Zero Suppression
TH1F ** m_stripSignalV
v charge of strips
StoreObjPtr< TRGSummary > m_objTrgSummary
Trigger Summary data object.
std::string m_storeSVDShaperDigitsName
SVDShaperDigits StoreArray name.
std::string m_histogramDirectoryName
Name of the histogram directory in ROOT file.
TH1F * m_clusterChargeVAll
v charge of clusters for all sensors
TH1F * m_clusterSNRU3
u SNR of clusters for layer 3 sensors
TH1F * m_clusterSNRV456
v SNR of clusters for layer 4,5,6 sensors
TH1F * m_stripMaxBinUAll
u MaxBin of strips for all sensors (offline Zero Suppression)
bool m_3Samples
if true enable 3 samples histograms analysis
TList * m_histoList
list of cumulative histograms
TH1F ** m_clusterChargeU
u charge of clusters
TH1F * m_hitMapCountsChip
Hitmaps of digits on chips.
TH1F * m_cluster3SampleTimeV3
v Time of clusters for layer 3 sensors for 3 samples
TH1F * m_clusterChargeV3
v charge of clusters for layer 3 sensors
TH2F ** m_hitMapV
Hitmaps pixels for v.
TH1F * m_stripMaxBinV6
v MaxBin of strips for layer 6 sensors (offline Zero Suppression)
TH1F ** m_stripCountGroupId0V
V strip count for cluster time group Id = 0.
TH1F ** m_strip6SampleCountV
v strip count for 3 samples
TH1F * m_cluster6SampleTimeV456
v Time of clusters for layer 4,5,6 sensors for 6 samples
TH1F ** m_firedU
Fired u strips per event.
TH1F * m_clusterTimeU3
u Time of clusters for layer 3 sensors
TH1F * m_cluster6SampleTimeV3
v Time of clusters for layer 3 sensors for 6 samples
TH1F * m_clusterSNRU456
u SNR of clusters for layer 4,5,6 sensors
void beginRun() override final
Module function beginRun.
TH1F ** m_onlineZSstripCountU
u strip count (online Zero Suppression)
int m_ShowAllHistos
Flag to show all histos in DQM, default = 0 (do not show)
bool m_additionalPlots
additional plots flag
TH1F * m_stripMaxBinU3
u MaxBin of strips for layer 3 sensors (offline Zero Suppression)
bool m_desynchSVDTime
if TRUE: svdTime back in SVD time reference
SVDDQMExpressRecoModule & operator=(const SVDDQMExpressRecoModule &)=delete
Operator = (disabled)
TH1F * m_stripMaxBinVAll
v MaxBin of strips for all sensors (offline Zero Suppression)
TH1F * m_hitMapClCountsChip
Hitmaps of clusters on chips.
TH1F ** m_strip6SampleCountU
u strip count for 6 samples
TH1F ** m_onlineZSstrip3SampleCountU
u strip count (online Zero Suppression) for 3 samples
TH1F ** m_onlineZSstrip6sampleCountV
v strip count (online Zero Suppression for 6 samples
StoreObjPtr< SoftwareTriggerResult > m_resultStoreObjectPointer
Store Object for reading the trigger decision.
float m_CutSVDClusterCharge
cut for accepting clusters to hitmap histogram, default = 0 ke-
TH2F * m_clusterTimeGroupIdU
time group id for U side
std::string m_storeSVDClustersName
SVDClusters StoreArray name.
TH1F * m_clusterTimeU456
u Time of clusters for layer 4,5,6 sensors
TH2F * m_clusterTimeCoarseGroupIdV
time group id for V side for coarse trigger
TH1F ** m_firedV
Fired v strips per event.
TH1F * m_clusterChargeV456
v charge of clusters for layer 4,5,6 sensors
TH1F ** m_stripCountGroupId0U
U strip count for cluster time group Id = 0.
TH1F * m_hitMapClCountsV
Hitmaps v of Clusters.
TH1F ** m_clustersU
number of u clusters per event
TH2F * m_clusterTimeFineGroupIdU
time group id for U side for fine trigger
TH1F * m_cluster6SampleTimeU456
u Time of clusters for layer 4,5,6 sensors for 6 samples
This class handle DQM plots configuration: additional histograms (Charge, SNR, Time),...
Stores SVDModeByte object with Trigger time, DAQ mode, Run type & Event type!
Dataobject to store the results of the cut calculations performed by the SoftwareTriggerModule.
Type-safe access to single objects in the data store.
Definition StoreObjPtr.h:96
Trigger Summary Information input bits input bits from subdetectors ftdl (Final Trigger Decision Logi...
Definition TRGSummary.h:32
Abstract base class for different kinds of events.
STL namespace.