Merged File Format
File Structure
File Version(8 bytes) |
|
Packet Header (12 bytes) |
Packet Data Blocks (Packet1.Size-12 bytes) |
Packet Header (12 bytes) |
Packet Data Blocks (Packet2.Size-12 bytes) |
... |
... |
The file consists of packets. Each packet starts with header, contained packet data block type and its length of data with header and payload. Header specifies the type of data block and packet size.
File Version
offset |
size, bytes |
type |
name |
description |
0 |
8 |
char[8] |
Version name |
Specific name to determine file format verion |
1. 0x4d657267 0x64643031 Merged01
Packet Header
offset |
size, bytes |
type |
name |
description |
0 |
4 |
int |
Id |
block Type Id |
4 |
8 |
int |
Size |
packet size, bytes, including header |
Packet Data Blocks
There are four types of data blocks:
- Vme configuration Block
- Hrb configuration Block
- Event Block
Vme configuration (Type Id: 2)
Contains raw vme-configuration file wich can be read with ...
Hrb configuration (Type Id: 5)
Contains ini-file with configuration for hrb-system
Event (Type Id: 3)
Consists of event's summary and a number of sub-blocks:
Vme event (Type Id: 4)
Data started with <EHDR> and ended with <ETRL>
Hrb event (Type Id: 0xBC)
- Data started with 'Device serial Id' and ended with 'Sample N'
offset |
size, bytes |
type |
name |
description |
0 |
4 |
int |
evNum |
Event Number |
4 |
8 |
ulonglong |
evTs |
[64bit] Event time in nanosec from 1 Jan 1970 (UTC) |
12 |
12 |
sub-block header |
header1 |
sub-block header |
24 |
size1-12 |
sub-block data |
data1 |
sub-block data |
12+size1 |
12 |
sub-block header |
header2 |
sub-block header |
24+size1 |
size2-12 |
sub-block data |
data2 |
sub-block data |
... |