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
Next revision Both sides next revision
event_filter [2015/10/30 17:55]
pereira [CRDC packets]
event_filter [2015/10/30 18:45]
pereira [CRDC packets]
Line 343: Line 343:
  
   * **Samples sub-packets**   * **Samples sub-packets**
-The Filter sends a series of sample sub-packets. Each sub-packet consists of two parts: 1) one 16-bit word with information about the sample number (**sample**):+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  ^   sample    ^^^^^^^^   channel   ^^^^^^|+^  control bit  ^   sample    ^^^^^^^^^   channel   ^^^^^|
 | 1 | X | X | X | X | X | X | X | X | X | X | X | X | X | X | X | | 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 | | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
  
-and 2) four 16-bit words, each with energy information a pad:+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 __greater than 0__:
  
-^  control bit  ^  empty  ^^^  connector  ^^  energy  ^^^^^^^^^| +^  control bit  ^  empty  ^^^  connector  ^^  energy  ^^^^^^^^^| 
-| 0 | 0 | 0 | 0 | | X | X | X | X | X | X | X | X | X | X |+| 0 | 0 | 0 | 0 | | 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 |
  
 +The **connector** number is related to the pad number (**pad**) according to: **pad** = **channel** + **connector** x 64 (where **connector** ranges from 0 to 3, and **channel** is given by the first word of the sample sub-packet). Note that the Filter processes information from connectors with energies greater than 0. 
  
-^  control bit  ^  empty  ^^^  connector 1  ^^  energy  ^^^^^^^^^| 
-| 0 | 0 | 0 | 0 | 0 | 1 | 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 | 
  
  
-^  control bit  ^  empty  ^^^  connector 2  ^^  energy  ^^^^^^^^^| 
-| 0 | 0 | 0 | 0 | 1 | 0 | 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 | 
  
  
- control bit   empty  ^^^  connector 3  ^^  energy  ^^^^^^^^^| +  * **CRDC Sub-packet "Anode" Length** (self-inclusive) 
-| 0 | 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 |
  
  
-The connector number (**connector**) is related to pad number (**pad**) according to: **pad** = **channel** + **connector** x 64 (where **channel** is given by the first word of the sample sub-packet).+ 
 +  * **CRDC Sub-packet "Anode" Tag**  
 + 
 +^    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 |
  
  
Line 377: Line 379:
  
  
-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. 
  
  
event_filter.txt · Last modified: 2019/05/24 13:58 by pereira