Belle II Software development
DAQMonitor.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 : DAQMonitor.h
10// Description : Module to monitor raw data accumulating histos
11//-
12
13#pragma once
14
15/* Basf2 headers. */
16#include <framework/core/HistoModule.h>
17#include <framework/datastore/StoreArray.h>
18#include <framework/datastore/StoreObjPtr.h>
19#include <framework/dataobjects/EventMetaData.h>
20#include <rawdata/dataobjects/RawPXD.h>
21#include <rawdata/dataobjects/RawSVD.h>
22#include <rawdata/dataobjects/RawCDC.h>
23#include <rawdata/dataobjects/RawTOP.h>
24#include <rawdata/dataobjects/RawARICH.h>
25#include <rawdata/dataobjects/RawECL.h>
26#include <rawdata/dataobjects/RawKLM.h>
27#include <rawdata/dataobjects/RawTRG.h>
28
29/* ROOT headers. */
30#include <TH1F.h>
31
32namespace Belle2 {
40
41 public:
42
45
47 ~DAQMonitorModule() = default;
48
50 void initialize() override final;
51
53 void beginRun() override final;
54
56 void event() override final;
57
59 void defineHisto() override final;
60
61 private:
62
64 TH1F* h_nEvt{nullptr};
65
67 TH1F* h_pxdSize{nullptr};
68
70 TH1F* h_svdSize{nullptr};
71
73 TH1F* h_cdcSize{nullptr};
74
76 TH1F* h_topSize{nullptr};
77
79 TH1F* h_arichSize{nullptr};
80
82 TH1F* h_eclSize{nullptr};
83
85 TH1F* h_klmSize{nullptr};
86
88 TH1F* h_trgSize{nullptr};
89
91 TH1F* h_hltSize{nullptr};
92
94 TH1F* h_totalSize{nullptr};
95
97 TH1F* h_runNr{nullptr};
98
101
104
107
110
113
116
119
122
125
126 };
127
129}
A module for producing general DAQ DQM histograms.
Definition: DAQMonitor.h:39
TH1F * h_hltSize
Histogram for HLT data size.
Definition: DAQMonitor.h:91
void initialize() override final
Initialize.
Definition: DAQMonitor.cc:50
StoreArray< RawARICH > m_arichRaw
ARICH raw data.
Definition: DAQMonitor.h:115
DAQMonitorModule()
Constructor.
Definition: DAQMonitor.cc:23
TH1F * h_totalSize
Histogram for total data size.
Definition: DAQMonitor.h:94
StoreArray< RawSVD > m_svdRaw
SVD raw data.
Definition: DAQMonitor.h:106
StoreArray< RawTOP > m_topRaw
TOP raw data.
Definition: DAQMonitor.h:112
StoreArray< RawKLM > m_klmRaw
KLM raw data.
Definition: DAQMonitor.h:121
void defineHisto() override final
Histograms definition.
Definition: DAQMonitor.cc:29
TH1F * h_nEvt
Histogram for total number of events.
Definition: DAQMonitor.h:64
StoreArray< RawPXD > m_pxdRaw
PXD raw data.
Definition: DAQMonitor.h:103
TH1F * h_cdcSize
Histogram for CDC data size.
Definition: DAQMonitor.h:73
StoreObjPtr< EventMetaData > m_eventMetaData
Input ptr for EventMetaData.
Definition: DAQMonitor.h:100
TH1F * h_arichSize
Histogram for ARICH data size.
Definition: DAQMonitor.h:79
void event() override final
Event.
Definition: DAQMonitor.cc:80
TH1F * h_svdSize
Histogram for SVD data size.
Definition: DAQMonitor.h:70
TH1F * h_pxdSize
Histogram for PXD data size.
Definition: DAQMonitor.h:67
TH1F * h_runNr
Histogram for run nr crosscheck.
Definition: DAQMonitor.h:97
void beginRun() override final
Begin run.
Definition: DAQMonitor.cc:64
TH1F * h_trgSize
Histogram for TRG data size.
Definition: DAQMonitor.h:88
TH1F * h_eclSize
Histogram for ECL data size.
Definition: DAQMonitor.h:82
~DAQMonitorModule()=default
Destructor.
StoreArray< RawTRG > m_trgRaw
TRG raw data.
Definition: DAQMonitor.h:124
TH1F * h_klmSize
Histogram for KLM data size.
Definition: DAQMonitor.h:85
StoreArray< RawECL > m_eclRaw
ECL raw data.
Definition: DAQMonitor.h:118
StoreArray< RawCDC > m_cdcRaw
CDC raw data.
Definition: DAQMonitor.h:109
TH1F * h_topSize
Histogram for TOP data size.
Definition: DAQMonitor.h:76
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
Definition: HistoModule.h:29
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.