Belle II Software development
MonitorDataCOPPER.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_DATACOPPER_H
9#define MONITOR_DATACOPPER_H
10
11#include <stdlib.h>
12#include <sys/time.h>
13
14#include <framework/core/HistoModule.h>
15
16#include "TH1F.h"
17
18namespace Belle2 {
27
28 // Public functions
29 public:
30
34
36 void initialize() override;
37
39 void event() override;
40
42 void defineHisto() override;
43 virtual double getTimeSec();
44 // Data members
45
46 private:
47
49 int m_loop;
50
51 TH1* h_size;
52 TH1* h_nevt;
53 TH1* h_rate;
54 TH1* h_diff;
55
56 int m_nevt;
57
58 timeval m_tv;
59 double m_start_time;
60
61
62 };
63
65} // end namespace Belle2
66
67#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.
void initialize() override
Module functions to be called from main process.
void event() override
Module functions to be called from event process.
int m_loop
No. of sent events.
MonitorDataCOPPERModule()
Constructor / Destructor.
void defineHisto() override
Histogram definition.
Abstract base class for different kinds of events.