Belle II Software  release-06-00-14
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  private:
46 
48  void initialize(void) override final;
49 
51  void beginRun(void) override final;
52  void event(void) override final;
53  void terminate(void) override final;
54 
55  // Data members
59  std::string m_pvPrefix;
60 
62  std::vector<VxdID> m_PXDModules;
63 
65  TH1F* m_hReduction = nullptr;
67  TCanvas* m_cReduction = nullptr;
68 
70  TLine* m_line1 = nullptr;
71 
74 
76  bool m_useEpics;
77 
78 #ifdef _BELLE2_EPICS
80  std::vector <chid> mychid;
81 #endif
82  };
84 } // end namespace Belle2
85 
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
Module functions to be called from main process.
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
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.