Belle II Software  release-05-02-19
rawinputModule.h
1 //+
2 // File : rawinput.h
3 // Description : Sequential ROOT I/O input module
4 //
5 // Author : Ryosuke Itoh, IPNS, KEK
6 // Date : 2 - Dec - 2013
7 //-
8 
9 #ifndef RAW_INPUT_H
10 #define RAW_INPUT_H
11 
12 #include <framework/core/Module.h>
13 
14 #include <framework/datastore/StoreObjPtr.h>
15 #include <framework/datastore/StoreArray.h>
16 
17 #include <string>
18 
19 #include <daq/rawdata/modules/DAQConsts.h>
20 #include <rawdata/dataobjects/RawCDC.h>
21 #include <rawdata/dataobjects/RawSVD.h>
22 #include <rawdata/dataobjects/RawECL.h>
23 #include <rawdata/dataobjects/RawARICH.h>
24 #include <rawdata/dataobjects/RawTOP.h>
25 #include <rawdata/dataobjects/RawKLM.h>
26 #include <rawdata/dataobjects/RawFTSW.h>
27 #include <rawdata/dataobjects/RawTRG.h>
28 #include <rawdata/dataobjects/RawCOPPER.h>
29 
30 #include <framework/dataobjects/EventMetaData.h>
31 
32 #define RBUFSIZE 100000000
33 #define MAXEVTSIZE 10000000
34 
35 namespace Belle2 {
42  class RawInputModule : public Module {
43 
44  // Public functions
45  public:
46 
49  virtual ~RawInputModule();
50 
52  virtual void initialize();
53 
55  virtual void beginRun();
56  virtual void event();
57  virtual void endRun();
58  virtual void terminate();
59 
60  private:
62  void registerRawCOPPERs();
63 
64  // Data members
65  private:
67  std::string m_inputFileName;
68 
70  int m_fd;
71 
73  int m_nevt;
74 
86  };
88 } // end namespace Belle2
89 
90 #endif
Belle2::RawInputModule::m_rawSVD
StoreArray< RawSVD > m_rawSVD
RawSVD.
Definition: rawinputModule.h:79
Belle2::RawInputModule::m_rawARICH
StoreArray< RawARICH > m_rawARICH
RawARICH.
Definition: rawinputModule.h:82
Belle2::RawInputModule::m_rawDataBlock
StoreArray< RawDataBlock > m_rawDataBlock
RawDataBlock.
Definition: rawinputModule.h:76
Belle2::RawInputModule::m_rawTRG
StoreArray< RawTRG > m_rawTRG
RawTRG.
Definition: rawinputModule.h:84
Belle2::RawInputModule::m_fd
int m_fd
File handle.
Definition: rawinputModule.h:70
Belle2::RawInputModule::m_rawTOP
StoreArray< RawTOP > m_rawTOP
RawTOP.
Definition: rawinputModule.h:80
Belle2::RawInputModule::RawInputModule
RawInputModule()
Constructor / Destructor.
Definition: rawinputModule.cc:29
Belle2::RawInputModule::initialize
virtual void initialize()
Module functions to be called from main process.
Definition: rawinputModule.cc:49
Belle2::RawInputModule::event
virtual void event()
This method is the core of the module.
Definition: rawinputModule.cc:95
Belle2::Module
Base class for Modules.
Definition: Module.h:74
Belle2::RawInputModule::terminate
virtual void terminate()
This method is called at the end of the event processing.
Definition: rawinputModule.cc:230
Belle2::RawInputModule::registerRawCOPPERs
void registerRawCOPPERs()
function to read raw data
Definition: rawinputModule.cc:104
Belle2::RawInputModule::beginRun
virtual void beginRun()
Module functions to be called from event process.
Definition: rawinputModule.cc:88
Belle2::RawInputModule::m_rawCDC
StoreArray< RawCDC > m_rawCDC
RawCDC.
Definition: rawinputModule.h:78
Belle2::RawInputModule::m_rawECL
StoreArray< RawECL > m_rawECL
RawECL.
Definition: rawinputModule.h:81
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::StoreObjPtr
Type-safe access to single objects in the data store.
Definition: ParticleList.h:33
Belle2::RawInputModule::m_rawCOPPER
StoreArray< RawCOPPER > m_rawCOPPER
RawCOPPER.
Definition: rawinputModule.h:77
Belle2::RawInputModule::m_eventMetaData
StoreObjPtr< EventMetaData > m_eventMetaData
EventMetaData.
Definition: rawinputModule.h:75
Belle2::RawInputModule
A class definition of an input module for Sequential ROOT I/O.
Definition: rawinputModule.h:42
Belle2::RawInputModule::m_inputFileName
std::string m_inputFileName
File name.
Definition: rawinputModule.h:67
Belle2::StoreArray
Accessor to arrays stored in the data store.
Definition: ECLMatchingPerformanceExpertModule.h:33
Belle2::RawInputModule::m_nevt
int m_nevt
Total nr. of events in the file.
Definition: rawinputModule.h:73
Belle2::RawInputModule::endRun
virtual void endRun()
This method is called if the current run ends.
Definition: rawinputModule.cc:224
Belle2::RawInputModule::m_rawKLM
StoreArray< RawKLM > m_rawKLM
RawKLM.
Definition: rawinputModule.h:83
Belle2::RawInputModule::m_rawFTSW
StoreArray< RawFTSW > m_rawFTSW
RawFTSW.
Definition: rawinputModule.h:85