 |
Belle II Software
release-05-02-19
|
10 #include <dqm/modules/DAQMonitor.h>
13 #include <TDirectory.h>
21 setDescription(
"This module produces general DAQ DQM histograms.");
22 setPropertyFlags(c_ParallelProcessingCertified);
27 TDirectory* oldDir = gDirectory;
30 h_nEvt =
new TH1F(
"Nevent",
"Total Number of Events", 3, 0.0, 2.0);
31 h_pxdSize =
new TH1F(
"PXDDataSize",
"PXD Data Size;Size [kB];", 100, 0.0, 100.0);
32 h_svdSize =
new TH1F(
"SVDDataSize",
"SVD Data Size;Size [kB];", 100, 0.0, 100.0);
33 h_cdcSize =
new TH1F(
"CDCDataSize",
"CDC Data Size;Size [kB];", 100, 0.0, 100.0);
34 h_topSize =
new TH1F(
"TOPDataSize",
"TOP Data Size;Size [kB];", 100, 0.0, 100.0);
35 h_arichSize =
new TH1F(
"ARICHDataSize",
"ARICH Data Size;Size [kB];", 100, 0.0, 40.0);
36 h_eclSize =
new TH1F(
"ECLDataSize",
"ECL Data Size;Size [kB];", 100, 0.0, 100.0);
37 h_klmSize =
new TH1F(
"KLMDataSize",
"KLM Data Size;Size [kB];", 100, 0.0, 40.0);
38 h_trgSize =
new TH1F(
"TRGDataSize",
"TRG Data Size;Size [kB];", 100, 0.0, 40.0);
39 h_hltSize =
new TH1F(
"HLTDataSize",
"HLT (Total - PXD) Data Size;Size [kB];", 100, 0.0, 300.0);
40 h_totalSize =
new TH1F(
"TotalDataSize",
"Total (HLT + PXD) Data Size;Size [kB];", 100, 0.0, 300.0);
83 pxdSize += (pxdRaw.size()) *
sizeof(
unsigned int);
84 h_pxdSize->Fill(
static_cast<float>(pxdSize) / 1000.);
89 svdSize += svdRaw.GetBlockNwords(0) *
sizeof(
unsigned int);
90 h_svdSize->Fill(
static_cast<float>(svdSize) / 1000.);
95 cdcSize += cdcRaw.GetBlockNwords(0) *
sizeof(
unsigned int);
96 h_cdcSize->Fill(
static_cast<float>(cdcSize) / 1000.);
101 topSize += topRaw.GetBlockNwords(0) *
sizeof(
unsigned int);
102 h_topSize->Fill(
static_cast<float>(topSize) / 1000.);
107 arichSize += arichRaw.GetBlockNwords(0) *
sizeof(
unsigned int);
108 h_arichSize->Fill(
static_cast<float>(arichSize) / 1000.);
113 eclSize += eclRaw.GetBlockNwords(0) *
sizeof(
unsigned int);
114 h_eclSize->Fill(
static_cast<float>(eclSize) / 1000.);
119 klmSize += klmRaw.GetBlockNwords(0) *
sizeof(
unsigned int);
120 h_klmSize->Fill(
static_cast<float>(klmSize) / 1000.);
125 trgSize += trgRaw.GetBlockNwords(0) *
sizeof(
unsigned int);
126 h_trgSize->Fill(
static_cast<float>(trgSize) / 1000.);
129 int hltSize = svdSize + cdcSize + topSize + arichSize + eclSize + klmSize + trgSize;
130 h_hltSize->Fill(
static_cast<float>(hltSize) / 1000.);
131 int totalSize = pxdSize + hltSize;
132 h_totalSize->Fill(
static_cast<float>(totalSize) / 1000.);
void defineHisto() override final
Histograms definition.
StoreArray< RawECL > m_eclRaw
ECL raw data.
The Raw TOP class Class for RawCOPPER class data taken by TOP Currently, this class is almost same as...
TH1F * h_svdSize
Histogram for SVD data size.
TH1F * h_klmSize
Histogram for KLM data size.
TH1F * h_trgSize
Histogram for TRG data size.
#define REG_MODULE(moduleName)
Register the given module (without 'Module' suffix) with the framework.
The Raw SVD class Class for RawCOPPER class data taken by SVD Currently, this class is almost same as...
StoreArray< RawCDC > m_cdcRaw
CDC raw data.
void initialize() override final
Initialize.
The Raw TOP class Class for RawCOPPER class data taken by TOP Currently, this class is almost same as...
The Raw ECL class Class for RawCOPPER class data taken by ECL Currently, this class is almost same as...
StoreArray< RawKLM > m_klmRaw
KLM raw data.
TH1F * h_cdcSize
Histogram for CDC data size.
The Raw ARICH class Class for RawCOPPER class data taken by ARICH Currently, this class is almost sam...
TH1F * h_hltSize
Histogram for HLT data size.
TH1F * h_topSize
Histogram for TOP data size.
TH1F * h_arichSize
Histogram for ARICH data size.
StoreArray< RawSVD > m_svdRaw
SVD raw data.
The Raw CDC class Class for RawCOPPER class data taken by CDC Currently, this class is almost same as...
Abstract base class for different kinds of events.
The Raw KLM class Class for RawCOPPER class data taken by KLM.
StoreArray< RawTRG > m_trgRaw
TRG raw data.
TH1F * h_totalSize
Histogram for total data size.
StoreArray< RawARICH > m_arichRaw
ARICH raw data.
TH1F * h_eclSize
Histogram for ECL data size.
StoreArray< RawTOP > m_topRaw
TOP raw data.
TH1F * h_pxdSize
Histogram for PXD data size.
TH1F * h_nEvt
Histogram for total number of events.
void event() override final
Event.
void beginRun() override final
Begin run.
StoreArray< RawPXD > m_pxdRaw
PXD raw data.
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
A module for producing general DAQ DQM histograms.