!============================================================================== ! Nominal Gain Control DAC Values ! ! This file is Trics\D0_Config\Gains_1_16_1_32_rev_5.tti ! ! Some day this file may be called by Boot_Auxi.mcf ! ! Some day these Nominal Gain values will be stored by Trics ! and reloaded into the Serial DACs every time the L1CT is initialized ! ! Note: VME_Access does not store the values, but writes them out immediately ! ! Created : 21-May-2002 P.L. ! 11-JUN-2002 D.E. Add Eta 5:8 Recall that in the eta range 5:8 ! that you need to boost the HD gain by a factor of ! 1.60 over the nominal value. ! 14-JUN-2002 D.E. Add Eta 9:12 ! 26-JUN-2002 D.E. Based on Bob's initial estimate of the calibration, ! edit the gains file to make the following changes ! to the EM gains: ! ! Original Resulting ! EM Eta Nominal EM Energy New DAC ! Index Gain Over Estimate Gain Code ! ------ -------- ------------- ---- ---- ! 1 1.54 1.2 1.28 156 ! 2 1.48 1.2 1.23 151 ! 3 1.37 1.2 1.14 142 ! 4 1.24 1.2 1.03 131 ! ! 5 1.08 1.2 0.90 117 ! 6 0.93 1.9 0.49 75 ! 7 0.76 1.2 0.63 90 ! 8 0.66 1.9 0.35 61 ! ! 9 1.53 1.2 1.27 155 ! 10 1.26 1.6 0.79 106 ! 11 1.05 1.2 0.87 114 ! 12 0.87 1.6 0.55 82 ! ! The gains for the Hadronic signals are thought to be ! to be about right. ! ! Recall to calculate the required Gain DAC code ! from the desired gain value: ! ! ---> DAC_Code = 102 x (rerquired_gain + 0.25) ! 13-AUG-2002 D.E. The problem with the resistor installed at R80 is now ! understood as the cause of the high gain for the ! even eta EM towers at eta 5 and above. But a few of ! the eta 5:20 were actually put together with the ! correct resistor at R80 and thus have an ! artificially small signal with the current gain ! file. So for these 53 TT's crank their EM gain up ! by a factor of 1.45 ! So they become: ! ! x1.45 ! Original Current equals ! EM Eta Nominal EM new EM DAC ! Index Gain Gain Gain Code ! ------ -------- ------- ------ ---- ! 6 0.93 0.49 0.71 98 ! 8 0.66 0.35 0.51 78 ! 10 1.26 0.79 1.15 143 ! 12 0.87 0.55 0.80 107 ! 21-AUG-2002 D.E. There are 3 more EM channels in the eta 5:20 range ! with the correct value R80. These are: +10,23 ! +12,4 and +12,8. So add these to the list at the ! end to get their gain cranked back up. ! 22-AUG-2002 D.E. For both eta +7 and -7, for both EM and Had, ! decrease the gain so that it is 2/3 of the current ! value. ! x0.67 ! equals new ! Eta Current new DAC ! Index Gain Gain Code ! ------ ------- ------ ------ ! 7 EM 0.63 0.42 69 ! 7 HD 1.22 0.82 109 ! 30-OCT-2002 D.E. There are more EM channels in the eta 5:20 range ! with the correct value R80. These are: -12,5 ! -12,9 -12,21 -10,5 -10,9 -10,10 -8,10 ! +6,20 +10,4 +12,6 Add these to the section ! near the end of this file to get their gain cranked ! back up to the nominal value. ! 30-OCT-2002 D.E. We are running low frequency filtering in the ! following 8 TT's: eta -1:-4 phi 17 and phi 31. ! The gain of these Term-Attn-Brd channels is only ! about 75% of their nominal value. So, for now, we ! would like to increase the EM & HD gain of these ! 8 TT's by a factor of 1.33 ! ! x1.33 ! equals new ! Eta Current new DAC ! Index Gain Gain Code ! ------ ------- ------ ------ ! 1 EM 1.28 1.71 200 ! 2 EM 1.23 1.64 193 ! 3 EM 1.14 1.52 181 ! 4 EM 1.03 1.37 166 ! ! 1 HD 1.54 2.05 235 ! 2 HD 1.48 1.97 227 ! 3 HD 1.37 1.83 212 ! 4 HD 1.24 1.65 194 ! 19-NOV-2002 D.E. There is another EM channel in the eta 5:20 range ! with the correct value R80. It is: +10,5 ! Replace some Term-Attn-Brd's that had the wrong value ! R80 with Term-Attn-Brd's with the correct value R80. ! This requires setting the gain back up to the correct ! nominal value for: +6,10 +6,27 +6,29 +6,30 +6,31. ! 11-DEC-2002 D.E. Because of some work replacing Term-Attn-Brd's we now ! have some nore EM channels in the eta 5:20 range ! with the correct value R80. This requires setting ! the gain back up to the correct nominal value for: ! -12,7 -12,19 -10,22 -6,9 and ! +8,12 +10,20 +10,27 ! ! ! 18-DEC-2002 B.K. We are taking out the ad hoc portion of the gain ! adjustment from Jun 26 which was eta-dependent for ! EM channels at even etas past eta of +/- 5. The ! bulk of the adjustment for these etas was ! correcting for the R80 problem, which causes a known ! gain change of 1.45. The change in scale is: ! ! eta old old/1.2 new/1.2 new ! --- --- ------- ------- --- ! 6,8 1.9 1.58 1.45 1.74 ! 10,12 1.6 1.33 1.45 1.74 ! ! This causes the gains to change according to: ! ! eta old-bad old-good new-bad new-good ! --- ------- -------- ------- -------- ! 6 0.49 0.71 0.53 0.77 ! 8 0.35 0.51 0.38 0.55 ! 10 0.79 1.15 0.72 1.05 ! 12 0.55 0.80 0.50 0.72 ! ! where 'bad' means wrong R80, and 'good' means correct ! R80. ! ! D.E. Channels -2,1 HD and -2,5 HD have a broken ! center conductor pin on the BLS backplane. We ! are grounding the dead side of the input and then ! need to boost the gain by 2x. This is done by ! using special Term-Attn-Brd's for these channels ! which boost the gain by 1.65 Reaching the rest of ! the way to the full 2x (ie. 2.0/1.65 = 1.21) will ! accomplished by setting the gains high by a factor ! of 1.21 for these two channels. ! ! Normal eta -2 HD gain is 1.48 ! 1.21 times this is a gain of 1.79 ! The Gain DAC Value for a gain of 1.79 is 208 ! ! 19-FEB-2003 Today I checked through all the Term-Attn-Brd's in the ! area eta +5:+8 phi 17:32 All Term-Attn-Brd's in this ! area now have correct R3 & R80 so the whole area needs to ! be in the list of TT's that have their eta +6 and eta +8 ! EM gain set back up to the correct gain for correct R80's. ! This modification gives the file Gains_1_12_1_32_rev_9.tti ! ! 6-MAR-2003 Today I checked through all the Term-Attn-Brd's in the ! area eta +5:+8 phi 1:16 All Term-Attn-Brd's in this ! area now have correct R3 & R80 & C7 so the whole area needs ! to be in the list of TT's that have their eta +6 and eta +8 ! EM gain set back up to the correct gain for correct R80's. ! This modification gives the file Gains_1_12_1_32_rev_10.tti ! ! 1-APR-2003 Today work in eta -5:-8 phi 14:32 replacing all Term-Attn ! Brd's with one that have correct R3, R80 C7. So with this ! Rev 11 set all the gains in this region back to their ! nominal values. ! ! 9-APR-2003 Today work in eta -5:-8 phi 1:13 replacing all Term-Attn. ! Now all Term-Attn-Brd's in |eta| = 5:8 have been replaced ! with cards that have correct R80 and R3 and C7. So now for ! |eta| 6 and 8 make the nominal gain the default gain that ! is loaded and for these 2 eta's completely drop the section ! that takes care of the "few" cards with correct R80's. ! ! Start including in this file the gains for |eta's| 13:16 ! We will now have one gain file for |eta| 1:16 and ! the other gain file will be for just |eta| 17:20 ! ! 23-APR-2003 Today work in eta +9:+12 phi 19:32 and eta -9:-12 ! phi 25:32 replacing all Term-Attn. So for these eta's ! 10 and 12 crank their gain back up to what it should be ! for correct R80's. ! ! The special Term-Attn-Brd's in eta -1:-4 phi's 17 and 31 ! that had the RC network to change the low frequency cutoff ! have been removed. So remove from this gains file the special ! gain adjustment for those 8 TT's EM and HD. ! ! 21-MAY-2003 Today work in eta +9:+12 phi 1:18 replacing all the Term- ! Attn-Brd's with one with the correct R80 & R3 & C7. So now ! for these eta's 10 and 12 crank their gain back up to what ! it should be for the correct R80. ! ! 29-MAY-2003 Today work in eta -9:-12 phi 1:24 replacing all the Term- ! Attn-Brd's with one with the correct R80 & R3 & C7. That is ! the last of the Term-Attn-Brd's that needed to be replaced ! because of incorrect value components by the assembly house. ! So return all these channels back up to there nominally ! correct gain. ! ! 3-SEPT-2003 Revision 5 of the Gains file adjusts the running gains to ! match Rahmi's analysis of 300k events using Bob's L1 Cal ! Trig Examine. Note: that you need to be carefull how you ! handle the TT eta's 1:8 Hadronic to include the effect of ! the incorrect HD BLS resistors in TT eta's 1:8 and the ! effect of the special Term-Attn-Brd's used in TT eta 1:4 ! to compensate for the effect of these HD BLS resistors. ! ! ! !============================================================================== !------------------------------------------------------------------------------ ! Define some cosmetic constants used in defining PROM coefficients !------------------------------------------------------------------------------ ! Trigger Tower Channel Type $TT_EM_Channel= 0 $TT_HD_Channel= 1 ! Trigger Tower Eta Sign $TT_Eta_Pos= 0 $TT_Eta_Neg= 1 !------------------------------------------------------------------------------ ! Gain Control DAC Values ! EM Channel !------------------------------------------------------------------------------ TT_Channel: $TT_EM_Channel TT_Eta_Sign: $TT_Eta_Neg To_TT_Eta_Sign: $TT_Eta_Pos TT_Phi: 1 To_TT_Phi: 32 TT_Eta_Magn: 1 Gain_Control_DAC: 155 ! Gain = 1.27 TT_Eta_Magn: 2 Gain_Control_DAC: 150 ! Gain = 1.22 TT_Eta_Magn: 3 Gain_Control_DAC: 141 ! Gain = 1.13 TT_Eta_Magn: 4 Gain_Control_DAC: 130 ! Gain = 1.02 TT_Eta_Magn: 5 Gain_Control_DAC: 116 ! Gain = 0.89 TT_Eta_Magn: 6 Gain_Control_DAC: 103 ! Gain = 0.76 TT_Eta_Magn: 7 Gain_Control_DAC: 85 ! Gain = 0.58 TT_Eta_Magn: 8 Gain_Control_DAC: 77 ! Gain = 0.50 TT_Eta_Magn: 9 Gain_Control_DAC: 165 ! Gain = 1.37 TT_Eta_Magn: 10 Gain_Control_DAC: 141 ! Gain = 1.13 TT_Eta_Magn: 11 Gain_Control_DAC: 121 ! Gain = 0.94 TT_Eta_Magn: 12 Gain_Control_DAC: 104 ! Gain = 0.77 TT_Eta_Magn: 13 Gain_Control_DAC: 89 ! Gain = 0.62 TT_Eta_Magn: 14 Gain_Control_DAC: 77 ! Gain = 0.50 TT_Eta_Magn: 15 Gain_Control_DAC: 177 ! Gain = 1.49 TT_Eta_Magn: 16 Gain_Control_DAC: 150 ! Gain = 1.22 !------------------------------------------------------------------------------ ! Gain Control DAC Values ! HD Channel !------------------------------------------------------------------------------ TT_Channel: $TT_HD_Channel TT_Eta_Sign: $TT_Eta_Neg To_TT_Eta_Sign: $TT_Eta_Pos TT_Phi: 1 To_TT_Phi: 32 TT_Eta_Magn: 1 Gain_Control_DAC: 204 ! Gain = 1.75 TT_Eta_Magn: 2 Gain_Control_DAC: 197 ! Gain = 1.68 TT_Eta_Magn: 3 Gain_Control_DAC: 172 ! Gain = 1.44 TT_Eta_Magn: 4 Gain_Control_DAC: 159 ! Gain = 1.31 TT_Eta_Magn: 5 Gain_Control_DAC: 228 ! Gain = 1.99 TT_Eta_Magn: 6 Gain_Control_DAC: 223 ! Gain = 1.94 TT_Eta_Magn: 7 Gain_Control_DAC: 109 ! Gain = 0.82 TT_Eta_Magn: 8 Gain_Control_DAC: 122 ! Gain = 0.95 TT_Eta_Magn: 9 Gain_Control_DAC: 182 ! Gain = 1.53 TT_Eta_Magn: 10 Gain_Control_DAC: 154 ! Gain = 1.26 TT_Eta_Magn: 11 Gain_Control_DAC: 122 ! Gain = 0.95 TT_Eta_Magn: 12 Gain_Control_DAC: 105 ! Gain = 0.78 TT_Eta_Magn: 13 Gain_Control_DAC: 90 ! Gain = 0.63 TT_Eta_Magn: 14 Gain_Control_DAC: 78 ! Gain = 0.51 TT_Eta_Magn: 15 Gain_Control_DAC: 189 ! Gain = 1.60 TT_Eta_Magn: 16 Gain_Control_DAC: 159 ! Gain = 1.31 !------------------------------------------------------------------------------ ! ! 18-DEC-02 ! Increase the gain for -2,1 HD and -2,5 HD by a factor of 1.21 This is ! part of the compensation for the missing differential signal in each of ! these channels. ! !------------------------------------------------------------------------------ TT_Channel: $TT_HD_Channel TT_Eta_Sign: $TT_Eta_Neg TT_Eta_Magn: 2 TT_Phi: 1 Gain_Control_DAC: 230 ! Gain = 2.03 TT_Phi: 5 Gain_Control_DAC: 230 ! Gain = 2.03