Belle II Software  release-08-01-10
MonitorData.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 #ifndef MONITOR_DATA_H
9 #define MONITOR_DATA_H
10 
11 #include <framework/core/HistoModule.h>
12 
13 #include "TH1F.h"
14 #include "TH2F.h"
15 
16 namespace Belle2 {
24  class MonitorDataModule : public HistoModule {
25 
26  // Public functions
27  public:
28 
31  virtual ~MonitorDataModule();
32 
34  void initialize() override;
35 
37  void beginRun() override;
38  void event() override;
39  void endRun() override;
40  void terminate() override;
41 
43  void defineHisto() override;
44 
45  // Data members
46 
47  private:
48 
50  int m_nevt;
51  int* m_buffer;
52 
54  TH1F* h_ncpr;
55  TH1F* h_nevt;
56  TH1F* h_size;
57  TH2F* h_size2d;
58 
59  };
60 
62 } // end namespace Belle2
63 
64 #endif // MODULEHELLO_H
HistoModule.h is supposed to be used instead of Module.h for the modules with histogram definitions t...
Definition: HistoModule.h:29
A class definition of an input module for Sequential ROOT I/O.
Definition: MonitorData.h:24
int m_nevt
No. of sent events.
Definition: MonitorData.h:50
void initialize() override
Module functions to be called from main process.
Definition: MonitorData.cc:53
void event() override
Function to process event record.
Definition: MonitorData.cc:87
void endRun() override
Function to process end_run record.
Definition: MonitorData.cc:67
void terminate() override
Function to terminate module.
Definition: MonitorData.cc:75
void beginRun() override
Module functions to be called from event process.
Definition: MonitorData.cc:59
TH1F * h_ncpr
Histograms.
Definition: MonitorData.h:54
MonitorDataModule()
Constructor / Destructor.
Definition: MonitorData.cc:28
void defineHisto() override
Histogram definition.
Definition: MonitorData.cc:44
Abstract base class for different kinds of events.