Equipment List Parameters
TABLE showing Equipment List Parameters
Links Equipment Declaration
#Equipment Name #EventID #TriggerMask #Equipment Type #Test1 #Buffer
#Equipment Type EQ_PERIODIC EQ_POLLED Q_INTERRUPT Q_MULTITHREAD EQ_SLOW EQ_MANUAL_TRIG EQ_EB EQ_FRAGMENTED
Note These parameters are copied to the ODB /Equipment/<equipment-name>/Common subdirectory when the frontend is initialized.
EQUIPMENT Parameter | Explanation |
Equipment Name | Each equipment has to be assigned a unique name (i.e. no two equipments in the same experiment may have the same name). The name will be the reference name of the equipment generating the event. Examples of typical Equipment Names are "Trigger","Scaler","Epics". |
EQUIPMENT_INFO Structure | |
EventID | Each equipment has to be associated with a unique eventID . The event ID will be part of the event header of that particular equipment. |
Trigger Mask | Each equipment must be associated with a unique Trigger Mask if the Equipment Type is "EQ_INTERRUPT" or "EQ_MULTITHREAD". In this case, the Trigger Mask can be modified dynamically by the readout routine to define a sub-event type on an event-by-event basis. This can be used to mix "physics events" (from a physics trigger) and "calibration events" (from a clock for example) in one run and identify them later. Both parameters are declared as 16bit values. If the Trigger Mask is used in a single bit-wise mode, 16 is the maximum number of different masks available. |
Buffer | Specifies the name of the Buffer to which the event will be sent. After composition of an "Equipment", the Midas Frontend mfe.c
takes over the sending of this event to the buffer (usually the "SYSTEM" buffer) on the back-end computer where it may be sent to the data logger mlogger and the analyser.
compose a larger event) , a dedicated buffer can be specified. In this case the EQ_EB flag must be turned on, and the events coming from the Frontend are called fragments.
|
Type | Equipment Type should be set to one of the Equipment Flags EQ_XXX selected
from the list of valid Equipment Flags, i.e. one of |
Source | This field (i.e. the interrupt or event source) is only used if the Equipment Type is set to EQ_INTERRUPT or EQ_MULTITHREAD. The Interrupt Source field is a bit-wise pattern representing the interrupt that is allowed to trigger the call to the readout routine. The @ref FE_poll_or_interrupt_readout_routine "example" shows a CAMAC or VME source for the interrupt. A MACRO (LAM_SOURCE) calculates the bit pattern from the parameters (Crate,Slot).
If not using an interrupt, this field is set to 1.
|
Format | Specifies the data format used for generating the event. Only "MIDAS" and "FIXED" formats are valid in the frontend. The format must agree with the way the event is composed in the Equipment readout routine. It tells the system how to interpret an event when it is copied to the ODB or displayed in a user-readable form. Data in "MIDAS" and/or "FIXED" format from the frontend can be saved by the MIDAS data logger mlogger in a number of formats (see mlogger format ).
NOTE
In practice
format is done by the data logger ).
|
| |
| |
|