Belle II Software  release-06-01-15
SeqRootMergerModule.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 SEQROOTMERGER_H
10 #define SEQROOTMERGER_H
11 
12 #include <framework/core/Module.h>
13 #include <framework/pcore/DataStoreStreamer.h>
14 #include <framework/pcore/SeqFile.h>
15 
16 namespace Belle2 {
26  class SeqRootMergerModule : public Module {
27 
28  // Public functions
29  public:
32  virtual ~SeqRootMergerModule();
33 
35  virtual void initialize();
36 
38  virtual void beginRun();
39  virtual void event();
40  virtual void endRun();
41  virtual void terminate();
42 
43  private:
44  int readFile();
45 
46  private:
47  std::vector<SeqFile*> m_file;
48  DataStoreStreamer* m_streamer;
49 
50  };
51 
53 } // end namespace Belle2
54 
55 #endif // MODULEHELLO_H
Stream/restore DataStore objects to/from EvtMessage.
Base class for Modules.
Definition: Module.h:72
A class definition of an input module for Sequential ROOT I/O.
SeqRootMergerModule()
Constructor / Destructor.
virtual void event()
This method is the core of the module.
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()
This method is called at the end of the event processing.
virtual void endRun()
This method is called if the current run ends.
Abstract base class for different kinds of events.