User Tools

Site Tools


event_filter

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
event_filter [2015/11/01 08:11]
pereira [Mesytec TDC (MTDC) packet]
event_filter [2018/05/11 15:10] (current)
pereira [OBJECT PIN packet]
Line 1: Line 1:
-====== Event Filter (S800 Filter) ======+====== ​S800 data format from Event Filter (S800 Filter) ====== 
 +The purpose of the S800 filter is to parse data from the S800 Event Builder, and reformat them in separated data packets, with an [[#General packet structure|specific structure]]. 
 + 
 + 
 +Data from the S800 filter are encapsulated as Ring Items (RI) and, as such, will include a [[http://​docs.nscl.msu.edu/​daq/​newsite/​nscldaq-11.2/​c185.html|Ring-Item Header]], a [[http://​docs.nscl.msu.edu/​daq/​newsite/​nscldaq-11.2/​x214.html|Body Header]], and a Body, where the real parsed data are included. Ring Items emitted from the S800 filter are pushed into a [[http://​docs.nscl.msu.edu/​daq/​newsite/​nscldaq-11.2/​c43.html|Ring-Buffer]] called **s800filter**. 
 + 
 + 
 +This page describes the data format assembled in the __Body__ of the S800 Filter RI. The data is written in a series of 16-bit unsigned integers, subsequently referred to as ''​words''​. Regardless of what modules are being read, the Body of the S800 Filter RI will always include four 16-bit words, followed by a series of [[#General packet structure|data packets]]. The structure of the whole Body is described in the diagram below: 
 + 
 + 
 + 
 +^ Body Length 1 ^ Body Length 2 ^ S800 Data Tag ^ S800 Data Version ^ Data Packet 1 ^ Data Packet 2 ^ ... | 
 + 
 +  * **Body Length 1**: Number of words in body (self inclusive) 
 +  * **Body Length 2**: Number of words in body - 1 (self-inclusive) 
 +  * **S800 Data Tag**: 0x5800 
 +  * **S800 Data Version**: 0x0005 
 +  
 + 
 +===== General packet structure ===== 
 +All data is written using the concept of "​packets"​. The format of a packet is: 
 + 
 +^ Length ^ Packet Tag ^ Packet Data | 
 + 
 +Length: a count of the number of words in the packet, inclusive of the length word itself 
 + 
 +Packet Tag: a predefined integer indicating the type of data found in the Packet Data 
 + 
 +Packet Data: the data themselves. These can be data read from the modules or a sub packet. Sub packets have identical structure to main packets. Using this format all data can be placed in nested packets, and coding decisions on how to unpack the Packet Data can be made by examination of the preceding Packet Tag. Packets (including sub packets) can also be skipped by jumping ahead Length words in the buffer. 
  
-The trigger bits words indicates which bits were set during the event. The encoding of the bits is the following: 
  
 In this section, each 16-bit word sent by the Filter is described by a 16x3-table diagram. The first row includes the value, either in decimal or hexadecimal format, or a descriptive note. The second row shows the value in binary ("​X"​s are used to describe arbitrary values that vary from event to event). The last row shows the bit number. ​ In this section, each 16-bit word sent by the Filter is described by a 16x3-table diagram. The first row includes the value, either in decimal or hexadecimal format, or a descriptive note. The second row shows the value in binary ("​X"​s are used to describe arbitrary values that vary from event to event). The last row shows the bit number. ​
Line 7: Line 35:
  
  
-==== Time-stamp packet ====+ 
 +===== Time-stamp packet ​=====
 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. 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 13: Line 42:
   * **Packet Length** (self-inclusive)   * **Packet Length** (self-inclusive)
  
-^    ​   ​^^^^^^^^^^^^^^^|+^    ​   ​^^^^^^^^^^^^^^^|
 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | | 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 | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Line 55: Line 84:
  
  
-==== Event-number packet ====+===== Event-number packet ​=====
 The event-number is given by the VMUSB scaler channels as a 48-bit word coded in two 32-bit words. The Event Filter parses it and re-formats it as a three 16-bit words. The event-number is given by the VMUSB scaler channels as a 48-bit word coded in two 32-bit words. The Event Filter parses it and re-formats it as a three 16-bit words.
  
Line 61: Line 90:
   * **Packet Length** (self-inclusive)   * **Packet Length** (self-inclusive)
  
-^    ​   ​^^^^^^^^^^^^^^^|+^    ​   ​^^^^^^^^^^^^^^^|
 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | | 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 |
Line 97: Line 126:
  
  
-==== Trigger packet ====+===== Trigger packet ​=====
 The trigger packet includes a bit-pattern word (encoded ​ by the [[S800 USB DAQ data format#Tag 0x2367: Trigger module|ULM trigger module]]), with information about what sources triggered the event, and their corresponding time from the [[S800 USB DAQ data format#Tag 0x7186: Phillips 7186 TDC module for time-of-flights|Phillips 7186 TDC]]. The trigger packet includes a bit-pattern word (encoded ​ by the [[S800 USB DAQ data format#Tag 0x2367: Trigger module|ULM trigger module]]), with information about what sources triggered the event, and their corresponding time from the [[S800 USB DAQ data format#Tag 0x7186: Phillips 7186 TDC module for time-of-flights|Phillips 7186 TDC]].
  
Line 151: Line 180:
  
  
-==== Time-of-flight packet ====+===== Time-of-flight packet ​=====
 The time-of-flight packet includes all the timing values encoded in the [[S800 USB DAQ data format#Tag 0x7186: Phillips 7186 TDC module for time-of-flights|Phillips TDC]] and the XFP-FP and OBJ-FP ToF from the ORTEC TACs encoded in the [[S800 USB DAQ data format#Tag 0x7167: Phillips 7164 ADC module for CRDC anodes (energies and TAC)|S800 Phillips 7164H ADC]]. ​ The time-of-flight packet includes all the timing values encoded in the [[S800 USB DAQ data format#Tag 0x7186: Phillips 7186 TDC module for time-of-flights|Phillips TDC]] and the XFP-FP and OBJ-FP ToF from the ORTEC TACs encoded in the [[S800 USB DAQ data format#Tag 0x7167: Phillips 7164 ADC module for CRDC anodes (energies and TAC)|S800 Phillips 7164H ADC]]. ​
  
Line 158: Line 187:
  
 ^    A number from 2 to 10    ^^^^^^^^^^^^^^^| ^    A number from 2 to 10    ^^^^^^^^^^^^^^^|
-| 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 | | 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 194: Line 223:
  
  
-==== Scintillator packet ====+===== Scintillator packet ​=====
 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: Phillips 7186 TDC module for time-of-flights|Phillips TDC]]) of the [[Detectors#​Plastic scintillators|S800 FP scintillator]] signals. In the original configuration,​ there were 3 scintillators (E1, E2, and E3) which were later reduced to just one (E1) after the installation of the Hodoscope. ​ 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: Phillips 7186 TDC module for time-of-flights|Phillips TDC]]) of the [[Detectors#​Plastic scintillators|S800 FP scintillator]] signals. In the original configuration,​ there were 3 scintillators (E1, E2, and E3) which were later reduced to just one (E1) after the installation of the Hodoscope. ​
  
Line 239: Line 268:
  
  
-==== Ion-Chamber packet ====+===== Ion-Chamber packet ​=====
 The Ion-chamber packet includes the energies of the [[Detectors#​Ionization chamber|16 ion-chamber segments]] encoded in one of the [[S800 USB DAQ data format#Tag 0x7164: Phillips 7164 ADC module for ion chamber energies|Phillips 7164H ADC]]. The Ion-chamber packet includes the energies of the [[Detectors#​Ionization chamber|16 ion-chamber segments]] encoded in one of the [[S800 USB DAQ data format#Tag 0x7164: Phillips 7164 ADC module for ion chamber energies|Phillips 7164H ADC]].
  
Line 245: Line 274:
   * **Packet Length** (self-inclusive)   * **Packet Length** (self-inclusive)
  
-^    A number from 4 to 18    ​^^^^^^^^^^^^^^^|+^    A number from 4 to 20    ​^^^^^^^^^^^^^^^|
 | 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 258: Line 287:
  
  
-  * **Sub-packet "​Energy" ​Tag**+  * **Sub-packet "​Energy" ​Length** (self-inclusive)
  
-   ​0x5821 ​   ​^^^^^^^^^^^^^^^| +  A number from 2 to 18    ​^^^^^^^^^^^^^^^| 
-| 0 | | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
  
  
  
-  * **Sub-packet "​Energy" ​Length** (self-inclusive)+  * **Sub-packet "​Energy" ​Tag**
  
-  A number from 2 to 16    ​^^^^^^^^^^^^^^^| +   ​0x5821 ​   ​^^^^^^^^^^^^^^^| 
-| 0 | | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | X | X | X | X |+| 0 | | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
 +
 +
  
  
Line 288: Line 319:
  
  
-==== CRDC packets ====+===== 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:​ the "​Raw"​ sub-packet with information about the pads energies (encoded in the [[S800 USB DAQ data format#Tag 0xCFDC: XLM72V crdc1 pad readout module|CRDCs XLM72 modules]]), and the "​Anode"​ sub-packet with anode energy and time information encoded in the CRDCs [[S800 USB DAQ data format#Tag 0x7167: Phillips 7164 ADC module for CRDC anodes (energies and TAC)|Phillips ADC]]. In the following, we describe the structure of the packet provided by the Filter for each CRDC. 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:​ the "​Raw"​ sub-packet with information about the pads energies (encoded in the [[S800 USB DAQ data format#Tag 0xCFDC: XLM72V crdc1 pad readout module|CRDCs XLM72 modules]]), and the "​Anode"​ sub-packet with anode energy and time information encoded in the CRDCs [[S800 USB DAQ data format#Tag 0x7167: Phillips 7164 ADC module for CRDC anodes (energies and TAC)|Phillips ADC]]. In the following, we describe the structure of the packet provided by the Filter for each CRDC.
  
Line 403: Line 434:
  
  
-==== Hodoscope packet ====+===== Hodoscope packet ​=====
 The Filter parses the [[Detectors#​Hodoscope|Hodoscope]] information encoded in the two  The Filter parses the [[Detectors#​Hodoscope|Hodoscope]] information encoded in the two 
 [[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]]. [[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]].
Line 452: Line 483:
   * **Packet Length** (self-inclusive)   * **Packet Length** (self-inclusive)
  
-^    ​   ​^^^^^^^^^^^^^^^| +^    ​   ​^^^^^^^^^^^^^^^| 
-| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |+| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
  
Line 462: Line 493:
 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | | 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 | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
 +
 +
 +
 +  * **Hodoscope Sub-packet "​Hit-pattern"​ Tag** 
 +
 +
 +^    0x0002 ​  ​^^^^^^^^^^^^^^^|
 +| 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 |
 +
  
  
Line 489: Line 530:
  
  
-==== TPPACs packet ====+===== TPPACs packet ​=====
 The Filter parses and re-formats information from the [[Detectors#​Tracking Parallel Plate Avalanche Counters (TPPAC)|Tracking PPACs]] encoded in the [[S800 USB DAQ data format#Tag 0x5870: XLM72V tracking ppac readout module|XLM72 TPPACs module]]. The new packet includes both TPPACs; its structure is very similar to that from the CRDCs. The Filter parses and re-formats information from the [[Detectors#​Tracking Parallel Plate Avalanche Counters (TPPAC)|Tracking PPACs]] encoded in the [[S800 USB DAQ data format#Tag 0x5870: XLM72V tracking ppac readout module|XLM72 TPPACs module]]. The new packet includes both TPPACs; its structure is very similar to that from the CRDCs.
  
Line 618: Line 659:
  
  
 +===== OBJECT PIN packet =====
 +The OBJECT PIN packet includes the 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]] measured in the S800 OBJ PIN detector. Note that for most of the experiments,​ this packet is empty (i.e. it only includes the packet-length and packet tag) because this detector is rarely used.
 + 
  
  
-==== Mesytec TDC (MTDCpacket ==== +  * **Packet Length** ​(self-inclusive)
-The MTDC packet includes the multiple timing values [[S800 USB DAQ data format#​encoded in the Mesytec MTDC for a given event. The packet looks like:+
  
 +^    A number between 2 and 3    ^^^^^^^^^^^^^^^|
 +| 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 |
  
  
 +  * **Packet Tag**
  
 +^    0x58A0 ​   ^^^^^^^^^^^^^^^|
 +| 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
 +| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
  
  
-all the timing values ​encoded in the [[S800 USB DAQ data format#Tag 0x7186: Phillips 7186 TDC module for time-of-flights|Phillips TDC]] and the XFP-FP and OBJ-FP ToF from the ORTEC TACs encoded in the [[S800 USB DAQ data format#Tag 0x7167: Phillips 7164 ADC module for CRDC anodes (energies and TAC)|S800 Phillips 7164H ADC]]+  * **Energy** 
 +The energy from the Phillips ADC is given by one word:   
 + 
 +^  ^^^ Ch ^   ​energy ​  ​^^^^^^^^^^^| 
 +| 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 Phillips ADC channel reserved for the PIN detector (0). The energy words is sent by the Filter as long as **energy** is greater than 0. 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 + 
 +===== Galotte packet ===== 
 +The Galotte packet includes up to five time signals from the Galotte detector. These times are encoded in the [[S800 USB DAQ data format#Tag 0x7186: Phillips 7186 TDC module for time-of-flights|Phillips TDC]]. Note that for most of the experiments,​ this packet is empty (i.e. it only includes the packet-length ​and packet tagbecause this detector is rarely used. 
  
  
   * **Packet Length** (self-inclusive)   * **Packet Length** (self-inclusive)
  
-^    A number from 2 to 10    ​^^^^^^^^^^^^^^^|+^    A number from 2 to    ​^^^^^^^^^^^^^^^|
 | 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 640: Line 713:
   * **Packet Tag**   * **Packet Tag**
  
-^    ​0x5802 ​   ​^^^^^^^^^^^^^^^| +^    ​0x58D0 ​   ​^^^^^^^^^^^^^^^| 
-| 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | | 0 | | 0 | 0 | | 0 |+| 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | | 0 | | 0 | 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 |
  
  
-  * **Time-of-flight ​values** +  * **Time values** 
-The time-of-flight ​information for each channel is coded in words that look like:+The time information for each of the five detector ​channel is coded in words that look like:
  
 ^  ^^^ Ch ^  time  ^^^^^^^^^^^| ^  ^^^ Ch ^  time  ^^^^^^^^^^^|
Line 652: Line 725:
 | 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 |
  
-Up to eight of these words can be present (depending on wheter ​**time** is greater than 0): six from the Phillips TDC, and two from the XFP-FP and OBJ-FP TACsThe channel number Ch is given by:+Where **Ch** runs from 0 to 3. These words are sent by the Filter as long as **time** is greater than 0. 
  
-^ Ch ^ Source ​ | 
-| 6 | Phillips TDC time from the A1900 IM2 north scintillator (optional) ​ | 
-| 7 | Phillips TDC time from the A1900 IM2 south scintillator (optional) ​ |  
-| 12 | Phillips TDC time from the RF    | 
-| 13 | Phillips TDC time from the OBJ scintillator ​ |  ​ 
-| 14 | Phillips TDC time from the XFP scintillator ​ |  ​ 
-| 15 | Phillips TDC time from the LaBr (optional) ​ |  ​ 
-| 4 | XFP-FP time-of-flight from TAC  |  
-| 5 | OBJ-FP time-of-flight from TAC  |  
  
  
-Note that the time values from the Phillips TDC are subtracted by SpecTcl to the time from the S800 trigger E1 up (encoded in the [[#trigger packet|trigger packet]]) in order to calculate the corresponding time-of-flight. On the other hand, the times from the TACs (Ch 4 and 5) correspond to actual time-of-flight values. ​ 
  
 +===== LaBr packet =====
 +The LaBr packet includes the energy (encoded in the [[S800 USB DAQ data format#Tag 0x4300: FERA module for plastic scintillator energies|FERA LeCroy module]]) and times (encoded in a Phillips TDC) from up to four LaBr detectors.
 +Note that although there is a specific EVB tag for that Phillips TDC (0x7187), this module is currently not included in the S800 electronics. As a result, the data packet is empty (i.e. it only includes the packet-length and packet tag).
  
  
  
 +  * **Packet Length** (self-inclusive)
  
 +^    A number from 2 to 10    ^^^^^^^^^^^^^^^|
 +| 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 |
  
  
 +  * **Packet Tag**
  
 +^    0x58E0 ​   ^^^^^^^^^^^^^^^|
 +| 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 |
 +| 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 |+  * **Energy and time values** 
 +The energy (from the FERA module) and time (from the Phillips TDC) are given by two consecutive words for each LaBr:  
 + 
 + ^^^ Ch ^ ^ energy  ​^^^^^^^^^^| 
 +| 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 |
  
-  
  
-       ^^^^^^^^^^^^^^^| + ^^^ Ch time  ​^^^^^^^^^^^| 
-                |+|
 | 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** runs from 0 to 3. These words are sent by the Filter as long as **time** is greater than 0. 
 +===== 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:
  
  
-^    ​Bit    ​^^^^^^^^^^^^^^^|+  * **Packet Length** (self-inclusive) 
 + 
 +^    ​A number from 2 to 10    ​^^^^^^^^^^^^^^^
 +| 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 |
 +
 +
 +  * **Packet Tag**
 +
 +^    0x58F0 ​   ^^^^^^^^^^^^^^^|
 +| 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 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 |
 +
 +
 +  * **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.
 +
 +
 +^   ​^^^ ​ hit  ^^^^^ channel ^^^^^^^|
 +| 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 |
 +
 +
 +
 +^   ​time ​  ​^^^^^^^^^^^^^^^|
 +| 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 |
 +
 +
 +
 +
 +
 +
 +
  
  
  
  
event_filter.1446383502.txt.gz · Last modified: 2015/11/01 08:11 by pereira