Odbhist: Difference between revisions

From MidasWiki
Jump to navigation Jump to search
(Created page with "{{Pagelinks}} ==== Links ==== <div style="column-count:2;-moz-column-count:2;-webkit-column-count:2"> * /Logger tree * Keys in the ODB /Logger/Channel...")
 
(The midas documentation has moved to https://midas.triumf.ca/docs/)
Tag: Replaced
 
Line 1: Line 1:
{{Pagelinks}}
The midas documentation has moved. See [https://midas.triumf.ca/docs/develop/reference/reference/programs/#odbhist odbhist] in Programs and options for the new documentation about the odbhist program.
==== Links ====
<div style="column-count:2;-moz-column-count:2;-webkit-column-count:2">
* [[/Logger ODB tree| /Logger tree]]
* [[Keys in the ODB /Logger/Channels subtree]]
</div>
 
 
== Purpose ==
<span style="color:darkcyan;">''odbhist''</span> is a MIDAS history display utility, printing an ODB variable from a saved .odb or .mid file for a range of run numbers.
 
== Arguments ==
 
      [-r <run1> <run2> ]  : Range of run numbers (inclusive)
      [-v <varname>[index]]: ODB variable name like <span style="color: purple;font-style:italic;">/Runinfo/Run number</span>
                              Index will be present if <varname> is an array
      [-f <file> ]        : Format of odb file name (''run%05d.odb'' by default) '''see Note 1'''
      [-e <file> ]        : Extract ODB contents from MID file (of format
                                ''run%05d.mid'' by default) '''see Note 2'''
      [-q]                : Don't display run number
      [-a]                : Add numbers for all runs
      [-c <filename>]      : Load configuration from file
                              (parameters loaded from a configuration file will be
                              overwritten by parameters from command line)
 
<dl>
<dt>Note 1</dt>
<dd>
The ODB can be dumped into an ODB to an ASCII or XML file on disk at the end of the run - see
[[Keys in the ODB /Logger tree #/Logger/ODB Dump  |/Logger/ODB Dump]] key. The filename format is defined by the key  [[Keys in the ODB /Logger tree #/Logger/ODB Dump File |/Logger/ODB Dump File]].
 
</dd>
<dt>Note 2</dt>
<dd> The dump of the ODB into the event stream for this logger channel is controlled by the ODB key in the   {{Odbpath|path=/Logger/Channels}} subtree [[Keys in the ODB /Logger/Channels tree #ODB Dump|ODB Dump]]. The filename format of the saved [[Event Structure|MIDAS format]] MID file is defined by the key [[Keys in the ODB /Logger/Channels tree #Filename|Filename]], also in the {{Odbpath|path=/Logger/Channels}} subtree.
</dd>
</dl>
== Usage ==
 
>odbhist -r <run1> <run2> -v <varname>[index] [-f <filename>] [-q] [-a] [-c <file>] [-e <file>]
 
[[Category:Utilities]]

Latest revision as of 22:01, 30 October 2026

The midas documentation has moved. See odbhist in Programs and options for the new documentation about the odbhist program.