The temperature drift is determined by looking at the mean ADC-value of the individual runs as a function of time (Fig 6.8). The fluctuation is fitted by a polynomial of third degree. The ADC-values are then corrected on an event-by-event basis.
The total energy Es, deposited for one event, is obtained by summing over all ADC-values ak>4·nk for the 14 inner crystals. The energy Es is assigned to the crystal km with the maximum ADC-value amax:
.
(6.14)
From Es(km) the normalized energy En(km) is calculated according to equation 6.10.

The gain for each crystal is calculated from the requirement that the mean of the normalized energy spectrum of m events in one run is
= 66 MeV. (6.15)

is obtained from the simulation. The mean value and the resulting gain is
calculated for each crystal. In order to decouple the gain matching from the
influence of the gains of the neighboring crystals, only events with
p>0.8 were used for gain matching, where
p=amax/Es, i.e. events with more than 80%
of the shower energy contained in one crystal. The resulting gain values are
displayed in Fig. 6.9.It is clearly visible that the gains of the PMT's for the six crystals of interest were not well matched, leading to gain correction factors between 0.85 and 1.2. The gain factors were calculated from the individual crystal spectra, which had low statistics. In order to avoid large statistical fluctuations, the new gain values were damped by 50% and calculated in two iterations for each run.