Belle II Software  release-05-02-19
Ds2RawFileModule.h
1 //+
2 // File : Ds2RawFileModule.h
3 // Description : Stream DataStore contents and place in in RingBuffer
4 //
5 // Author : Ryosuke Itoh, IPNS, KEK
6 // Date : 26 - Apr - 2012
7 //-
8 
9 #ifndef Belle2_Ds2RawFileModule_h
10 #define Belle2_Ds2RawFileModule_h
11 
12 #include <framework/core/Module.h>
13 
14 #include <framework/pcore/DataStoreStreamer.h>
15 
16 #define RBUFSIZE 100000000
17 #define HLT_SUBSYS_ID 300
18 
19 namespace Belle2 {
30  class Ds2RawFileModule : public Module {
31 
32  // Public functions
33  public:
34 
37  virtual ~Ds2RawFileModule();
38 
40  virtual void initialize();
41 
43  virtual void beginRun();
44  virtual void event();
45  virtual void endRun();
46  virtual void terminate();
47 
48  // Data members
49  private:
50 
53 
55  //std::string m_rbufname;
56  //RingBuffer* m_rbuf;
57 
60 
62  int m_nsent;
63  int m_file;
64 
65  };
66 
68 } // end namespace Belle2
69 
70 #endif // MODULEHELLO_H
Belle2::Ds2RawFileModule::m_nsent
int m_nsent
No. of sent events.
Definition: Ds2RawFileModule.h:62
Belle2::Ds2RawFileModule::initialize
virtual void initialize()
Module functions to be called from main process.
Definition: Ds2RawFileModule.cc:57
Belle2::Ds2RawFileModule::event
virtual void event()
This method is the core of the module.
Definition: Ds2RawFileModule.cc:78
Belle2::Ds2RawFileModule::m_streamer
DataStoreStreamer * m_streamer
RingBuffer ID.
Definition: Ds2RawFileModule.h:59
Belle2::Ds2RawFileModule::terminate
virtual void terminate()
This method is called at the end of the event processing.
Definition: Ds2RawFileModule.cc:141
Belle2::Ds2RawFileModule::endRun
virtual void endRun()
This method is called if the current run ends.
Definition: Ds2RawFileModule.cc:132
Belle2::Module
Base class for Modules.
Definition: Module.h:74
Belle2::Ds2RawFileModule
A class definition of an input module for Sequential ROOT I/O.
Definition: Ds2RawFileModule.h:30
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::Ds2RawFileModule::m_compressionLevel
int m_compressionLevel
Compression parameter.
Definition: Ds2RawFileModule.h:52
Belle2::Ds2RawFileModule::beginRun
virtual void beginRun()
Module functions to be called from event process.
Definition: Ds2RawFileModule.cc:72
Belle2::DataStoreStreamer
Stream/restore DataStore objects to/from EvtMessage.
Definition: DataStoreStreamer.h:33
Belle2::Ds2RawFileModule::Ds2RawFileModule
Ds2RawFileModule()
Constructor / Destructor.
Definition: Ds2RawFileModule.cc:34