The TDR handler can run in one of two modes.
Output from the TDR Event Builder already has events defined
using separator records.
It is also possible to process a raw TDR data stream into events
using TimeStamp jumps as the separator.
For use when being run without TDR Event Builder output.
The mapping between TDR label and group/item may be specified, either ...
Using the handler config window to input the mappings
Or the currentsetup.MTmap file may be pre-created and placed in the sortdir directory. The format is as follows ..
name tdr-label tdr-flag group item
tdr-flag is generally zero, but is set =1, for example,
for trace data associated with the equivalent tdr-flag=0 energy
parameter.
tdr-flag = 2 for 16bit data (else get 14bit data+fail+veto)
To make the generation of group formats easy there is a mechanism
provided.
This assumes pre-defined names for each detector,
obtained from the Event Builder setup,
and allocates group ranges contiguously for each detector cluster.
The *commands section of the sort description must use this
naming convention.
The Control window of the TDR Event Builder software has a button
labelled
Generate MTsort Maps
which creates mapping files and places them in the current setup directory.
There are two files called currentsetup.MTmap and
currentsetup.MTformats.
currentsetup.MTmap contains the mapping of name and label to group
and item.
The latter file should be used as the sort input format specification.
If the sort setup directory is not the same as the EB setup directory,
then these two files must be copied over.
*formats include currentsetup.MTformats *spectra ... *commands ... *finish
The handler supports reading, arithmetic and test functions on 64-bit entities - hence time stamps are supported.