Belle II Software  release-05-02-19
Root2Binary.h
1 //+
2 // File : PrintData.h
3 // Description : Dump basf2 objects to a binary file
4 //
5 // Author : Satoru Yamada, IPNS, KEK
6 // Date : 2 - Aug - 2013
7 //-
8 
9 #ifndef ROOT2BINARY_H
10 #define ROOT2BINARY_H
11 #include <rawdata/modules/PrintDataTemplate.h>
12 //#include <rawdata/modules/CprErrorMessage.h>
13 
14 
15 namespace Belle2 {
24 
25  // Public functions
26  public:
27 
30  virtual ~Root2BinaryModule();
31 
33  virtual void initialize() override;
34 
36  virtual void event() override;
37 
39  virtual void endRun() override;
40 
42  virtual void terminate() override;
43 
45  virtual void writeEvent(RawDataBlock* raw_dblk, int* first_flag, int* break_flag,
46  int* dblk_pos, unsigned int* dblk_eve);
47 
48  protected :
49 
51  FILE* m_fp_out;
52 
54  std::string m_fname_out;
55 
57  // CprErrorMessage print_err;
58 
59  };
60 
62 } // end namespace Belle2
63 
64 #endif // MODULEHELLO_H
Belle2::Root2BinaryModule::writeEvent
virtual void writeEvent(RawDataBlock *raw_dblk, int *first_flag, int *break_flag, int *dblk_pos, unsigned int *dblk_eve)
write the contents of an event
Definition: Root2Binary.cc:66
Belle2::Root2BinaryModule::m_fname_out
std::string m_fname_out
Output filename.
Definition: Root2Binary.h:54
Belle2::Root2BinaryModule::endRun
virtual void endRun() override
This method is called if the current run ends.
Definition: Root2Binary.cc:51
Belle2::Root2BinaryModule::m_fp_out
FILE * m_fp_out
File descripter.
Definition: Root2Binary.h:51
Belle2::Root2BinaryModule::event
virtual void event() override
Module functions to be called from event process.
Definition: Root2Binary.cc:115
Belle2::Root2BinaryModule::Root2BinaryModule
Root2BinaryModule()
Constructor / Destructor.
Definition: Root2Binary.cc:24
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::Root2BinaryModule
Dump basf2 objects to a binary file.
Definition: Root2Binary.h:23
Belle2::Root2BinaryModule::terminate
virtual void terminate() override
This method is called at the end of the event processing.
Definition: Root2Binary.cc:59
Belle2::Root2BinaryModule::initialize
virtual void initialize() override
Module functions to be called from main process.
Definition: Root2Binary.cc:34
Belle2::PrintDataTemplateModule
Module to get data from DataStore and send it to another network node.
Definition: PrintDataTemplate.h:45
Belle2::RawDataBlock
The RawDataBlock class Base class for rawdata handling.
Definition: RawDataBlock.h:27