Data format type information in stored raw data
As we get to including things like ToA
, we should figure out how to indicate in the stored (raw) data what to expect in terms of what fields are present.
For example: we could add a single header at the top of the data files that contains a ~1 byte long field which specifies this type:
Data Type | Type Indicator | Relevant For (?) |
---|---|---|
No timing info | 0x00 | Strips? |
ToT |
0x01 | Fei4, Rd53a |
ToT + ToA
|
0x02 | Rd53b, ... |
And this would more or less indicate the data lengths of the stored hits which is needed for iterating over the data file. Simplest would be to assume the same width for each field that is "wide enough" to future proof the format (e.g. ToT
and ToA
both 16 bits wide).