Belle II Software  release-06-02-00
DQMHistAnalysisPXDReduction.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 : DQMHistAnalysisPXDReduction.h
10 // Description : DAQM Analysis for PXD Data Reduction
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 #include <vxd/dataobjects/VxdID.h>
22 
23 #include <TH2F.h>
24 #include <TCanvas.h>
25 #include <TLine.h>
26 
27 #include <vector>
28 
29 namespace Belle2 {
37 
38  // Public functions
39  public:
40 
45 
50 
54  void initialize(void) override final;
55 
59  void beginRun(void) override final;
60 
64  void event(void) override final;
65 
69  void terminate(void) override final;
70 
71  private:
72 
73  // Data members
77  std::string m_pvPrefix;
78 
80  std::vector<VxdID> m_PXDModules;
81 
83  TH1F* m_hReduction = nullptr;
85  TCanvas* m_cReduction = nullptr;
86 
88  TLine* m_line1 = nullptr;
89 
92 
94  bool m_useEpics;
95 
96 #ifdef _BELLE2_EPICS
98  std::vector <chid> mychid;
99 #endif
100  };
102 } // end namespace Belle2
103 
The base class for the histogram analysis module.
DQM Histogram Analysis for PXD Reduction.
void terminate(void) override final
This method is called at the end of the event processing.
TH1F * m_hReduction
Histogram covering all modules.
void initialize(void) override final
Initializer.
MonitoringObject * m_monObj
Monitoring Object.
std::vector< VxdID > m_PXDModules
IDs of all PXD Modules to iterate over.
std::string m_histogramDirectoryName
name of histogram directory
TLine * m_line1
Line in the Canvas to guide the eye.
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.