Introduction
EventStorage package contains a library used by several DAQ
applications to write data files. The library is also
used by offline software to write simulation output in the form of
ByteStream.
- the EventStorage library is dealing with the files (and their format) in which we store events. The document describing the library and the content of each Raw File (header, metadata content, filename conventions, etc) is found at: https://edms.cern.ch/document/580290/7
- The format of the individual events themselves are following the eformat document: https://edms.cern.ch/document/445840/5.0a
The corresponding implementation is in the eformat library.
This package also contains an interface for reading data files
(DataReader) and some implementations of it. Those are used by the
Offline Software and by test programs of the DAQ.
Changes since tdaq-common-01-28-00
-
The Datawriter interface has been extended to accept a 128-bit wide detector mask. This was achieved updating the
EventStorage::run_parameters_record
struct:
struct run_parameters_record {
uint32_t marker;
uint32_t record_size;
uint32_t run_number;
uint32_t max_events;
uint32_t rec_enable;
uint32_t trigger_type;
uint64_t detector_mask_LS;
uint64_t detector_mask_MS;
uint32_t beam_type;
uint32_t beam_energy;
};
detector_mask_LS
and detector_mask_LS
respectively represent the least significant and most significant 64 bits of the detector mask.
-
The library now implements version 6 of the file format as documented in the link provided above. Reading files using the previous format is transparently supported.