Skip to content
Andrey Pozdnyakov edited this page Apr 7, 2017 · 10 revisions

Here we should document the dataformat of ORM/SkiRocs data.
The format of the 4 SkiRoc data would probably be fixed to the one given by Alessandro, so we should only worry about the header added at the ORM level. At the moment we don't have that, but we can define one by ourselves (to be used in fake data generation)

Version 1

  • Header
Var type bytes Description
Version unsigned char 1 A small number to indicate the version of the dataformat being used.
This is to account for the possible change between different beam tests.
Char (=0) unsigned char 1 Just another char reserved for some other ID (just so have total number of bytes dividable by 4)
Board ID unsigned short 2 HexaBoard ID
Event number unsigned int 4 Event number since the begin of RUN
Trigger ID unsigned int 4 Triggers since the begin of RUN.
Not clear if that would be possible. However it would be nice if ORM could count all incoming triggers and for each event tell the ID. This would help to synchronize the data
Timestamp unsigned long long 8 If possible we would like to have a timestamp with nanosecond precision (maybe even picoseconds?). This could be an absolute value or the time since the begin of RUN.
Total 20 This is 5 words of 32-bits (used by IPbus transmission)
  • Data
Var type bytes Description
data[] array of unsigned chars 30787 Raw data from 4 skiroc chips
0xFF one byte 1 Let's add 1 byte at the end to make the total be even
Total 30788 This is 7697 words of 32-bits
Clone this wiki locally