DØ Run IIb L1Cal Et(miss) Algorithm

updated: 06-Jun-06

Index

  1. Inputs to the algorithm in firmware
  2. The calculation and results
  3. Examples


Inputs to the Algorithm in the Firmware

Description from Jaro Ban

Inputs to the procedure are:

  1. Energies summed in eta for each phi (16 bit integers)
  2. sine and cosine (13 bit integers) for phi 2 to 5
  3. one common energy threshold (16 bit integer)
User has to define/download sine, cosine and the threshold parameters.

The Calculation and Results

The multiply operation is performed by the hardware (integer) multipliers.

Your results are then: exsum[28:0] eysum[28:0], 29 bit long and etsum [16:0] is 17 bit long. Our agreement (Hal and others) was that our results which we send to GAB will be 12 bit number and if the overflow is detected the numbers will be all ones(0xFFF). We agreed also on the rounding off the numbers. We need also normalize the numbers for the maximum energy deposits. We simply divide the results by 16 at the moment.

Bit usage is summarized in the following table:
Variable Full Sum Output Subset Used for Roundoff
Ex,ySum[28..0][25..14][13..2]
EtSum[16..0][15..4][3..0]

Details of it are in the procedure multiply.vhd.

Examples

An example of what we are doing at the moment in multiply.vhd is

Let say e2=e3=e4=e5=1000 and thr=0. Then

Then after normalization