Belle II Software development
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
16namespace Belle2 {
21
23
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
53 TH1F* h_ncpr;
54 TH1F* h_nevt;
55 TH1F* h_size;
56 TH2F* h_size2d;
57
58 };
59
61} // end namespace Belle2
62
63#endif // MODULEHELLO_H
HistoModule()
Constructor.
Definition HistoModule.h:32
int m_nevt
No. of sent events.
Definition MonitorData.h:50
void initialize() override
Module functions to be called from main process.
void event() override
This method is the core of the module.
void endRun() override
This method is called if the current run ends.
void terminate() override
This method is called at the end of the event processing.
void beginRun() override
Module functions to be called from event process.
TH1F * h_ncpr
Histograms.
Definition MonitorData.h:53
MonitorDataModule()
Constructor / Destructor.
void defineHisto() override
Histogram definition.
Abstract base class for different kinds of events.