Belle II Software development
PartialSeqRootReader.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 PARTIALSEQROOTREADER_H
10#define PARTIALSEQROOTREADER_H
11
12#include <framework/core/Module.h>
13#include <framework/pcore/DataStoreStreamer.h>
14
15namespace Belle2 {
23
24 // Public functions
25 public:
29
31 void initialize() override;
32
34 void beginRun() override;
35 void event() override;
36 void endRun() override;
37 void terminate() override;
38
39 private:
40 int openFile(int fileno);
41 int readFile();
42
43 private:
44 std::string m_path;
45 int m_fd;
46 int m_filemin;
47 int m_filemax;
48 char* m_buf;
49 int m_fileno;
50 DataStoreStreamer* m_streamer;
51
52 };
53
55} // end namespace Belle2
56
57#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.
PartialSeqRootReaderModule()
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.