This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
event_filter [2015/10/30 16:17] pereira [Time-of-flight packet] |
event_filter [2015/10/31 11:30] pereira [CRDC packets] |
||
---|---|---|---|
Line 3: | Line 3: | ||
The trigger bits words indicates which bits were set during the event. The encoding of the bits is the following: | The trigger bits words indicates which bits were set during the event. The encoding of the bits is the following: | ||
- | In this section, | + | In this section, |
==== Time-stamp packet ==== | ==== Time-stamp packet ==== | ||
- | The timestamp is coded by the [[S800 USB DAQ data format#Tag 0x5803: XLM72 time stamp module|XLMV72 time-stamp module]] for each event as a 64-bit word. The Event Filter parses it as a set of four consecutive 16-bit words. | + | The timestamp is encoded in the [[S800 USB DAQ data format#Tag 0x5803: XLM72 time stamp module|XLMV72 time-stamp module]] for each event as a 64-bit word. The Event Filter parses it as a set of four consecutive 16-bit words. |
Line 103: | Line 103: | ||
* **Packet Length** (self-inclusive) | * **Packet Length** (self-inclusive) | ||
- | ^ from 2 to 7 ^^^^^^^^^^^^^^^| | + | ^ |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | X | X | X | | | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | X | X | X | | ||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
Line 152: | Line 152: | ||
==== Time-of-flight packet ==== | ==== Time-of-flight packet ==== | ||
- | The time-of-flight packet includes all the timing values | + | The time-of-flight packet includes all the timing values |
* **Packet Length** (self-inclusive) | * **Packet Length** (self-inclusive) | ||
- | ^ from 2 to 10 ^^^^^^^^^^^^^^^| | + | ^ |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | X | X | X | | | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | X | X | X | | ||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
Line 195: | Line 195: | ||
==== Scintillator packet ==== | ==== Scintillator packet ==== | ||
- | The scintillator packet includes the energy (from the FERA LeCroy module) and time (from the Phillips TDC) of the S800 FP scintillator signals. In the original configuration, | + | The scintillator packet includes the energy (encoded in the [[S800 USB DAQ data format#Tag 0x4300: FERA module for plastic scintillator energies|FERA LeCroy module]]) and time (encoded in the [[S800 USB DAQ data format#Tag 0x7186: |
* **Packet Length** (self-inclusive) | * **Packet Length** (self-inclusive) | ||
- | ^ from 4 to 8 ^^^^^^^^^^^^^^^| | + | ^ |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | X | X | X | X | | | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | X | X | X | X | | ||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
Line 239: | Line 240: | ||
==== Ion-Chamber packet ==== | ==== Ion-Chamber packet ==== | ||
- | The Ion-chamber packet includes the energies of the 16 "sub-chambers" | + | The Ion-chamber packet includes the energies of the [[Detectors# |
* **Packet Length** (self-inclusive) | * **Packet Length** (self-inclusive) | ||
- | ^ from 4 to 18 ^^^^^^^^^^^^^^^| | + | ^ |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | X | X | X | X | X | | | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | X | X | X | X | X | | ||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
Line 277: | Line 278: | ||
The energy (from the Phillips 7164H ADC module) is given by a series of words that look like: | The energy (from the Phillips 7164H ADC module) is given by a series of words that look like: | ||
- | ^ ^^^ Ch ^ energy | + | ^ ^^^ Ch ^ |
| 0 | 0 | 0 | X | X | X | X | X | X | X | X | X | X | X | X | X | | | 0 | 0 | 0 | X | X | X | X | X | X | X | X | X | X | X | X | X | | ||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
- | Where Ch is the " | + | Where Ch is the segment |
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== CRDC packets ==== | ||
+ | The Filter provides two CRDC packets: one for [[Detectors|Cathode Readout Drift Chambers (CRDC)|CRDC1]] and one for [[Detectors|Cathode Readout Drift Chambers (CRDC)|CRDC2]]. Each CRDC packet is divided in two sub-packets: | ||
+ | |||
+ | | ||
+ | |||
+ | ^ A number from 4 to 18 ^^^^^^^^^^^^^^^| | ||
+ | | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | X | X | X | X | X | | ||
+ | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
+ | |||
+ | |||
+ | * **Packet Tag** | ||
+ | |||
+ | ^ 0x5840 | ||
+ | | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | | ||
+ | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
+ | |||
+ | |||
+ | |||
+ | * **CRDC label** | ||
+ | |||
+ | ^ 0x0000 or 0x0001 | ||
+ | | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | X | | ||
+ | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
+ | |||
+ | where 0x0000 and 0x0001 identify CRDC1 and CRDC2, respectively. | ||
+ | |||
+ | |||
+ | |||
+ | * **CRDC Sub-packet " | ||
+ | |||
+ | ^ from 2 to 16 ^^^^^^^^^^^^^^^| | ||
+ | | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | X | X | X | X | X | | ||
+ | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
+ | |||
+ | |||
+ | |||
+ | * **CRDC Sub-packet " | ||
+ | |||
+ | ^ 0x5841 | ||
+ | | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | | ||
+ | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
+ | |||
+ | |||
+ | |||
+ | * **Dummy word** | ||
+ | |||
+ | ^ 0x0000 | ||
+ | | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | ||
+ | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
+ | |||
+ | This word is reserved for a global threshold, which is no longer used. | ||
+ | |||
+ | |||
+ | |||
+ | * **Samples sub-packets** | ||
+ | The Filter sends a series of sample sub-packets. Each sub-packet consists of two parts. The first part includes one 16-bit word with information about the **sample** and **channel** numbers: | ||
+ | |||
+ | ^ control bit ^ | ||
+ | | 1 | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X | | ||
+ | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
+ | |||
+ | where **channel** is a number between 0 and 63, and refers to a group of four pads. The second part includes __up to four__ consecutive 16-bit words, each with a pad energy | ||
+ | |||
+ | ^ control bit ^ empty ^^^ connector | ||
+ | | 0 | 0 | 0 | 0 | X | X | X | X | X | X | X | X | X | X | X | X | | ||
+ | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
+ | |||
+ | The **connector** number | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | * **CRDC Sub-packet " | ||
+ | |||
+ | ^ 4 ^^^^^^^^^^^^^^^| | ||
+ | | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | | ||
+ | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
+ | |||
+ | |||
+ | |||
+ | * **CRDC Sub-packet " | ||
+ | |||
+ | ^ 0x5845 | ||
+ | | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | | ||
+ | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | * **Energy from Anode** | ||
+ | The anode energy (encoded in the [[S800 USB DAQ data format#Tag 0x7167: Phillips 7164 ADC module for CRDC anodes (energies and TAC)|S800 Phillips 7164H ADC]]) is given by: | ||
+ | |||
+ | ^ empty ^^^^ | ||
+ | | 0 | 0 | 0 | 0 | X | X | X | X | X | X | X | X | X | X | X | X | | ||
+ | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
+ | |||
+ | |||
+ | |||
+ | * **Time from Anode** | ||
+ | The anode time (from an ORTEC TAC encoded in the [[S800 USB DAQ data format#Tag 0x7167: Phillips 7164 ADC module for CRDC anodes (energies and TAC)|S800 Phillips 7164H ADC]]) is given by: | ||
+ | |||
+ | ^ empty ^^^^ | ||
+ | | 0 | 0 | 0 | 0 | X | X | X | X | X | X | X | X | X | X | X | X | | ||
+ | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
+ | |||
+ | |||
+ | |||
Line 301: | Line 415: | ||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
+ | |||