Setting up the required logic

This section describes how to setup the logic required for a particular experiment:

Introduction to the Logic "Philosophy"

The TDC Electronics is characterized by the fact that, in addition to the pile-up gate conditions, all the necessary coincidence or veto conditions (i.e. logic conditions) are fully performed by software. If on one side such principle can appear as a "black box" without possibility to hardware checks, on the other side it permits a large flexibility and a very much reduced hardware.
Based on a first version of the front-end software, written by Thomas Prokscha, to control the CAEN TDC, Andrea Raselli has written a new version characterized by the capability to change all the logic conditions by a so-called setup logic file. Hence, between runs, it is possible to switch the logic conditions just by loading another setup logic file which contains all the necessary conditions and parameters.
Such setup logic files are usually mantained by the Instrument Scientist but can also be modified by the users. To prevent any loss of information, a so-called template file containing the "master copy" of the setup logic file can be created. It can then be loaded at any time and cannot be overwritten by the users.

The Setup Logic File (Syntax and Examples)

Location

The Setup Logic Files have the extension .v1190 and must be stored in the backend computer in the directory /userdisk0/musr/exp/td_musr/dat/tdcv1190.

Syntax of the Setup Logic File

The following typographic convention is adapted in this manual.

In the following, we briefly describe the syntax of the setput logic file.

Channel of Rejected Events:
The TDC software needs a pseudo channel where it transfers the rejected TDC events (for example events which are not fulfilling required coincidence logics).
Note that this channel cannot be used physically to feed the TDC (i.e. it is disabled).

Channel_Number; "Name";   R;

Disabled and Optional Channels:
A "!" character at the beginning of the line or an event of type "N" indicate that the channel is not used.
For Positron channels of type "P", a "!" may be used to disable optionally selectable channel.
A "!" character before "Name_his" disables the histogramming of this channel.
A "!" character before "Add_to" disables the addition of this channel to the "Add_to" channel.
Examples:

!17;  Veto_1;          V;
 18;  Chan_18;         N;

The first line indicates that the channel #17 (which is a veto -- note the type "V") with name "Veto_1" is disabled.
The second line indicates that the channel #18 (whose type is undefined) with name "Chan_18" is disabled.

Setting Up a Template Logic File

The Instrument Scientist can set up a template for a logic file, which can be loaded by a user, modified, but not saved under the same name. Hence, this allows us to have "master copies" of the logic files, which can be loaded in case that the normal logic files have been screwed up.

These files have an extension: v1190_template. In the deltat application, they are available on the drop-down menu which appears by pressing the Modify Settings button on the TDC Settings tab.

Note that these files cannot be saved on the same name by a normal users. When using the "Instrument Scientist Flag", they can be overwritten, although they do not appear on the List of existing TDC Set-Up Files.