Belle II Software development
DeSerializerFILE.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 DESERIALIZERFILE_H
10#define DESERIALIZERFILE_H
11
12#include <daq/rawdata/modules/DeSerializerCOPPER.h>
13#include <rawdata/dataobjects/RawCOPPER.h>
14#include <rawdata/dataobjects/RawCDC.h>
15#include <rawdata/dataobjects/RawSVD.h>
16#include <rawdata/dataobjects/RawECL.h>
17#include <rawdata/dataobjects/RawARICH.h>
18#include <rawdata/dataobjects/RawTOP.h>
19#include <rawdata/dataobjects/RawKLM.h>
20
21namespace Belle2 {
30
31 // Public functions
32 public:
33
37
39 void initialize() override;
40
42 void event() override;
43
45 virtual void fileOpen();
46
48 virtual int* readOneDataBlock(int* delete_flag, int* m_size_word, int* data_type);
49
51 virtual int* readfromFILE(FILE* fp_in, const int size_word, const int start_word, const int stop_word);
52
53
54 protected :
55
56 enum {
57 RAW_DATABLOCK = 0, // RawDataBlock
58 COPPER_DATABLOCK = 1 // Data from COPPER ( the 1st word should be 0x7fff0008 )
59 };
60
62 FILE* m_fp_in;
63
74 int* m_prev_buf;
75
77 int m_prev_buf_flag;
78
80 int m_dummy_evenum;
81
83 int m_repetition_max;
84
86 int m_repetition_cnt;
87
89 std::string m_fname_in;
90
93
94
95 };
96
98} // end namespace Belle2
99
100#endif // MODULEHELLO_H
A class definition of an input module for Sequential ROOT I/O.
A class definition of an input module for Sequential ROOT I/O.
virtual int * readfromFILE(FILE *fp_in, const int size_word, const int start_word, const int stop_word)
read data from file
StoreArray< RawSVD > m_rawSVD
RawSVD.
void initialize() override
Module functions to be called from main process.
void event() override
Module functions to be called from event process.
PostRawCOPPERFormat_latest m_tmp_header
a class to handle data from a file
StoreArray< RawCOPPER > m_rawCOPPER
RawCOPPER.
StoreArray< RawARICH > m_rawARICH
RawARICH.
StoreArray< RawKLM > m_rawKLM
RawKLM.
StoreArray< RawTOP > m_rawTOP
RawTOP.
DeSerializerFILEModule()
Constructor / Destructor.
StoreArray< RawDataBlock > m_rawDataBlock
RawDataBlock.
StoreArray< RawECL > m_rawECL
RawECL.
virtual int * readOneDataBlock(int *delete_flag, int *m_size_word, int *data_type)
receive data
StoreArray< RawCDC > m_rawCDC
RawCDC.
virtual void fileOpen()
open a file
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Abstract base class for different kinds of events.