Belle II Software development
Root2Raw.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 ROOT2RAW_H
10#define ROOT2RAW_H
11
12#include <framework/core/Module.h>
13
14#define MAXEVTSIZE 4000000
15
16
17namespace Belle2 {
25 class Root2RawModule : public Module {
26
27 // Public functions
28 public:
29
32 virtual ~Root2RawModule();
33
35 void initialize() override;
36
38 void event() override;
39
41 void endRun() override;
42
44 void terminate() override;
45
46 protected :
48 int m_file;
49 std::string m_filename;
50 int m_expno;
51 int m_runno;
52
53 };
54
56} // end namespace Belle2
57
58#endif // MODULEHELLO_H
Base class for Modules.
Definition: Module.h:72
A class definition of an input module for Sequential ROOT I/O.
Definition: Root2Raw.h:25
Root2RawModule()
Constructor / Destructor.
Definition: Root2Raw.cc:42
void initialize() override
Module functions to be called from main process.
Definition: Root2Raw.cc:53
void event() override
Module functions to be called from event process.
Definition: Root2Raw.cc:81
void endRun() override
This method is called if the current run ends.
Definition: Root2Raw.cc:66
void terminate() override
This method is called at the end of the event processing.
Definition: Root2Raw.cc:74
Abstract base class for different kinds of events.