Features

From MidasWiki
Revision as of 17:52, 12 July 2017 by Stefan Ritt (talk | contribs)
Jump to navigation Jump to search

July 2017 Stefan Visit

Creation of run log file

A run log contains information about individual runs, such as start/stop time, number of events, hardware settings etc. One possibility is to write the run log to a MySQL database through the ODB settings as described under Logging to a mySQL database. A new feature has been added to write directly to an ASCII file, which can be viewed in the message web page. The ODB structure has been changed in the following way:

  • /Logger/SQL has been move to /Logger/Runlog/SQL for writing to the SQL database
  • A new /Logger/Runlog/ASCII directory is there to write directly to an ASCII file

The ODB variables for the ASCII runlog directory are:

  • Write data - flag to enable/disable writing
  • Filename - file name to write to. If the file name does not contain an explicit path, the default log directory from the odb (/Logger/Data dir) is used.
  • Links BOR - collection of links to ODB values to be written at the begin-of-run
  • Links EOR - collection of links to ODB values to be written at the end-of-run

If no "Runlog" subdirectory exists, the logger creates a default one which contains the run number, start time, stop time and number of events in the run.