Belle II Software  release-08-01-10
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 
18 namespace Belle2 {
27 
28  // Public functions
29  public:
30 
33  virtual ~MonitorDataCOPPERModule();
34 
36  void initialize() override;
37 
39  void beginRun() override;
40  void event() override;
41  void endRun() override;
42  void terminate() override;
43 
45  void defineHisto() override;
46  virtual double getTimeSec();
47  // Data members
48 
49  private:
50 
52  int m_loop;
53 
54  int* m_buffer;
55 
56  TH1* h_size;
57  TH1* h_nevt;
58  TH1* h_rate;
59  TH1* h_diff;
60  TH1* h_hslb_size[4];
61  TH1* h_hslb_nevt;
62  TH1* h_hslb_rate;
63 
64  int m_nevt;
65  int m_prev_nevt;
66 
67  timeval m_tv;
68  double m_start_time;
69  double m_prev_time;
70 
71 
72  };
73 
75 } // end namespace Belle2
76 
77 #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
Function to process event record.
void endRun() override
Function to process end_run record.
void terminate() override
Function to terminate module.
void beginRun() 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.