Belle II Software development
DAQPerf.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
9#ifndef DAQPERF_H
10#define DAQPERF_H
11
12#include <framework/core/Module.h>
13
14#include <sys/time.h>
15
16namespace Belle2 {
24 class DAQPerfModule : public Module {
25
26 // Public functions
27 public:
28
31 virtual ~DAQPerfModule();
32
34 void initialize() override;
35
37 void beginRun() override;
38 void event() override;
39 void endRun() override;
40 void terminate() override;
41
42 // Data members
43 private:
44 timeval m_t0;
45 int m_nevent;
46 int m_ncycle;
47 bool m_mon;
48 double m_totbytes;
49
50 };
51
53} // end namespace Belle2
54
55#endif // MODULEHELLO_H
A class definition of an input module for Sequential ROOT I/O.
Definition: DAQPerf.h:24
void initialize() override
Module functions to be called from main process.
Definition: DAQPerf.cc:46
void event() override
This method is the core of the module.
Definition: DAQPerf.cc:60
void endRun() override
This method is called if the current run ends.
Definition: DAQPerf.cc:97
void terminate() override
This method is called at the end of the event processing.
Definition: DAQPerf.cc:103
DAQPerfModule()
Constructor / Destructor.
Definition: DAQPerf.cc:28
void beginRun() override
Module functions to be called from event process.
Definition: DAQPerf.cc:55
Base class for Modules.
Definition: Module.h:72
Abstract base class for different kinds of events.