Belle II Software  release-06-00-14
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 
43 
45  void initialize() override final;
46 
48  void beginRun() override final;
49  void event() override final;
50  void terminate() override final;
51 
52  // Data members
53  private:
55  std::string m_histoname;
57  std::string m_pvPrefix;
59  std::string m_monPrefix;
61  int m_minEntries = 1000;
62 
64  TCanvas* m_c1 = nullptr;
66  TLine* m_line = nullptr;
67 
69  TH1* m_h_last = nullptr;
70 
73 
75  bool m_useEpics;
77  static const int m_parameters = 2;
78 #ifdef _BELLE2_EPICS
79  chid mychid[m_parameters];// hard limit max 2 parameters
80 #endif
81  };
83 } // end namespace Belle2
84 
Class definition for the output module of Sequential ROOT I/O.
int m_minEntries
Update entry intervall.
void initialize() override final
Module functions to be called from main process.
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 the core of the module.
DQMHistAnalysisIPModule()
Constructor / Destructor.
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
Module functions to be called from event process.
TLine * m_line
The line for the fitting result.
bool m_useEpics
flag if to export to EPICS
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.