Belle II Software  release-06-01-15
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  virtual void initialize();
37 
39  virtual void beginRun();
40  virtual void event();
41  virtual void endRun();
42  virtual void terminate();
43 
45  virtual void defineHisto();
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.
virtual void event()
Function to process event record.
virtual void initialize()
Module functions to be called from main process.
virtual void beginRun()
Module functions to be called from event process.
virtual void terminate()
Function to terminate module.
virtual void endRun()
Function to process end_run record.
int m_loop
No. of sent events.
MonitorDataCOPPERModule()
Constructor / Destructor.
virtual void defineHisto()
Histogram definition.
Abstract base class for different kinds of events.