University of Wisconsin, Madison, WI, USA
Argonne National Laboratory, Argonne, IL, USA
The article( 360k GNUziped PS file , 3.9 Megs unzipped)
A TEX version( 77k)
2. Overview of the calorimeter and first level trigger
6. Calorimeter First Level Trigger Processor
8. Calorimeter First Level Trigger Performance
The ZEUS CFLT detects charged and neutral current processes. In these events the current jet(s) and lepton emerge on opposite sides of the beam axis, balancing each other in transverse momentum. The debris of the proton is emitted forward in a narrow cone (~10 mrad). Neutral current events are characterized by an electron and jet(s) with balanced transverse momentum PT. Charged current events contain jets and missing PT. in addition, exotic processes are distinguished by the presence of lepton(s) and jet(s) with missing PT.
The CFLT identifies charged and neutral current, photoproduction, and exotic physics events while rejecting beam gas background using three different approaches. They are: (i) detection of isolated electrons and muons using pattern analysis logic, (ii) identification of patterns of energy deposits obtained from local energy sums, and (iii) recognition of characteristic deposits of total transverse and missing transverse energy.
The ZEUS calorimeter consists of depleted uranium plates interleaved with
plastic scintillator. The scintillator plates form towers which are read
out on two sides with wavelength shifter bars, light guides and
photomultipliers. The calculations required for the calorimeter trigger
include summing all of the pulseheights recorded in the photomultipliers
every 96 ns. In addition, calculation of the transverse energy and missing
PT requires algebraically summing pulseheights multiplied by geometric
factors. The detection of an electron requires evidence of electromagnetic
energy. This is done by comparing energy deposited in the first interaction
length of the calorimeter with that deposited in subsequent interactions
lengths on a tower by tower basis.
2. Overview of the calorimeter and first level trigger
Figure 1: Side view of the ZEUS calorimeter. (848847 bytes, EPS format)
Figure 2: FCAL(left) and RCAL(right) as seen from the interaction point.
(944872 bytes, EPS format)
The first interaction length in FCAL, BCAL, and RCAL consists of EMC cells, except for those near the edges of FCAL and RCAL, where the cells are shadowed from the interaction point by the BCAL. The EMC cells have a front area of 5cm by 20cm in the FCAL, 5cm by 23cm in the BCAL, and 10cm by 20cm in the RCAL. The BCAL EMC cells are the only projective cells in the calorimeter.
Certain FCAL and RCAL cells in the first interaction length are designated as HAC0 cells, and have 20cm by 20cm front faces. Particles from the interaction point passing through these cells first pass through BCAL EMCs. In the RCAL, twenty-four HAC0 cells are used as EMCs because the BCAL does not fully shadow them.
The subsequent three interaction lengths in FCAL and RCAL and two interaction
lengths in BCAL are HAC1 cells. The last 1.5 to 3 interaction lengths
(depending on radius from the beampipe) of FCAL and last 2 interaction
lengths of BCAL are HAC2 cells. HAC1 and HAC2 cells in the FCAL and RCAL have
20cm by 20cm front faces, while the BCAL HAC cells have front faces of 27cm
by 23cm for HAC1, and 35cm by 23cm for HAC2(All dimensions given
above are approximate.). Figure 3
shows a typical trigger
tower (similar to FCAL at small theta or BCAL at theta approx
90 degrees), with four EMC cells in front, followed by a HAC1 and a HAC2.
Figure 3: View of a typical calorimeter trigger tower in EPS format.(6112 bytes, EPS format)
One of the 448 towers forming the barrel calorimeter EPS format.(30992 bytes, EPS format)
Figure 4: Side view of trigger tower arrangement. This has the HAC and EMC mapping for the detector.(41676 bytes, EPS format)
Figure 5: View from the interaction point of the FCAL and
RCAL trigger regions and trigger towers.
(182000 bytes, EPS format)
Figure 6: Trigger regions of the calorimeter (0--F) with edge
regions shown.
(41665 bytes, EPS format)
*****The figure does not describe the current BCAL edge
configuration.*****
Figure 7: The ZEUS trigger and data acquisition system. (1442973 bytes, EPS format)
For every bunch crossing all data are stored in a pipeline, clocked at 96 nsec, for ~ 5 microsec while the first level trigger calculations are being performed and the first level trigger signal is propagating back to the component. For some components, such as the calorimeter, this pipeline is a switched capacitor array, which is an analog device that stores charge. For other components, such as the tracking detectors, the information is already digital and stored in a digital pipeline. The trigger processing for all components is pipelined and basically free of deadtime, accepting data from a new crossing every 96 nsec. The first level trigger operates on a subset of the full data. Each component completes its internal trigger calculations and passes information for a particular crossing to the GFLT between 1.0 and 2.5 microsec after the crossing occurred. The GFLT calculations take 20 crossings (1.9 microsec) additional time after receiving information from the individual components. The GFLT is issued exactly 46 crossings, or 4.4 microsec after the crossing that produced it. If a GFLT is not issued for a crossing, the component data are discarded.
There is additional processing of calorimeter trigger data by the Fast Clear[4] between arrivals of global first level triggers. The Fast Clear aborts events before processing by the second level trigger. The design goal of the first level trigger when combined with the Fast Clear, is to produce an output below 1 kHz. When the Fast Clear is operating, the GFLT rate can run at 2-3 kHz with the Fast Clear aborting sufficient GFLT's to bring the rate below 1 kHz.
The issuing of a first level trigger causes component data to be transferred to buffers for processing by the second level trigger. The second level trigger processor functions as an asynchronous pipeline, i.e. a series of parallel processors. The second level trigger decisions are made in the order of events received. The second level trigger has access to a large fraction of the full data for the event. The data passing the second level trigger is then sent to the level 3 computer farm, where trigger decisions are based on the full analysis. The third level trigger runs a version of the full offline analysis code and passes an output rate of about 3-5 Hz.
The organization of the CFLT is shown in Figure 8. The first element of the CFLT is the the Trigger Sum Card (TSC), which is mounted on the detector next to the Front End Cards (FEC)[3]. The FECs are the first step in the calorimeter data acquisition chain. Each FEC accepts pulses from up to 12 photomultiplier tubes (PMT) and passes 5% of sums of up to 4 PMTs to the TSC. The TSC receives eight inputs, four left and four right phototube sum signals. These are integrated and summed for each left and right pair, and the baseline restored quickly after the integration. The TSC, having shaped the signal, sends it as a differential signal down 60 m of shielded twisted pair cable to the electronics house, where it enters the Trigger Encoder Card (TEC) for digitization.
After digitization the TEC linearizes, pedestal corrects, and zero suppresses the energy. It also tests whether the energy is consistent with a minimum ionizing particle or a quiet tower. The corrected energy is used to calculate E, ET, Ex, and Ey. These values are fed into adder trees, which combine like values for towers of the same type (EMC or HAC). The partial sums from each TEC are sent to the Adder Card which completes the summation of E, ET, Ex, and Ey for a single 7 X 8 region. The linearized energy for each channel is also placed in a FIFO. The data at the head of the FIFO is sent to the Fast Clear[4] via the Adder Card upon receipt of a trigger. EMC and HAC data from the same tower are also used to address a memory lookup table which determines which of six thresholds the trigger tower energy has passed. The same table determines if there is an electron candidate in that tower. Threshold level, electron candidate, minimum ionizing particle, and quiet tower information are all forwarded to the Adder Card.
The Adder Card sends control signals and clocks out to the TECs on the backplane. It collects FIFO data from the TECs and sends them to the Fast Clear upon receipt of a trigger, and continues the summing of E, ET, Ex, and Ey. It determines, from the tower energy thresholds, the energies in programmable subregions of the 7 X 8 crate region. The Adder Card histograms the number of towers in the region which reached each threshold, and finds the number of isolated muons and electrons in the region. This information is sent from the Adder Cards in the 16 trigger crates to the CFLT processor (CFLTP)[5].
The CFLTP calculates the total ET, missing ET, electromagnetic and hadronic energy, compares region boundaries to calculate the number of isolated electrons and muons, and computes regional EMC, HAC and total energies, particularly around the beam-pipe region where the beam-gas background is greatest. The summary of this information is transmitted to the Global First Level Trigger (GFLT) for each 96 nsec crossing.
Figure 8: Organization of the Calorimeter First Level Trigger. (10355 bytes, EPS format)
3. Trigger Sum Cards
Each calorimeter cell is read out by one left and one right PMT. Generally,
up to twelve left or twelve right PMT signals are sent to a module-mounted
Front End Card (FEC)[3]. Usually, there are two HAC sum outputs
(HAC1 + HAC2) and two EMC sum outputs (EMC1 + EMC2 + EMC3 + EMC4). In the
RCAL, the FECs produce eight sum outputs, consisting of four
individual HAC1s and four EMC sum outputs (EMC1 + EMC2). The outputs of pairs
of right and left FECs are sent to Trigger Sum Cards (TSC), also mounted on
the module. Depending upon the setting of jumpers on the TSC, these FEC
outputs may be combined to make either four sums (two HAC and two EMC) of two
channels each, or, in places where there are HAC0 instead of EMC cells, to
make two HAC sums of four channels each. These sums are then sent to the
TECs located in the electronics house.
Each TSC output consists of two amplifiers each driving one half of a shielded twisted pair cable in differential mode. The TSC sums left and right FEC sums for each trigger tower to produce two sums (EMC and HAC) for each of two towers containing EMC and HAC sections. The TSC produces up to four separate HAC sums for towers without EMC sections. In order to facilitate special combinations of HAC cells in those FCAL and RCAL regions which are shadowed by BCAL EMC towers, the TSC has internal jumpers that can be used to combine up to all eight of its inputs to generate a single output. In practice, up to six inputs are combined. In these cases, one or more of the four output channels are unused. In most locations, two input channels are summed in one output channel. However, in regions of complex geometry, the TSC is used to directly combine the left and right sides of two HAC (four inputs) sections in a single output sum.
Each FEC separately sums the hadronic and electromagnetic phototube signals for each of the trigger tower sections connected to it. The FEC outputs 1/20 of the total hadronic and electromagnetic phototube current for either the left or right side of the trigger tower section. The charge delivered to the TSC for a minimum ionizing particle (Qmip) is 1/20 of the section total (left and right PMT's), in pC/GeV given above, times the energy deposited by a minimum ionizing particle (Emip). The HAC energy is the sum of both HAC1 and HAC2 sections. The maximum charge delivered to the TSC (Qmax) is 1/20 of the section total, in pC/GeV given above, times the maximum energy that can be deposited in a section (Emax), where Emax is 400 GeV for the FCAL and 100 GeV for the BCAL and RCAL. In addition, there are a few BCAL trigger towers which have FCAL sections summed with BCAL sections. For the BCAL sections in these trigger towers, the gain is set so that Emax is 400 GeV.
The TSC can drive at most a signal of 2 V on its output cable to the Trigger Encoder Card (TEC). This sets the gain of the TSC at 2000 mV/Qmax. The digitization scales of the low gain and high gain channel FADC's in the TEC are computed based on the requirement that the high gain scale for all calorimeter sections be 0 to 12.5 GeV. This gives a high-to-low gain ratio of 32 in the FCAL and 8 in the BCAL and RCAL.
The total charge entering the input is integrated and converted to an output voltage. The capacitor in the feedback path of the operational amplifier differs between TSCs in the RCAL/BCAL and FCAL due to the different gains required in the two calorimeter sections. The resulting voltage is split and applied to both inputs of a second Op Amp. The signal on the plus input is passed through a 100 nsec delay line. Thus, the output of the amplifier produces a voltage proportional to the total charge collected, and then, 100 nsec later, restores the output to zero.
The outputs of the amplifiers for the Left and Right inputs of each channel are passed through resistors, and a jumper, to the summing node of a high speed Op Amp (CLC400) with 50 mA drive capability. This CLC400, in conjunction with a second CLC400, is used to drive 60 m of shielded twisted pair between the calorimeter and the electronics house. The line to line impedance of the twisted pair is approximately 95 Ohm. The gain of the Op Amps is adjusted to produce a full scale output of 2 volts. Series terminating resistors of 47.5 Ohm are placed between the outputs of the Op Amps and the cable. Peaking capacitors are placed across these resistors to partially compensate for the frequency response of the cable (similar to RG174). The series resistors act as part of a potential divider network, halving the voltage on the cable to a maximum of plus or minus 1 volt. A schematic of the TSC circuit is shown in Figure 9.
Figure 9: Circuit diagram of one channel of the Trigger Sum Card. (112643 bytes, EPS format)
The TSC also applies a threshold to each pair of left and right inputs. The threshold voltage is provided on a cable input to each TSC. The threshold is set by a digital-to-analog converter (DAC) situated on each calorimeter module. This DAC is controlled by the same command cable that controls the TSC input on/off circuitry. If either the left signal or right signal, but not both, exceeds the threshold, a logic signal is generated for the time that the disagreement is present. The signals from the four output channels on an individual TSC card are ORed together. These signals are called the TSC Veto because they are designed to veto false electron signals resulting from noise on an individual EMC PMT. If this noise is the correct amount, it will pass the electron threshold on the TEC. Since the tower HAC section and the surrounding tower HAC and EM sections are likely to be quiet, the noise will pass as an isolated electron. [4] upon receipt of a Global First Level Trigger (GFLT). The TEC multiplies these linearized energies by geometric factors to calculate, on a tower by tower basis, electromagnetic and hadronic Etotal, ET, Ex, and Ey (ET= E sin(theta), Ex= E sin(theta) cos(phi), Ey= E sin(theta) sin(phi)) using programmable geometric lookup tables. The TEC sums these EMC and HAC energies separately over 4 towers for transmission to the Adder Card, located in the same crate
In parallel with the energy sums, the TEC also performs tests for quiet towers (Q bit -- a value of energy consistent with noise and less than ``minimum ionizing"), towers with the ratio of EMC to HAC energy consistent with an electromagnetic shower (E bit) and towers with the amount of EMC and HAC energy consistent with muonic (M bit) energy deposits. The TEC also tests the sum of HAC and EMC energy against against six different thresholds and for overflow (energy beyond the input dynamic range). The trigger tower energy thresholds used in this analysis are shown in Table 1. They are programmable and can be changed, with the requirement that each threshold be a factor of two greater than the one below it. The TEC forwards the results of these tests to the Adder Card.
| Threshold number | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|---|---|---|
| Threshold (bit representation) | 000 | 001 | 010 | 011 | 100 | 101 | 110 | 111 |
| Tower energy greater than (GeV): | - | 1.25 | 2.5 | 5.0 | 10.0 | 20.0 | 40.0 | * |
The eight analog channels in each TEC produce an EMC energy sum and a HAC energy sum for each of four trigger towers. Each channel can sum two inputs, for a total of sixteen possible signal inputs per TEC. This feature is provided to complete the summation of the EMC and HAC energies in those regions of the calorimeter where two TSC outputs are required to produce partial energy sums for a single trigger tower.
Although each TEC makes EMC and HAC sums of the four towers for the digitized values of Etotal, ET, Ex, and Ey, should a trigger be accepted, the individual tower EMC and HAC energy digitizations stored in a FIFO buffer are sent to the Fast Clear[4] for additional processing and transmission to the data acquisition system.
Figure 10: Organization of the TEC front end. (12452 bytes, EPS format)
Up to 16 signals from a TSC are received by a single Trigger Encoder Card (TEC). However, only 8 of these may be independently digitized; 4 are EMC and 4 are HAC. The basic organization is that the EMC and HAC sums from 4 trigger towers are digitized by each TEC. In those cases where two HAC sums were grouped with an EMC sum, the card digitizes the HAC sums in pairs from up to 8 tower sections. Each of the channels on the TEC receives its input from 2 connectors. Each input is received by a single operational amplifier configured as a differential receiver. The outputs of these differential receivers are summed, in pairs, by a third amplifier (CLC502) with high and low clamping thresholds. The clamping is applied to protect the FADCs that follow in the circuit. This input configuration provides for the combination of 2 separate HAC trigger tower sums before amplification. This is used where sums are combined from different modules of the calorimeter. Such sums cannot be made out on the calorimeter modules. They can only be made on signals that overlap closely in time.
The output of the summing amplifier is applied to the low gain FADC. It is also applied to a second amplifier (CLC501) which produces the input for the high gain FADC. Both these amplifiers have clamping on their outputs, 2 nsec propagation times, and settling times of 12 nsec. The Comlinear CLC502, with gains between 1 and 8, is used for the low gain channels, and the Comlinear CLC501, with gains between 7 and 50, is used for the high gain channels. The gains of these amplifiers are set so that full scale corresponds to a 2V output into 50 Ohms.
The TEC sets full scale for all high gain EMC and HAC channels to EMAX=12.5 GeV, and sets two low gain scales, one for FCAL and the other for BCAL and RCAL. The FCAL TECs have a low gain channel with full scale at EMAX=400 GeV, and the BCAL and RCAL TECs have a low gain channel with full scale at EMAX=100 GeV. Since the least significant bit for each of these scales is EMAX/256, the high gain scales are .05 GeV/bit, and the low gain scale is 1.6 GeV/bit for the FCAL and 0.4 GeV/bit for the BCAL and RCAL. The offsets for all the high gain channel Comlinear amplifiers are set together on one TEC by a single DAC, and those of the low gain channels are set by a second DAC. This allows independent adjustment of the FADC pedestals for the high and low gain channels.
After amplification, each signal is digitized by an 8-bit FADC, Motorola 10319. The least significant bit is equivalent to 7.8 mV. Therefore, the high gain FADC is digitizing signals that are 7.8/32 mV on the cable. Noise in the system is less than four counts on any individual high gain channel.
The outputs of the high and low gain FADCs are OR-tied together. The overflow bit of the high gain FADC is used to disable the high gain FADC outputs and enable those of the low gain FADC. The value of both the high gain and low gain FADC overflow bits are written into a register along with the output of the active converter. This register is clocked with a 96 nsec clock, whose phase is fixed with respect to the FADC clock. The overall phase of the FADC/register pair can be adjusted, independently for each channel, to set the FADC sampling aperture to the peak of the incoming waveform.
A second register, following the FADC/register pair, synchronizes the incoming data with the 96 nsec clock driving the entire trigger system in lockstep. The register holds 10 bits of data, the 8 bits of FADC data (either high or low) and the high and low channel overflow bits.
The first page of the Linearization Memory converts the raw FADC pulseheight and range information into a calibrated energy on two different 8-bit scales, depending on whether the high or low gain FADC data was used. This is determined by the high gain FADC overflow bit (0 if high gain was used, 1 if low gain was used). When the high gain FADC data is converted, it is placed on a scale of 12.5 GeV/256 = 49 MeV/bit, and when the low gain is converted, it is placed on a scale of 400 GeV/256 = 1.6 GeV/bit for the FCAL and 100 GeV/256 = 0.39 GeV/bit for the BCAL and RCAL. The value of true energy corresponding to each FADC value is recorded as an 8-bit word at the address of the FADC value. This energy is fully corrected for gain, pedestal and nonlinearities. Energies below a low threshold, presently at about 500 MeV, are set to zero. The values in the linearization memory are determined by comparison with the calibrated calorimeter analog physics and charge injection data as processed through the data acquisition system.
The 8 bits of energy, along with the high gain FADC overflow bit are placed in a 9-bit register for the geometric factor memories that feed the E, ET, Ex, and Ey values to the adder trees. The contents of this 9-bit register are also placed in a 64x9 FIFO and stored for use by the Fast Clear. Data at the head of this FIFO is timed in to correspond with a Trigger Accept propagating back down through the trigger system from the GFLT.
The second page of the Linearization Memory contains 8-bit words that include one bit (``M'') indicating the section (either HAC or EMC) has an energy that is consistent with that deposited by a minimum ionizing particle. A second bit indicates that the section has an energy less than that which is consistent with a minimum ionizing particle, and therefore is tagged as quiet (``Q''). The remaining six bits place the energy on a compressed (nonlinear) scale between minimum ionizing and the maximum possible energy that could be deposited. The value of the six bits ranges between 0 and 62. The value of 63 is reserved for when the low gain FADC overflow is set. The layout of the TEC front end linearization and tests for one trigger tower (1/4 of a TEC) is shown in Figure 11.
Figure 11: Layout of TEC front end linearization and tests. (33680 bytes, EPS format)
The 8 bits of energy from the linearization memory is presented to two additional TTL BiCMOS memories (Geometric Factor), organized into two pages apiece. In addition to the linearized energy, the corresponding overflow bits from both the high and low gain FADCs are included to make up a 10 bit address. An eleventh bit, clocked at 48 nsec, switches between the two pages. The first and second pages of the first memory contain E and ET values, respectively, while the first and second pages of the second memory contain EX and EY values, respectively.
The values in these memories are stored as 8 bits. For the total energy sum, the scale is set for all channels at 400 GeV/256 = 1.6 GeV/bit. Since the maximum value of ET is 75 GeV, the ET (E sin(theta)) values for all channels are placed on a scale of 75 GeV/256 = 0.29 GeV/bit. Since the Ex (E sin(theta) cos(phi)) and Ey (E sin(theta) sin(phi)) values are signed numbers ranging between -75 GeV and +75 GeV, they are expressed in 2's- complement notation on a scale of 75 GeV/128 = 0.58 GeV/bit. The output pages of these memories are used as inputs to two parallel adder trees, clocked at 48 ns. The first page of the first memory provides the E for the first adder tree, and 48 nsec later, the second page provides the E sin(theta). The first page of the second memory provides the E sin(theta) cos(phi) to the second adder tree, and 48 nsec later, the second page provides the E sin(theta) sin(phi).
Figure 12: Trigger encoder card adder tree. (14832 bytes, EPS format)
New results from the 2 HAC sum networks and the 2 EMC sum networks are multiplexed onto one set of 9 lines, translated to ECL and transmitted over 9 bus lines on the backplane at a 12 nsec rate. Each of the 7 TECs in a half Trigger Crate broadcasts data on one of 7 sets of bus lines. The set used by a TEC is selected under software control.
Each test memory address location has a four bit word consisting of three bits of energy threshold test (T1, T2, T3) and one bit of electromagnetic test (``E'' bit). The three bits of energy threshold test contain the result of testing the sum of the EMC and HAC energies against six energy thresholds. The E bit is set by a comparison of the EMC and HAC section energy. As in the case of the energy threshold test bits, the EM bit can be set by any arbitrary function of the 6 EMC and 6 HAC compressed energy scale bits that form the table address. The Q and M bits from the EMC and HAC section registers are combined in separate Q and M AND's, resulting in trigger tower Q and M bits.
The results of the tests are contained in 6 bits: the "quiet" test bit (Q),
the minimum ionizing test bit (M), the electromagnetic test bit (E), and
the three energy threshold test bits (T1, T2, T3). This data is
multiplexed, on a tower by tower basis, to six lines, translated to ECL,
and further multiplexed to 3 bus lines on the modified J2 and J3 split
backplanes at a 12 nsec rate.
5. Trigger Adder Cards
The Adder Card has 2 principal functions. The first is to continue the process
of summing up the energies begun on the TEC. The second is to perform pattern
tests on the bits that accompany the energy sums. These pattern tests include
counting the number of trigger towers passing each of the energy thresholds,
summing up the energy from the threshold test bits in subregions of the region
covered by the adder card, and finding isolated muons and electrons.
As shown in Figure 13, there are two 9U high double-width Adder Cards, which are identical in all respects and reside in the middle of the VME crate in positions 10 and 12. One Adder Card is inserted to the right and the other to the left of the split in the J2 and J3 backplanes. They perform several functions, the first of which is to continue the process of obtaining the total E, ET, Ex, and Ey. The Adder Card also handles clock distribution, recognition of isolated Minimum Ionization events, recognition of isolated Electromagnetic events, comparison of cell energy against preset thresholds, and some simple histogramming (counting) of the individual cell utilization. Most of the logic is ECL to provide the performance required to process data arriving at nearly 1 Gbyte/sec. A short printed circuit card connects the Adder cards together in the front of the crate. This card transfers data and clocks across the split backplane.
Figure 13: Schematic outline of a CFLT crate including Trigger Adder Cards, TECs, crate processor card and monitor card. Connections to Fast Clear, CFLTP, and Trigger Sum Cards are also shown. (36600 bytes, EPS format.
As a result of their central location, the Adder Cards are used to distribute clocks to the Trigger Encoder Cards arrayed on either side. The 96 nsec and 12 nsec clocks are differential ECL signals, fed from the CFLTP on a cable containing only clocks. There is separate, equal-length cabling, from the CFLTP to each of the Adder Cards. The Adder Card generates gated 96, 48, 24, and 12 nsec clocks from the CFLTP 12 nsec clock. These clocks may be stopped and single stepped under VME control. All actions in the crate occur at the time of the rising edge of the 12 nsec clock.
Seven TECs on each half of a trigger crate output their data to the nearest of two adder cards located in the center of the crate. The Adder Cards operate as a master and slave, exchanging data to perform their tasks. They continue adding the digitized Etotal, ET, Ex, and Ey for those EMC and HAC channels serviced by the crate, perform local sums using threshold information for the subregions shown in Figure 14, count up numbers of towers passing the various thresholds, and perform pattern tests on the Q, M, and E bits.
Figure 14: Subregions of the calorimeter trigger regions
(0-7 in F/RCAL, 8-F in BCAL).
(58249 bytes, EPS format)

The pattern logic searches for contained isolated electrons and muons in the interior 5 X 6 tower section of each 7 X 8 trigger region and for edge isolated electrons and muons on each of the four remaining sides of the trigger region. The two Adder Cards then send sums of Etotal, ET, Ex, and Ey to the CFLTP, along with summaries of the number of edge isolated and contained electrons and muons found in the region. The CFLTP further processes this information, and sends its results on to the global first level trigger processor (GFLTP)[2].
Up to this point both Adder Cards have been performing the same operations in parallel. The adder cards are identical in that each have the circuitry just described as well as one more stage of addition. Each card feeds its results to this final stage. It also feeds the same result to the front panel printed circuit board. The front panel printed circuit board connecting the two adder cards is bidirectional. One of the Adder Cards is designated as the "Master" and the other as the "Slave". This nomenclature is in no way related to Master and Slave as applied to the VME bus. The data from the "Slave" adder tree is sent to the input of the final addition stage on the "Master". Thus the last Adder on the "Master" combines the data of the two Adder Cards and stores the sum and its carry ORed with the overflow bit. This crate level total is fed out of the front of the Adder Card on a cable to the Trigger Processor crate.
The Adder Card calculates the energy in 8 subregions of the 56-trigger tower region by computing the energy from the threshold test information. These subregions are programmable and may be completely remapped under software control. One set of subregions is shown in Figure 14.
The two Adder Cards together are able to sum the energy in up to 8 different subregions of the 56 trigger towers. These sums are performed on the data coming into each Adder Card independent of the data being received by its partner. The two Adder Cards send partial subregion sums to each other, with only one performing the final summation to complete the subregion sum. They also compute a total energy from the individual subregion sums. This mode of operation is the result of the need for parallel computation, to handle the high data rates, on cards inserted on either side of the split backplane. The only difference between the two cards is the designation of one of them as the Master and the other as the Slave. The principal distinction between the two is which data each sends to the other.
The identification of isolated electrons is important because it permits triggering without a Q2 cut. The isolation requirement is necessary to prevent a high background rate from hadrons faking electrons by passing at an angle from the EMC section of one tower through the HAC section of an adjacent tower. This is happens because of the nonprojective calorimeter tower geometry. The isolation requirement does not veto many legitimate neutral current events. The pattern logic first tries to establish an electromagnetic signal in a central region of either 1,2,3, or 4 towers, and then checks that the surrounding (up to 12) trigger towers are quiet.
The logic to identify the isolated muons is the same as that used for the isolated electrons except, where one uses the E bits, the other uses the M bits. The identification of muons has always been important to triggering, because it is a signal of heavy quark, neutral heavy lepton, or gauge boson production. While the ZEUS detector has a first level muon trigger, its rate tends to be quite high and combination with the CFLT is used to reduce this rate. In addition, the muon systems are not always able to exactly identify the crossing that triggered the event, whereas all calorimeter triggers are tied to a single crossing. The existence of a good calorimeter muon trigger also is useful for calibration purposes, since it indicates a minimum ionizing particle with a trajectory traversing a single trigger tower.
The pattern logic of the Adder Card pair uses the upper 3 bits (Q, E, and M) of the data coming from each of the 14 Trigger Encoder Cards in the trigger crate. The Isolated Minimum Ionization test is performed on the Master Adder Card and the Isolated Electromagnetic test is performed on the Slave. The front panel printed circuit connector, bridging the two cards, carries the appropriate infomation between the left and right halves of the crate. The pattern logic on each Adder Card searches for a single or group of up to 4 trigger towers with electromagnetic or minimum ionizing test bits set that are completely surrounded by "quiet" trigger towers. These are counted as contained isolated electrons or contained isolated muons. The identification of isolated electrons is performed by a three-step algorithm that is illustrated in Figure 15.
Figure 15: Three-step algorithm used to identify isolated electrons by the Trigger Adder Card pattern logic. (7376 bytes, EPS format)
The pattern logic also searches for groups of trigger towers that satisfy these conditions, but have one or more electromagnetic or minimum ionizing trigger towers next to the 56-trigger tower region boundary. In these cases, isolation on one of the sides cannot be proved without checking the adjacent 56-trigger tower region. These are counted as edge isolated electrons or edge isolated muons. The total number of edge isolated muons and electrons are counted for each of the four edges. Examples of edge and contained isolated muon patterns are shown in Figure 16. The pattern logic also flags which of the four individual edges are "quiet", i.e. have Q, M, or E bits on in every trigger tower. This information is used by the Trigger Processor in verification of edge isolated electrons and muons.
Figure 16: Examples of two patterns accepted as contained isolated muons(left figure) and two patterns accepted as edge isolated muons(right figure). Trigger Towers are labelled as quiet (Q), minimum ionizing (M), or do not care(X). The same patterns satisfy the isolated electron test if the same trigger towers passing the minimum ionizing test, would pass the electromagnetic test instead. (22106 bytes, EPS format)
The conditions defining an isolated muon or electron trigger tower are slightly different depending on whether the candidate electron or muon trigger tower occurs in the edge or the contained subregion of the 56-trigger tower region. In order to check for an isolated trigger tower it is necessary to perform a 16-trigger tower search in the neighborhood containing the trigger tower of interest. Seven overlapping 16-trigger tower neighborhoods, across the top of the 56-trigger tower region, are tested and then moved down by one trigger tower row and tested again every 12 nsec. The testing of an isolated muon or electron in a region is completed in two pipelined steps. While the first step is being performed on a particular 16-trigger tower neighborhood, the second step is being performed on the 16-tower neighborhood centered one row above in the 56 tower area. The logic used to identify isolated electrons is shown in Figure 17. A total of eight 12 nsec steps is required to fully analyze a 56 trigger tower region for edge and contained isolated events.
Figure 17: Trigger Adder Card hardware used in the pattern logic to identify isolated electrons. (15137 bytes, EPS format)
6. Calorimeter First Level Trigger Processor
The Calorimeter First Level Trigger Processor (CFLTP) does the final
trigger calculations with data from the Adder Cards and ships these results
to the Global First Level Trigger (GFLT) for the final trigger decision.
The Adder Cards send the number of contained isolated electrons, edge
isolated electrons, contained isolated muons and edge isolated muons. The
edge counts are also broken down into totals for each of the 4 edges of the
56-trigger tower region. The Adder Cards also send the number of trigger
towers that exceeded each (or no) threshold, but not the next higher
threshold, number that overflowed their low gain channel, and whether these
overflows are corrected for by setting the energy of their tower to zero
for the energy sums. The Adder Cards send the energy in 8 specific
subregions of the 56-trigger tower region as calculated from the trigger
towers passing the thresholds. The total energy in the 56-trigger tower
region calculated from these thresholds is also sent. The Adder Cards also
send the EMC and HAC 56-trigger tower sums of total energy and transverse
energy, Ex and Ey.
The CFLTP produces information on the global and regional status of the calorimeter trigger. It indicates for each of the 16 regions whether there was an electronic overflow and whether this overflow was corrected for by adding in zero energy. The CFLTP counts the total number of isolated muons and isolated electrons. These sums are made by first adding all of the contained isolated muons and electrons. The edge muons and electrons are matched up with the appropriate edge of the neighboring 56-trigger tower region. If the adjoining edge is quiet or has an isolated edge electron or muon in it, a single isolated electron or muon is included in the sum. If the adjoining edge is neither quiet nor contains an isolated muon or electron, the isolated muon or electron is not counted.
The number of isolated electrons and muons found in the detector is the sum of the contained isolated electrons and muons and the verified edge isolated electrons and muons. The totals of contained isolated muons and electrons within 56-trigger tower regions are reported by the Adder Cards. Edge isolated electrons and muons in a specific 56-trigger tower region are verified by checking the edge region of the adjacent 56-trigger tower region for another edge isolated isolated electron or muon, or all ``quiet''. In the case where another isolated electron or muon is found, the two neighboring edge isolated electrons or muons are combined and counted as a single contained isolated electron or muon. In the case where the edge region adjoining an edge isolated electron or muon is "quiet", the edge isolated electron or muon is counted as a single contained isolated muon or electron. In the case where the adjacent edge region is neither "quiet" nor contains an isolated electron or muon, the edge isolated electron or muon is rejected.
There are eight input cards in the trigger processor crate to handle data from all sixteen regional crates. These drive a 20 layer backplane at 48ns, which provides a 2048 bit wide bus to the algorithm cards.[5]
The Communications Card distributes the control signals from the GFLT to the
calorimeter DAQ system and receives back busy and error messages which it
passes to the GFLT. It also checks for errors in synchronization with the
Adder Cards and sends these to the GFLT. For standalone testing, it can
generate the GFLT clock and control signals. Lastly, it allows for adjustment
of delay on the various clocks it sends out: on the Adder 96 ns clock so that
the flash digitizers hit the correct window on the data, on the Input card 48
ns clock so that the Input Card latches the Adder Data correctly, and on the
backplane clock so that the algorithm cards receive the data correctly from
the input card.
7. Global First Level Trigger
The calculations of the CFLTP take 2 microsec to complete. The results from
the Trigger Processor are shipped to the Global First Level Trigger (GFLT)
that combines different detector elements for a final trigger decision in 5
microsec. A typical example is to require an ET > 12 GeV in the
calorimeter accompanied by a Central Tracking Detector multiplicity of
tracks pointing at the interaction point. The GFLT is also pipelined,
accepting data and sending a decision every 96 nsec. Due to propagation
delays in receiving the data and sending the trigger, the GFLT calculation
time is also about 2 microsec. After the issuing of the GFLT, the event is
analyzed by the Second Level Trigger. This system can handle a rate of up
to 1 kHz.
8. CFLT Performance
Over 550 nb-1 of data have been collected with the CFLT in the 1993
run. The total CFLT trigger rate has been about 100 Hz with thresholds as
low as 500 MeV. The CFLT was used for every ZEUS first level trigger
employed in physics analysis and was responsible for the majority of the
reduction of rate written to tape (a few Hz). There was zero trigger rate
from noise for trigger tower energy above 500 MeV.
The second group of triggers are composed of low resolution energy sums of all towers (including those adjacent to the beampipe) above 625 MeV (1250 MeV in the FCAL) in specific subregions of the calorimeter. The sum of EMC trigger towers in the RCAL beampipe is used as the primary trigger for Deep Inelastic Scattering physics, with a threshold as low as 3.8 GeV and an output rate of a few tens of Hz. The sum of RCAL EMC towers away from the beampipe is also used. The FCAL sums of towers near and away from the beampipe have been used in muon-coincidence triggers and for rejection of inelastic events in various low-Q2 event triggers. The energy deposited near the beampipe is separately monitored for each of the 8 calorimeter regions that surround it. In addition, the BCAL total energy, RCAL tower energy over the kinematic limit, and whether each of the 16 calorimeter regions were ``quiet'' (i.e. containing no tower with more than 500 MeV) were also operating for diagnostic purposes.
The isolated lepton logic has run in parallel with the energy sum trigger logic for monitoring purposes. Since the HERA luminosity was less than 10% of the design value during the 1993 run, it was not needed in the main trigger. The isolated lepton trigger was then studied with real event data taken in the 1993 run to optimize thresholds in the pattern logic and produce the results below so that it could be activated for the 1994 HERA run period.
As discussed above, the CFLT executes the isolated electron algorithm by searching in the calorimeter for patterns of 1-4 towers with the E bits set surrounded by towers with the Q bits set. When such a pattern is found it results in a positive CFLT decision. A tower is defined as quiet if the EMC and the HAC energies deposited in that tower are smaller than the two programmable thresholds Qemc and Qhac respectively. Electron bits (E) are set based on a user programmable function E=F(EMC,HAC). In order to study and optimize this algorithm we collected data from several ep data runs with the isolated electron trigger active. The optimum values for Qemc, Qhac, and F(EMC,HAC) were selected in order to obtain maximum beam gas rejection and high physics acceptance. We have chosen Qemc=2.52 GeV so that the trigger has 100% efficiency (including energy sharing between towers) at electron energy of 5 GeV, and Qhac=0.95 GeV. The electron bits were set if any of the following conditions were satisfied: E = {(EMC >= Qemc).AND.(HAC <= Qhac)} OR { (EMC >= Qemc).AND.(EMC/HAC >= 3)}.
This isolated electron configuration results to a factor of 2 reduction in Beam Gas background relative to the REMC subtrigger and has the same efficiency as the REMC subtrigger for neutral current events. In Figure 18 we present the beam gas reduction achieved using the isolated electron relative to the simple REMC subtrigger trigger at 3.75 GeV as a function of the Qhac, EMC/HAC cuts. The overall efficiency of the isolated electron relative to the standard ZEUS electron finder was 98%. In Figure 19 we present this efficiency as a function of the electron energy Eel.
Figure 18: The isolated electron trigger beam gas background in arbitrary units as a function Qhac and EMC/HAC parameters. The dot-dashed line indicates the rate of the REMC threshold subtrigger at 3.75 GeV. (47005 bytes, EPS format)
Figure 19: Efficiency versus electron energy. The efficiency rises between Eel 2.5 and 5 GeV due to events where the electron energy is shared between trigger towers (Qemc = 2.52 GeV). Events with Eel >= 30 GeV are not electrons since they are outside the kinematic limit. (29243 bytes, EPS format)
9. Conclusions
The ZEUS Calorimeter First Level Trigger system calculates global and
regional energy sums and searches for isolated muons and electrons. It
completes these tasks in a pipelined fashion in 2 microsec, accepting new
data and shipping out results once every 96 nsec. It uses digital logic
with memory lookup tables to provide programmable flexibility for changing
calibration, thresholds and even the types of tests made. The results of
its calculations are shipped to the Global First Level Trigger (GFLT). The
CFLT reduces the present background rate of 10 kHz of tower energy > 500
MeV to about 100 Hz. At full HERA luminosity, the GFLT must reduce the
initial beam-gas rate from about 100 kHz to 1 kHz. The GFLT is also
pipelined, reaching a decision in 2 microsec after receipt of the component
data. The First Level Trigger system reads in a new event every 96 nsec and
returns a trigger to the detector components for that event 5 microsec
after it occurred.
The ZEUS Calorimeter First Level Trigger system has operated reliably and according to design in 3 data-taking runs at HERA, and has accumulated 600 nb-1 integrated luminosity of physics data, at a 100 Hz output rate. It analyzes the data from 13K PMT's, collecting signals from a mostly nonprojective calorimeter at a 10 MHz input rate. It consists of a 1792 channel system contained in 16 9U modified VME crates with 14 TECs and 2 double-width Adder Cards, followed by a Trigger Processor in a custom-backplane crate that analyzes 5 GBytes/sec. The modified VME crate cards and backplanes run at 83 MHz with 14 Gbits/sec of data transfer. The system makes extensive use of memory lookup tables so that thresholds, EM/HAC ratios, geometric factors, dead/noisy channel switchoff, calibration and subregion definitions are programmable. This flexibility has proven very useful and has enabled frequent changes in configurations to accomodate changing physics requirements. The isolated electron pattern recognition trigger has proven to be a powerful tool for beam-gas rejection. The analysis of data taken so far indicates sufficient performance to handle luminosity up to the HERA design value.