Belle II Software development
PrintEventRate.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 PRINTEVENTRATE_H
10#define PRINTEVENTRATE_H
11
12#include <framework/core/Module.h>
13
14#include <framework/dataobjects/EventMetaData.h>
15#include <framework/datastore/StoreArray.h>
16#include <framework/datastore/StoreObjPtr.h>
17
18#include <rawdata/dataobjects/RawDataBlock.h>
19#include <rawdata/dataobjects/RawFTSW.h>
20#include <rawdata/dataobjects/RawTLU.h>
21#include <rawdata/dataobjects/RawCOPPER.h>
22#include <rawdata/dataobjects/RawSVD.h>
23#include <rawdata/dataobjects/RawCDC.h>
24#include <rawdata/dataobjects/RawTOP.h>
25#include <rawdata/dataobjects/RawARICH.h>
26#include <rawdata/dataobjects/RawECL.h>
27#include <rawdata/dataobjects/RawKLM.h>
28#include <rawdata/dataobjects/RawPXD.h>
29#include <rawdata/dataobjects/RawTRG.h>
30
31
32namespace Belle2 {
41
42 // Public functions
43 public:
44
47
49 virtual ~PrintEventRateModule();
50
52 virtual void event() override;
53
55 virtual void initialize() override;
56
58 virtual void endRun() override;
59
61 virtual void printCOPPEREvent(RawCOPPER* raw_array, int i);
62
63 protected:
64
66 int m_run;
67
70
72 unsigned int m_cur_utime;
73
75 unsigned int m_cur_event;
76
78 unsigned int m_start_utime;
79
81 unsigned int m_start_event;
82
84 unsigned int m_prev_utime;
85
87 unsigned int m_prev_event;
88
90 int m_size;
91
93 int m_cpr;
94
97
100
103
106
109
112
115
118
120 unsigned int m_n_basf2evt;
121
124
127
130
133
136
139
142
145
146 };
147
149} // end namespace Belle2
150
151#endif // MODULEHELLO_H
Base class for Modules.
Definition: Module.h:72
Print event rate of input data.
virtual ~PrintEventRateModule()
Destructor.
unsigned int m_start_utime
unixtime at the beginning
unsigned int m_prev_event
previous event number
virtual void initialize() override
Module function to be called from main process.
unsigned int m_cur_utime
current unixtime
virtual void event() override
Module function to be called from event process.
double m_prev_tot_bytes
previous value of processed data size
virtual void endRun() override
Module function to be called after main process.
unsigned int m_start_event
the first event number
int m_first_evt
first event number
double m_tot_bytes
total processed data size
virtual void printCOPPEREvent(RawCOPPER *raw_array, int i)
print an event
StoreObjPtr< EventMetaData > m_eventMetaDataPtr
Event Meta Data.
unsigned int m_cur_event
current event number
unsigned int m_prev_utime
previous unixtime
int m_print_interval
output interval
The Raw COPPER class This class stores data received by COPPER via belle2linkt Data from all detector...
Definition: RawCOPPER.h:52
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.