Belle II Software development
PXDReadRawBonnDAQ.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#pragma once
10
11#include <framework/core/Module.h>
12#include <framework/datastore/StoreObjPtr.h>
13#include <framework/datastore/StoreArray.h>
14
15#include <pxd/unpacking/PXDLocalDAQFile.h>
16
17#include <string>
18#include <stdlib.h>
19
20
21namespace Belle2 {
26 class EventMetaData;
27 class RawPXD;
28
29 namespace PXD {
32 class PXDReadRawBonnDAQModule final : public Module {
33 enum {MAXEVTSIZE = 4 * 1024 * 1024 + 256 * 4 + 16};
34
35 public:
38
39 private:
41 ~PXDReadRawBonnDAQModule() override final;
42
44 void initialize() override final;
45
47 void event() override final;
48
50 void terminate() override final;
51
52 // Data members
53
56
59
61 std::string m_filename;
62
65
68
69 unsigned int m_expNr;
70 unsigned int m_runNr;
71 unsigned int m_subRunNr;
72
73 int readOneEvent(void);
74
75 };
76
77 } // end namespace PXD
79} // end namespace Belle2
80
Store event, run, and experiment numbers.
Module()
Constructor.
Definition Module.cc:30
A class to manage I/O for a chain of blocked files.
void initialize() override final
Initialize.
void terminate() override final
Terminate.
~PXDReadRawBonnDAQModule() override final
Destructor.
StoreObjPtr< EventMetaData > m_eventMetaDataPtr
Event Meta Data.
PXDLocalDAQFile * fh
File handle.
StoreArray< RawPXD > m_rawPXD
DHH Data.
The Raw PXD class.
Definition RawPXD.h:27
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
Namespace to encapsulate code needed for simulation and reconstrucion of the PXD.
Abstract base class for different kinds of events.