Return to MTsort guide base window ... Return to Translators base window

ADC Event Mode

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.

ADC Label Mapping: TimeStamp and/or Label separated-events

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)

ADC Label Mapping: TDR Event Builder

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

Time Stamps

The handler supports reading, arithmetic and test functions on 64-bit entities - hence time stamps are supported.


Online Handler

This handler reads data blocks over a pseudo-TapeServer connection directly from the TDR Event Builder using port 10305.
The port number can be changed in the handler config window prior to running.


OnlineTS Handler

This handler reads data blocks by spying on a local TapeServer.


Tape

This handler supports tapes that have been written in ANSI format by the TDR Event Builder.


Disc

This handler supports disc files that have been written by the TDR Event Builder.


Maintained by Janet Sampson and John Cresswell (University of Liverpool)
Email to support@ns.ph.liv.ac.uk