Belle II Software  release-06-01-15
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 
15 namespace Belle2 {
23 
24  // Public functions
25  public:
28  virtual ~PartialSeqRootReaderModule();
29 
31  virtual void initialize();
32 
34  virtual void beginRun();
35  virtual void event();
36  virtual void endRun();
37  virtual void terminate();
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.
virtual void event()
This method is the core of the module.
PartialSeqRootReaderModule()
Constructor / Destructor.
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.