ddasSort

Name

ddasSort -- Sort data from DDAS internal clock readout.

Synopsis

$DAQBIN/ddasSort [options....]

DESCRIPTION

Normally you will not need to directly run this program. Instead, specifying $DAQBIN/ddasReadout (rather than $DAQBIN/DDASReadout) as the data source will run both the DDASReadout and an associated ddasSort program.

Since NSCLDAQ-11.4, DDASReadout does not internally sort data from the DDAS modules. Deferring this sort to another process substantially improves performance by allowing that sort to run in parallel with the readout itself.

ddasSort is that down stream sorter. It takes data from a Ring buffer into which ddasReadout puts unsorted raw DDAS hits and outputs time ordered data to another ringbuffer.

Program options

--source=URI

Specifies the URI of the ringbuffer into which a DDASReadout reads module data.

--sink=ringname

Specifies the name of the ringbuffer into which the sorter will emit sorted hits. The format of these hits will be identical to that of DDASReadout prior to splitting off this sort function to ddasSort.

--window=sort-window-in-seconds

This is the floating point number of seconds in the sort window. Data older than the size of the sort window are emitted in sorted order. The sort window ensures that data arrives from all modules prior to being emitted avoiding out of order data.