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/31 13:20] pereira [Intermediate-image PPACs packet] |
event_filter [2016/03/16 15:31] pereira |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Event Filter (S800 Filter) ====== | + | ====== |
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: | ||
Line 283: | Line 283: | ||
- | Where Ch is the segment number (from 0 to 15, being segment 0 the most upstream). The Filter gives an energy word for each segment as long as **energy** is greater than 0. | + | where Ch is the segment number (from 0 to 15, being segment 0 the most upstream). The Filter gives an energy word for each segment as long as **energy** is greater than 0. |
Line 403: | Line 403: | ||
- | ==== Intermediate-image PPACs packet ==== | + | ==== Hodoscope packet ==== |
+ | The Filter parses the [[Detectors# | ||
+ | [[S800 USB DAQ data format#Tag 0x7165: Phillips 7164 ADC module for hodoscope energies 0 through 15|Phillips 7164 ADCs]] and re-formats the data in three packets, two with the energies of the two groups crystals (from 1 to 16 and from 17 to 32), and the third one with the hit pattern recorded in the [[S800 USB DAQ data format#Tag 0x4448: LeCroy4448 coincidence register module for hodoscope hit pattern|LeCroy 4448 coincidence-register module]]. | ||
+ | |||
+ | Each of the **two first packets** look like: | ||
+ | |||
+ | * **Packet Length** (self-inclusive) | ||
+ | |||
+ | ^ A number from 3 to 19 ^^^^^^^^^^^^^^^| | ||
+ | | 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** | ||
+ | |||
+ | ^ 0x58B0 | ||
+ | | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | | ||
+ | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
+ | |||
+ | |||
+ | * **Hodoscope Sub-packet " | ||
+ | |||
+ | |||
+ | ^ 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 labels the energy sub-packet of the first group of crystals from 1 to 16, and 0x00001 labels the second group of crystals from 17 to 32. | ||
+ | |||
+ | |||
+ | |||
+ | * **Energy values** | ||
+ | The energy from each of the two Phillips 7164H ADC modules is given by a series of words that look like: | ||
+ | |||
+ | ^ ^^^ Ch ^ | ||
+ | | 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 | | ||
+ | |||
+ | |||
+ | where Ch is the crystal number in the packet (from 0 to 15). The Filter gives an energy word for each crystal as long as **energy** is greater than 0. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | The **third hodoscope packet** with information from the coincidence register looks like: | ||
+ | |||
+ | * **Packet Length** (self-inclusive) | ||
+ | |||
+ | ^ 5 ^^^^^^^^^^^^^^^| | ||
+ | | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | | ||
+ | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
+ | |||
+ | |||
+ | * **Packet Tag** | ||
+ | |||
+ | ^ 0x58B0 | ||
+ | | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | | ||
+ | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
+ | |||
+ | |||
+ | * **Hit pattern** | ||
+ | |||
+ | |||
+ | ^ hit pattern of first 16 crystals | ||
+ | | X | 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 | | ||
+ | |||
+ | |||
+ | |||
+ | ^ hit pattern of crystals 16 to 32 | ||
+ | | X | 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 | | ||
+ | |||
+ | |||
+ | |||
+ | * **Time** | ||
+ | The Hodoscope OR 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 | | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== TPPACs | ||
The Filter parses and re-formats information from the [[Detectors# | The Filter parses and re-formats information from the [[Detectors# | ||
* **Packet Length** (self-inclusive) | * **Packet Length** (self-inclusive) | ||
- | ^ A number from 10 to 330 | + | ^ A number from 5 to 325 |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | X | X | X | X | X | X | X | X | X | | | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | | ||
Line 462: | Line 548: | ||
The **connector** number is defined between 0 and 3, and it is related to the pad number (**pad**). The value 0 refers to the first 64 pads, and correspond to the strips in the dispersive direction of the first TPPAC. The value 1 is for pads between 63 and 127, and includes the strips in the non-dispersive direction of the first TPPAC. The value 2 corresponds to pads between 128 and 191, which are associated to the strips in the dispersive direction of the second TPPAC. Finally, the value 3 corresponds to pads between 191 to 256, and covers the strips in the non-dispersive direction of the second TPPAC. | The **connector** number is defined between 0 and 3, and it is related to the pad number (**pad**). The value 0 refers to the first 64 pads, and correspond to the strips in the dispersive direction of the first TPPAC. The value 1 is for pads between 63 and 127, and includes the strips in the non-dispersive direction of the first TPPAC. The value 2 corresponds to pads between 128 and 191, which are associated to the strips in the dispersive direction of the second TPPAC. Finally, the value 3 corresponds to pads between 191 to 256, and covers the strips in the non-dispersive direction of the second TPPAC. | ||
- | The value of *pad* is given by **index** + **connector** x 64, where **index** is depends on the value of **channel** and **connector** according to: | + | The value of **pad** is given by **index** + **connector** x 64, where **index** is depends on the value of **channel** and **connector** according to the table below, where the second column shows the index values for **connector**=0 or 2, and the third column corresponds to the index values for **connector**=1 or 3: |
- | For **connector**=0 or 2: index= | + | ^channel^index^index| |
- | + | ||
- | + | ||
- | + | ||
- | ^ channel | + | |
|0|30|0| | |0|30|0| | ||
|1|31|1| | |1|31|1| | ||
Line 538: | Line 620: | ||
+ | ==== Mesytec TDC (MTDC) packet ==== | ||
+ | The MTDC packet includes the multiple timing values [[S800 USB DAQ data format#Tag 0x0DDC: Mesytec MTDC-32 module |encoded in the Mesytec MTDC]]. The packet looks like: | ||
- | | ||
+ | * **Packet Length** (self-inclusive) | ||
- | (where **connector** ranges | + | ^ A number |
- | + | | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | X | X | X | | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | * **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 | | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
+ | * **Packet Tag** | ||
- | * **CRDC Sub-packet " | + | ^ |
- | + | | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | | |
- | ^ | + | |
- | | 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 | | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | | ||
+ | * **Time values** | ||
+ | Every time value encoded in the MTDC is sent by the Filter as a series of two 16-bit words: the first one provides information about the MTDC channel and the hit number; the second one gives the time value for that channel-hit. In the current version (Oct. 2015), the Filter processes up to 32 hits per channel. This value can be increased if necessary. | ||
- | | + | ^ |
- | 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: | + | | 0 | 0 | 0 | X | X | X | X | X | X | X | X | X | X | X | X | X | |
- | + | ||
- | ^ | + | |
- | | 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 | | | 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 | | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ^ | + | |
| X | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X | | | X | 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 | | | 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 | | ||
- | |||
- | |||
- | |||
- | |||
- | ^ Bit ^^^^^^^^^^^^^^^| | ||
- | | 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 | | ||
- | |||
- | |||