dbconfig::getScalers

Name

dbconfig::getScalers -- Return scaler information from a run.

Synopsis


package require dbconfig
set db [dbconfig::connect file-name]
set set [dbconfig::openSaveSet $db set-name]

set info [dbconfig::getScalers $set run-number]
                        

DESCRIPTION

Returns a list of scaler readout information for run run-number in the save set whose instance command is stored in set. Each element of the list is a dict that contains the following key/value pairs:

sourceid

The data source id that performed this readout.

start

The offset into the run at which scalers began accumulating for this readout.

stop

The offset into the run at which the counting interval represented by this entry ended.

divisor

Doing a floating point divide of start or stop by the divisor value results in seconds. This allows for subsection precision.

timestamp

The absolute time at which the readout was performed. This can be turned into a human readable string via clock format

channels

List of integer counts read from the scalers for this readout entry.