Belle II Software  release-06-01-15
DQMHistAnalysisIP.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 : DQMHistAnalysisIP.h
10 // Description : Median for IP position with delta histogramming
11 //-
12 
13 #pragma once
14 
15 #ifdef _BELLE2_EPICS
16 // EPICS
17 #include "cadef.h"
18 #endif
19 
20 #include <framework/core/Module.h>
21 
22 #include <dqm/analysis/modules/DQMHistAnalysis.h>
23 
24 #include <TCanvas.h>
25 #include <TLine.h>
26 #include <TH1.h>
27 
28 namespace Belle2 {
36 
37  // Public functions
38  public:
39 
44 
49 
53  void initialize() override final;
54 
58  void beginRun() override final;
59 
63  void event() override final;
64 
68  void terminate() override final;
69 
70  // Data members
71  private:
73  std::string m_histoname;
75  std::string m_pvPrefix;
77  std::string m_monPrefix;
79  int m_minEntries = 1000;
80 
82  TCanvas* m_c1 = nullptr;
84  TLine* m_line = nullptr;
86  TLine* m_line2 = nullptr;
87 
89  TH1* m_h_last = nullptr;
90 
93 
95  bool m_useEpics;
97  static const int m_parameters = 3;
98 #ifdef _BELLE2_EPICS
99  chid mychid[m_parameters];// hard limit max parameters
100 #endif
101  };
103 } // end namespace Belle2
104 
Class definition for the output module of Sequential ROOT I/O.
int m_minEntries
Update entry intervall.
void initialize() override final
Initializer.
std::string m_pvPrefix
The prefix of PV.
MonitoringObject * m_monObj
Monitoring Object.
void terminate() override final
This method is called at the end of the event processing.
std::string m_monPrefix
The prefix for MonitoringObj.
void event() override final
This method is called for each event.
static const int m_parameters
number of EPICS PVs
TCanvas * m_c1
The drawing canvas.
std::string m_histoname
The name of the histogram.
void beginRun() override final
Called when entering a new run.
TLine * m_line
The line for the mean result.
bool m_useEpics
flag if to export to EPICS
TLine * m_line2
The line for the median result.
The base class for the histogram analysis 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.