 |
Belle II Software
release-05-01-25
|
12 #include <framework/core/Module.h>
13 #include <framework/datastore/StoreObjPtr.h>
14 #include <framework/datastore/StoreArray.h>
16 #include <framework/dataobjects/EventMetaData.h>
17 #include <rawdata/dataobjects/RawPXD.h>
37 enum {MAXEVTSIZE = 4 * 1024 * 1024 + 256 * 4 + 16};
49 void event()
override final;
Module to Load BonnDAQ file and store it as RawPXD in Data Store This is meant for lab use (standalon...
void event() override final
This method is the core of the module.
PXDReadRawBonnDAQMatchedModule()
Constructor / Destructor.
int readOneEvent(unsigned int &tnr)
Read event and store it in datastore if trigger nr matches.
std::map< unsigned int, off_t > m_event_offset
map event nr to offsets
void initialize() override final
Initialize the Module.
Abstract base class for different kinds of events.
Type-safe access to single objects in the data store.
void terminate() override final
This method is called at the end of the event processing.
std::string m_filename
File Name.
Accessor to arrays stored in the data store.
std::string m_RawPXDsName
The name of the StoreArray RawPXDs to create.
int read_data(char *data, size_t len)
Read amount of data (len bytes) from file to ptr data.
StoreObjPtr< EventMetaData > m_eventMetaDataPtr
Event Meta Data.
off_t m_last_offset
last checked file offset
StoreArray< RawPXD > m_rawPXD
DHH Data.