Logging to a ASCII file
Jump to navigation
Jump to search
Links
The MIDAS logger (mlogger) is able to record information in an ASCII file.
Under two dedicated subdirectories Links BOR and Links EOR , predefined links exist which will be used at begin-of-run (BOR) and end-of-run (EOR) respectively for storing parameter values into an ASCII file. These elements are ODB links allowing the user to extend the list with any parameter in the ODB database.
The following example shows a /Logger/Runlog/ASCII tree as created by mlogger. See ODB /Logger/Runlog/ASCII subtree for an explanation of the meaning of each key.
Example /Logger/Runlog/ASCII subtree
[local:midas]Runlog>ls -lr ASCII
Key name Type #Val Size Last Opn Mode Value
ASCII DIR
Write data BOOL 1 4 >99d 0 RWD n filename STRING 1 80 >99d 0 RWD runlog.log Links BOR DIR Run number -> /Runinfo/Run number INT32 1 4 11h 0 RWD 1517 Start time -> /Runinfo/Start time STRING 1 32 11h 0 RWD Mon Oct 31 13:39:21 2022 Links EOR DIR Stop time -> /Runinfo/Stop time STRING 1 32 3h 0 RWD Tue Nov 8 09:27:59 2022 Comment -> /Experiment/Edit on start/Comment STRING 1 128 11h 0 RWD FEP Hit Finder