Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  30 Aug 2024, Marius Koeppel, Suggestion, Improve Event Documentation 
    Reply  01 Sep 2024, Stefan Ritt, Suggestion, Improve Event Documentation 
       Reply  01 Sep 2024, Marius Koeppel, Suggestion, Improve Event Documentation 
    Reply  02 Sep 2024, Daniel Duque, Suggestion, Improve Event Documentation 
       Reply  02 Sep 2024, Marius Koeppel, Suggestion, Improve Event Documentation 
          Reply  02 Sep 2024, Daniel Duque, Suggestion, Improve Event Documentation 
    Reply  11 Sep 2024, Konstantin Olchanski, Suggestion, Improve Event Documentation 
Message ID: 2835     Entry time: 11 Sep 2024     In reply to: 2814
Author: Konstantin Olchanski 
Topic: Suggestion 
Subject: Improve Event Documentation 
> I am writing a Rust based midas file reader however it was kind of hard to understand the full midas file 
> structure from the documentation.

MIDAS is old-school, when the code was the documentation.

This is very noticeable when you try to document things MIDAS (as I have done many times).

For MIDAS data format, file level and bank level, best if you look at my midasio library (included with MIDAS 
git clone) and translate it to Rust directly. I think a Rust version of C++ midasio would be very welcome.

Many data fields in MIDAS files are mysterious and I reverse-engineered them the best I could.

The main problems were:
- data padding
- "length" fields include padding or not?
- identification of big-endian vs little-endian data
- probably something I forget

K.O.
ELOG V3.1.4-2e1708b5