Keys in the ODB /Logger/Runlog/ASCII subtree: Difference between revisions

From MidasWiki
Jump to navigation Jump to search
(Created page with "==== Links ==== <div style="column-count:3;-moz-column-count:3;-webkit-column-count:3"> * /Logger tree * /Logger ODB tree #Example | examp...")
 
 
(7 intermediate revisions by the same user not shown)
Line 9: Line 9:
<br>
<br>


The ODB <span style="color: purple;">''/Logger/Runlog/ASCII''</span> ODB subtree is a subdirectory of the [[/Logger ODB tree]]. The ODB <span style="color: purple;">''/Logger/Runlog/ASCII''</span> subtree will be created by the MIDAS logger ([[mlogger]]) - see [[Logging to a ASCII file]].


The ODB <span style="color: purple;">''/Logger/Runlog/ASCII''</span> ODB subtree is a subdirectory of the [[/Logger ODB tree]]. The The ODB <span style="color: purple;">''/Logger/Runlog/ASCII''</span> subtree will be created by the MIDAS logger ([[mlogger]]) -
== Keys in the <span style="color: purple;">''/Logger/Runlog/ASCII/subtree</span> ==
This directory in the [[#top|/Logger/Runlog/ASCII subtree]] contains links to parameters in the ODB that are to be saved in the ASCII file at Begin-of-run and or at End-of-run.


== Keys in the <span style="color: purple;">''/Logger/Runlog/ASCII/subtree</span> ==
*    Start time  ( linked to [[/Runinfo ODB tree#Start time|/Runinfo/Start time]])
The following sections explain the purpose of the keys in this subtree.
*    Run number  ( linked to [[/Runinfo ODB tree#Run number|/Runinfo/Run number]] )


The links are created automatically by the MIDAS logger ([[mlogger]]) the first time it runs. The user may add other links as desired.


=== <span style="color: purple;">''Create Database''</span> ===
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3">
* '''Type:''' BOOL
* '''Default:'''  "n"
</div>
<br>
<br>
-----
-------------
<br>
<br>


=== <span style="color: purple;">''Write Data''</span> ===
=== <span style="color: purple;">''Write Data''</span> ===
Line 33: Line 29:
</div>  
</div>  


 
If this key in the [[#top|/Logger/Runlog/ASCII subtree]] is set, the data will be written to the file, provided the MIDAS logger ([[mlogger]]) is also set to write the data - see [[Keys in the ODB /Logger tree #/Logger/Write data |/Logger/Write data key]].  
If this key in the [[#top|/Logger/Runlog/ASCII subtree]] is set, the data will be written to the file....PAASQL database, provided the MIDAS logger ([[mlogger]]) is also set to write the data - see
[[Keys in the ODB /Logger tree #/Logger/Write data |/Logger/Write data key]].
 
<br>
-----
<br>
 
 
=== <span style="color: purple;">''Hostname''</span> ===
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3">
* '''Type:''' STRING
* '''Default:'''  "localhost"
</div>
 
 
This key in the [[#top|/Logger/SQL subtree]] contains the name of the host where the SQL database is located.
 
<br>
-----
<br>
 
 
=== <span style="color: purple;">''Username''</span> ===
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3">
* '''Type:''' STRING
* '''Default:'''  "root"
</div>
 
This key in the [[#top|/Logger/SQL subtree]] contains the username for access to the SQL Database.
 
<br>
-----
<br>
 
 
=== <span style="color: purple;">''Password''</span> ===
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3">
* '''Type:''' STRING
* '''Default:''' 
</div>
This key in the [[#top|/Logger/SQL subtree]] contains  the (encoded) password for access to the SQL Database.
 
<br>
-----
<br>
 
=== <span style="color: purple;">''Database''</span> ===
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3">
* '''Type:''' STRING
* '''Default:'''  <experiment name>
</div>
 
This key in the [[#top|/Logger/SQL subtree]] contains the name of the SQL Database (predefined as the name of the experiment in  ODB Key [[/Experiment ODB tree#Name|/Experiment/Name]]).
 
<br>
-----
<br>
 
=== <span style="color: purple;">''Table''</span> ===
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3">
* '''Type:''' STRING
* '''Default:'''  "Runlog"
</div>
 
 
This key in the [[#top|/Logger/SQL subtree]] contains the name of the table in the SQL Database.


<br>
<br>
Line 115: Line 39:
* '''Type:''' DIR
* '''Type:''' DIR


 
This directory in the [[#top|/Logger/Runlog/ASCII subtree]] contains links to parameters in the ODB that are to be saved in the file defined in the "filename" key at Begin-of-run. The link is created automatically by the MIDAS logger ([[mlogger]]) the first time it runs. The user may add other links as desired.


This directory in the [[#top|/Logger/SQL subtree]] contains links to parameters in the ODB that are to be saved in the SQL Database at Begin-of-run. The links
*    Start time  ( linked to [[/Runinfo ODB tree#Start time|/Runinfo/Start time]] )
 
*    Run number ( linked to [[/Runinfo ODB tree#Run number|/Runinfo/Run number]])
*    Run number  ( linked to [[/Runinfo ODB tree#Run number|/Runinfo/Run number]] )
*    Start time ( linked to [[/Runinfo ODB tree#Start time|/Runinfo/Start time]])
 
are created automatically by the MIDAS logger ([[mlogger]]) the first time it runs. The user may add other links as desired.


<br>
<br>
-----
-----
<br>
<br>


=== <span style="color: purple;">''Links EOR''</span> ===
=== <span style="color: purple;">''Links EOR''</span> ===
Line 133: Line 52:
* '''Type:''' DIR
* '''Type:''' DIR


This directory in the [[#top|/Logger/Runlog/ASCII subtree]] contains links to parameters in the ODB that are to be saved in the file defined in the "filename" keyat End-of-run. The link is created automatically by the MIDAS logger ([[mlogger]]) the first time it runs. The user may add other links as desired.
 
This directory in the [[#top|/Logger/SQL subtree]] contains links to parameters in the ODB that are to be saved in the SQL Database at End-of-run. The link


*    Stop time  ( linked to [[/Runinfo ODB tree#Stop time|/Runinfo/Stop time]] )
*    Stop time  ( linked to [[/Runinfo ODB tree#Stop time|/Runinfo/Stop time]] )
is created automatically by the MIDAS logger ([[mlogger]]) the first time it runs. The user may add other links as desired.


[[Category:Logger Tree]]
[[Category:Logger Tree]]

Latest revision as of 05:35, 11 November 2022

Links



The ODB /Logger/Runlog/ASCII ODB subtree is a subdirectory of the /Logger ODB tree. The ODB /Logger/Runlog/ASCII subtree will be created by the MIDAS logger (mlogger) - see Logging to a ASCII file.

Keys in the /Logger/Runlog/ASCII/subtree

This directory in the /Logger/Runlog/ASCII subtree contains links to parameters in the ODB that are to be saved in the ASCII file at Begin-of-run and or at End-of-run.

The links are created automatically by the MIDAS logger (mlogger) the first time it runs. The user may add other links as desired.




Write Data

  • Type: BOOL
  • Default: "n"

If this key in the /Logger/Runlog/ASCII subtree is set, the data will be written to the file, provided the MIDAS logger (mlogger) is also set to write the data - see /Logger/Write data key.




Links BOR

  • Type: DIR

This directory in the /Logger/Runlog/ASCII subtree contains links to parameters in the ODB that are to be saved in the file defined in the "filename" key at Begin-of-run. The link is created automatically by the MIDAS logger (mlogger) the first time it runs. The user may add other links as desired.




Links EOR

  • Type: DIR

This directory in the /Logger/Runlog/ASCII subtree contains links to parameters in the ODB that are to be saved in the file defined in the "filename" keyat End-of-run. The link is created automatically by the MIDAS logger (mlogger) the first time it runs. The user may add other links as desired.