Belle II Software development
DeSerializerPXD.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 DESERIALIZERPXD_H
10#define DESERIALIZERPXD_H
11
12#include <string>
13#include <vector>
14
15#include <framework/core/Module.h>
16#include <framework/datastore/StoreObjPtr.h>
17#include <framework/datastore/StoreArray.h>
18
19#include <daq/dataflow/EvtSocket.h>
20
21#include <framework/dataobjects/EventMetaData.h>
22#include <rawdata/dataobjects/RawPXD.h>
23
24namespace Belle2 {
33
34 // Public functions
35 public:
36
39 virtual ~DeSerializerPXDModule();
40
42 void initialize() override;
43
45 void beginRun() override;
46 void event() override;
47 void endRun() override;
48 void terminate() override;
49
50 // Data members
51 private:
52
53 // DataStore interface
54 StoreArray<RawPXD> rawpxdary;
55
56 // Parallel processing parameters
57
58 // Event Meta Data
59 StoreObjPtr<EventMetaData> m_eventMetaDataPtr;
60
62 std::vector<int> m_ports;
63
65 std::vector<std::string> m_hosts;
66
68 std::vector<EvtSocketSend*> m_recvs;
69
72
75
78
79 // For monitoring
80 // int events_processed;
81
82 };
83
85} // end namespace Belle2
86
87#endif // DESERIALIZERPXD_H
A class definition of an input module for Sequential ROOT I/O.
void initialize() override
Module functions to be called from main process.
void event() override
This method is the core of the module.
void endRun() override
This method is called if the current run ends.
void terminate() override
This method is called at the end of the event processing.
DeSerializerPXDModule()
Constructor / Destructor.
void beginRun() override
Module functions to be called from event process.
std::vector< int > m_ports
Receiver Port.
int m_compressionLevel
Compression Level.
std::vector< EvtSocketSend * > m_recvs
Receiver Sockets.
std::vector< std::string > m_hosts
Sender Names.
int m_nEvents
No. of rcvd events.
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.