Belle II Software development
Root2Binary.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 ROOT2BINARY_H
10#define ROOT2BINARY_H
11#include <rawdata/modules/PrintDataTemplate.h>
12//#include <rawdata/modules/CprErrorMessage.h>
13
14
15namespace Belle2 {
24
25 // Public functions
26 public:
27
31 virtual ~Root2BinaryModule();
32
34 virtual void initialize() override;
35
37 virtual void event() override;
38
40 virtual void endRun() override;
41
43 virtual void terminate() override;
44
46 virtual void writeEvent(RawDataBlock* raw_dblk, int* first_flag, int* break_flag,
47 int* dblk_pos, unsigned int* dblk_eve);
48
49 protected :
50
52 FILE* m_fp_out;
53
55 std::string m_fname_out;
56
58 // CprErrorMessage print_err;
59
60 };
61
63} // end namespace Belle2
64
65#endif // MODULEHELLO_H
Module to get data from DataStore and send it to another network node.
The RawDataBlock class Base class for rawdata handling.
Definition: RawDataBlock.h:27
Dump basf2 objects to a binary file.
Definition: Root2Binary.h:23
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:67
Root2BinaryModule()
Constructor.
Definition: Root2Binary.cc:25
FILE * m_fp_out
File descripter.
Definition: Root2Binary.h:52
virtual void initialize() override
Called at the beginning of data processing.
Definition: Root2Binary.cc:35
virtual void event() override
Called for each event.
Definition: Root2Binary.cc:116
virtual ~Root2BinaryModule()
Destructor.
Definition: Root2Binary.cc:31
virtual void endRun() override
Called if the current run ends.
Definition: Root2Binary.cc:52
virtual void terminate() override
Called at the end of data processing.
Definition: Root2Binary.cc:60
std::string m_fname_out
Output filename.
Definition: Root2Binary.h:55
Abstract base class for different kinds of events.