L1 Trigger Equations for the Forward Proton Detector at DZero


This page is intended to keep the FPD L1 Trigger files, including segments definitions for single detectors, tracking and VHDL equations. The downloadable files are written in conformity with VHDL format  standards so they can be promptly used at  the trigger firmware simulation/implementation stages.

Page under construction!  The files contained in this page may quickly evolve since this work is still under way.


 Page Contents:

1. Logic Equations

1.1. General Detector Equations

1.2. Validation and Tracking Equations

2. VHDL Equations

3. Test Vectors

4. Compilation Results




1. Logic Equations


In this section we give a brief description and provide links to the files containing the logic equations of the FPD L1 trigger. These files contain only the logic terms that define the trigger equations, written in accordance with the VHDL standard. The complete trigger files with the header definitions and declarations included are given in the next section .


1.1. General Detector Equations


Segments are the basic unit used in the current implementation of the trigger logic. These segments are defined by using the fiber information from both planes (called primed and unprimed planes) of a particular view. For instance, segment number 5 of U-view is defined using the following logical equation:

u_seg(5) <= ( not u(1) and not u(2) and up(2) ); .

These are the finer segments possible to be defined and correspond to 1/3 of a detector fiber, what is approximately 1/3*0.80 mm = 0.27 mm. This fine segmentation is needed to resolve proton/antiproton relative momentum loss (dp/p) at the order of ~ 0.005. Equations for the fine segments are given in the table below. 

We can also define coarser segments by logically adding fine segments. A wide segment 4 times wider  (4*1/3 of fiber) than the fine segments is defined and used to implement triggers for high transferred momentum (|t |>1 GeV/c) events, where dp/p resolution at the first level trigger is not a must. An excerpt is shown below: 

v_wide_seg(9) <= ( ( v(9) or vp(9) ) and not v(10) ); .

In this example, the wide segment is defined in terms of fibers, but it could be done from the fine segments, as well.  The files defining wide segments are included in the table below.

Detector View
Fine Segments
Wide Segments
U
X
V

These equations apply to all FPD detectors, as the geometry is the same for all of them.


1.2. Validation and Tracking Equations


The segments need to be validated in order to reduce the amount of ghost hits due to noise or spourious hits in the fibers. This is achieved by using the sets of validating equations defined in the table below, which match U, X and V segments. Only U and V segments are validated. X segment information is necessary just to validate an U-V coincidence, not being carried out to the next stage of the FPD trigger chain. 

Finally, in the same table one can also find the trigger tracking equations that link hits (U-V points) in the first detector to hits in the second detector which comprise a FPD spectrometer.

Click in the Tic (for the DI spectrometer the symbol Tic changes to U1/ U2 or V1/ V2 as specific equations for DI1 and DI2 have been created)  to download the equations.


Set of equations
PU
PI
DI
U-view segment validation
PU/validatedSegmentsU.vhd
PI/validatedSegmentsU.vhd
U1 , U2
V-view segment validation
PU/validatedSegmentsV.vhd
PI/validatedSegmentsV.vhd
V1 , V2
Low t and low xsi (|t| < 1 GeV , xsi < 0.01)
PU_t-low_xsi-low.vhd
PI_t-low_xsi-low.vhd
DI_t-low_xsi-low.vhd
Low t and high xsi (|t| < 1 GeV , xsi > 0.01)
PU_t-low_xsi-high.vhd
PI_t-low_xsi-high.vhd
DI_t-low_xsi-high.vhd
U-view wide-segment validation
PU/validatedWideSegmentsU.vhd
PI/validatedWideSegmentsU.vhd
U1 , U2
V-view wide-segment validation
PU/validatedWideSegmentsV.vhd
PI/validatedWideSegmentsV.vhd
V1  , V2
High t (| t| > 1 GeV)
PU_t-high.vhd
PU_t-high.vhd
PU_t-high.vhd
All wide-segments   recently added!!




2. VHDL Equations


In this section we provide links to the VHDL equations, which include the firmware structure that allows their implementation using the Virtex family FPGA on the DFE Wide Daughter Board.

The L1 Trigger top level diagram for the dipole (DI) spectrometer is shown below. The diagrams for the other FPD spectrometers will be similar, only the number of files needed to implement each specific task (segments and trigger files) changing from one to another.



L1 FPD High Level Diagram


The files needed to implement each of the three flavors (PU, PI and DI) are given in the following table. (by the time being, there are links only to DI files).

Spectrometer Flavor
Spectrometers
Segments Files
Trigger Files
DI
DI
SEG FINE
DET 1

SEG WIDE
DET 1

SEG FINE
DET 2

SEG WIDE
DET 2

L1
TLOW
XLOW

L1 TLOW XHI 1
L1 TLOW XHI 2
L1 TLOW XHI 3
L1 TLOW XHI 4
L1 TLOW XHI 5
L1
THIGH

PI
PI,PO,AU,AD
SEG FINE DET 1
SEG WIDE DET 1
SEG FINE DET 2
SEG WIDE DET 2
L1
TLOW
XLOW
L1 TLOW XHI 1
L1 TLOW XHI 2
...
L1
THIGH
PU
PU,PD,AI,AO
SEG FINE DET 1
SEG WIDE DET 1
SEG FINE DET 2
SEG WIDE DET 2
L1
TLOW
XLOW
L1 TLOW XHI 1
L1 TLOW XHI 2
....
L1
THIGH



3. Test Vectors


Test vectors to feed the simulator that tests the hardware implementation are found in the table below. Each line is one vector, a sequence of 0 's and 1's corresponding to fiber patterns either for valid segments in a FPD detector - Segment Validation - or to tracks traversing the pots that make up a spectrometer - Tracking Equations .  ( Important: these files are going to be redefined very soon in order to fit the required word size for simulation)


 
Segment Validation

 
U segment
Test vector for validated U segment
V segment
Test vector for validated U segment
 
Tracking Equations

 
Single hits
PU low t and low xsi
Test vector for low t and low xsi tracking trigger equations in PU spectrometer. Prescale=100 , what means only 1 out of each 100 equations was used to make the vector.
PU low t and high xsi
Test vector for low t and high xsi tracking trigger equations in PU spectrometer. Prescale=100 .
PU high t
Test vector for high t (and all xsi) tracking trigger equations in PU spectrometer. Prescale=1000 .
PI low t and low xsi
Test vector for low t and low xsi tracking trigger equations in PI spectrometer.
Prescale=50
.

PI low t and high xsi
Test vector for low t and high xsi tracking trigger equations in PI spectrometer. Prescale=50 .
PI high t
Test vector for high t (and all xsi) tracking trigger equations in PI spectrometer. Prescale=2000 .
DI low t and low xsi
Test vector for low t and low xsi tracking trigger equations in DI spectrometer. Prescale=50 .
DI low t and high xsi
Test vector for low t and high xsi tracking trigger equations in DI spectrometer. Prescale=500 .
DI high t
Test vector for high t (and all xsi) tracking trigger equations in DI spectrometer. Prescale=1200 .
DI (wide segments)
Test vector for all-wide-segments tracking trigger equations in DI spectrometer. Prescale=24.  (recently added!!)
Multiple hits
DI high t double hit
Test vector for double hits  in DI spectrometer: two high t (and all xsi) tracking trigger equations logically added.



4. Compilation Results


In this section we provide links to the compilation log files for the FPD trigger projects.





DI log file


PI log file


PU log file


DI wideSeg log file  - Adopt an all wide segments logic (for testing purposes)