Belle II Software  release-06-01-15
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  virtual void initialize();
35 
37  virtual void beginRun();
38  virtual void event();
39  virtual void endRun();
40  virtual void terminate();
41 
43  virtual void defineHisto();
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
virtual void event()
Function to process event record.
Definition: MonitorData.cc:87
int m_nevt
No. of sent events.
Definition: MonitorData.h:50
virtual void initialize()
Module functions to be called from main process.
Definition: MonitorData.cc:53
virtual void beginRun()
Module functions to be called from event process.
Definition: MonitorData.cc:59
virtual void terminate()
Function to terminate module.
Definition: MonitorData.cc:75
virtual void endRun()
Function to process end_run record.
Definition: MonitorData.cc:67
TH1F * h_ncpr
Histograms.
Definition: MonitorData.h:54
MonitorDataModule()
Constructor / Destructor.
Definition: MonitorData.cc:28
virtual void defineHisto()
Histogram definition.
Definition: MonitorData.cc:44
Abstract base class for different kinds of events.