Belle II Software development
HexDataPacker.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 HEXDATAPACKER_H
10#define HEXDATAPACKER_H
11
12#include <fstream>
13
14#include <framework/core/Module.h>
15#include <framework/datastore/StoreObjPtr.h>
16#include <framework/datastore/StoreArray.h>
17#include <framework/dataobjects/EventMetaData.h>
18
19#include <rawdata/dataobjects/RawCOPPER.h>
20#include <rawdata/dataobjects/RawSVD.h>
21#include <rawdata/dataobjects/RawCDC.h>
22#include <rawdata/dataobjects/RawTOP.h>
23#include <rawdata/dataobjects/RawARICH.h>
24#include <rawdata/dataobjects/RawECL.h>
25#include <rawdata/dataobjects/RawKLM.h>
26#include <rawdata/dataobjects/RawTRG.h>
27
28namespace Belle2 {
35 class HexDataPackerModule : public Module {
36
37 // Public functions
38 public:
39
42
44 virtual ~HexDataPackerModule();
45
47 virtual void initialize() override;
48
50 virtual void event() override;
51
52
53 protected :
56
59
62
65
68
71
74
77
80
83
84 private:
86 std::ifstream m_ifs;
87
89 std::string m_fileName;
90 };
91
93} // end namespace Belle2
94
95#endif // MODULEHELLO_H
Module to store dummy data in RawCOPPER object.
Definition: HexDataPacker.h:35
StoreArray< RawSVD > m_raw_svdarray
RawSVD array.
Definition: HexDataPacker.h:64
StoreArray< RawCDC > m_raw_cdcarray
RawCDC array.
Definition: HexDataPacker.h:67
StoreArray< RawARICH > m_raw_epidarray
RawARICH array.
Definition: HexDataPacker.h:73
virtual void initialize() override
initialization
virtual void event() override
event module
StoreArray< RawKLM > m_raw_klmarray
RawKLM array.
Definition: HexDataPacker.h:79
int n_basf2evt
event counter
Definition: HexDataPacker.h:55
std::string m_fileName
input-file name
Definition: HexDataPacker.h:89
StoreArray< RawCOPPER > m_raw_cprarray
RawCOPPER array.
Definition: HexDataPacker.h:61
StoreArray< RawTRG > m_raw_trgarray
RawARICH array.
Definition: HexDataPacker.h:82
StoreObjPtr< EventMetaData > m_eventMetaDataPtr
Event Meta Data.
Definition: HexDataPacker.h:58
HexDataPackerModule()
Constructor.
virtual ~HexDataPackerModule()
Destructor.
std::ifstream m_ifs
input-file stream
Definition: HexDataPacker.h:86
StoreArray< RawECL > m_raw_eclarray
RawECL array.
Definition: HexDataPacker.h:76
StoreArray< RawTOP > m_raw_bpidarray
RawTOP array.
Definition: HexDataPacker.h:70
Base class for Modules.
Definition: Module.h:72
Accessor to arrays stored in the data store.
Definition: StoreArray.h:113
Type-safe access to single objects in the data store.
Definition: StoreObjPtr.h:96
Abstract base class for different kinds of events.