Belle II Software  release-06-02-00
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 
17 namespace Belle2 {
25  class Root2RawModule : public Module {
26 
27  // Public functions
28  public:
29 
32  virtual ~Root2RawModule();
33 
35  virtual void initialize();
36 
38  virtual void event();
39 
41  virtual void endRun();
42 
44  virtual void terminate();
45 
46  protected :
48  int m_file;
49  std::string m_filename;
50 
51  };
52 
54 } // end namespace Belle2
55 
56 #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
virtual void event()
Module functions to be called from event process.
Definition: Root2Raw.cc:79
virtual void initialize()
Module functions to be called from main process.
Definition: Root2Raw.cc:51
Root2RawModule()
Constructor / Destructor.
Definition: Root2Raw.cc:42
virtual void terminate()
This method is called at the end of the event processing.
Definition: Root2Raw.cc:72
virtual void endRun()
This method is called if the current run ends.
Definition: Root2Raw.cc:64
Abstract base class for different kinds of events.