Belle II Software  release-06-00-14
DQMHistAnalysisPXDDAQ.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 : DQMHistAnalysisPXDDAQ.h
10 // Description : DAQM Analysis for PXD Data DAQ
11 //-
12 
13 #pragma once
14 
15 #ifdef _BELLE2_EPICS
16 // EPICS
17 #include "cadef.h"
18 #endif
19 
20 #include <dqm/analysis/modules/DQMHistAnalysis.h>
21 
22 #include <TH1F.h>
23 #include <TH2F.h>
24 #include <TCanvas.h>
25 
26 namespace Belle2 {
34 
35  // Public functions
36  public:
37 
42  private:
43 
45  void initialize(void) override final;
46 
48  void beginRun(void) override final;
49  void event(void) override final;
50  void terminate(void) override final;
51 
52  // Data members
56  std::string m_pvPrefix;
57 
59  TH1* m_hDAQError = nullptr;
61  TH2F* m_hMissingDHC = nullptr;
63  TH2F* m_hMissingDHE = nullptr;
65  TH1F* m_hMissingDHP = nullptr;
67  TH1F* m_hStatistic = nullptr;
69  TCanvas* m_cDAQError = nullptr;
71  TCanvas* m_cMissingDHC = nullptr;
73  TCanvas* m_cMissingDHE = nullptr;
75  TCanvas* m_cMissingDHP = nullptr;
77  TCanvas* m_cStatistic = nullptr;
78 
79 
82 
84  bool m_useEpics;
85 
86 #ifdef _BELLE2_EPICS
88  std::vector <chid> mychid;
89 #endif
90  };
92 } // end namespace Belle2
93 
The base class for the histogram analysis module.
DQM Histogram Analysis for PXD DAQ.
void terminate(void) override final
This method is called at the end of the event processing.
void initialize(void) override final
Module functions to be called from main process.
std::string m_pvPrefix
prefix for EPICS PVs
MonitoringObject * m_monObj
Monitoring Object.
std::string m_histogramDirectoryName
name of histogram directory
TH1F * m_hStatistic
Histogram covering stat.
TH2F * m_hMissingDHC
Histogram covering all DHC modules.
TH1 * m_hDAQError
Histogram covering all error types.
bool m_useEpics
flag if to export to EPICS
TH1F * m_hMissingDHP
Histogram covering all modules*DHP.
TH2F * m_hMissingDHE
Histogram covering all DHE modules.
void beginRun(void) override final
Module functions to be called from event process.
void event(void) override final
This method is the core of the module.
MonitoringObject is a basic object to hold data for the run-dependency monitoring Run summary TCanvas...
Abstract base class for different kinds of events.