Belle II Software development
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
16namespace Belle2 {
23 class SeqRootMergerModule : public Module {
24
25 // Public functions
26 public:
29 virtual ~SeqRootMergerModule();
30
32 void initialize() override;
33
35 void beginRun() override;
36 void event() override;
37 void endRun() override;
38 void terminate() override;
39
40 private:
41 int readFile();
42
43 private:
44 std::vector<SeqFile*> m_file;
45 DataStoreStreamer* m_streamer;
46
47 };
48
50} // end namespace Belle2
51
52#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.
void initialize() override
Module functions to be called from main process.
void event() override
This method is the core of the module.
void endRun() override
This method is called if the current run ends.
void terminate() override
This method is called at the end of the event processing.
void beginRun() override
Module functions to be called from event process.
Abstract base class for different kinds of events.