Belle II Software  release-06-01-15
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 
47 
51  void initialize(void) override final;
52 
56  void beginRun(void) override final;
57 
61  void event(void) override final;
62 
66  void terminate(void) override final;
67 
68  private:
69 
70  // Data members
74  std::string m_pvPrefix;
76  int m_minEntries = 10000;
77 
79  TH1* m_hDAQError = nullptr;
81  TH2F* m_hMissingDHC = nullptr;
83  TH2F* m_hMissingDHE = nullptr;
85  TH1F* m_hMissingDHP = nullptr;
87  TH1D* m_hStatistic = nullptr;
89  TH1* m_hDaqStatOld = nullptr;
91  TCanvas* m_cDAQError = nullptr;
93  TCanvas* m_cMissingDHC = nullptr;
95  TCanvas* m_cMissingDHE = nullptr;
97  TCanvas* m_cMissingDHP = nullptr;
99  TCanvas* m_cStatistic = nullptr;
101  TCanvas* m_cStatisticUpd = nullptr;
102 
103 
106 
109 
110 #ifdef _BELLE2_EPICS
112  std::vector <chid> mychid;
113 #endif
114  };
116 } // end namespace Belle2
117 
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.
int m_minEntries
Update entry intervall.
void initialize(void) override final
Initializer.
TH1D * m_hStatistic
Histogram covering stat.
std::string m_pvPrefix
prefix for EPICS PVs
MonitoringObject * m_monObj
Monitoring Object.
std::string m_histogramDirectoryName
name of histogram directory
TH2F * m_hMissingDHC
Histogram covering all DHC modules.
TH1 * m_hDaqStatOld
Histogram preserving last stat upd.
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
Called when entering a new run.
void event(void) override final
This method is called for each event.
MonitoringObject is a basic object to hold data for the run-dependency monitoring Run summary TCanvas...
Abstract base class for different kinds of events.