Single CDE Energy and Position Reconstruction

  1. Subtract pedestals from ADC values
  2. Convert pedestal subtracted ADC values to DAC scale, using spline function DAC = adc2dac(ADC)
  3. Calculate logratio = log(DACplus/DACminus)
  4. Calculate position using spline function pos = lograt2pos(logratio) for appropriate combination of diodes at two sides of the crystal (PbigMbig,PsmallMbig, PbigMsmall, PsmallMsmall)
  5. In case of different diodes at two ends of a crystal, calculate the ratio of the signals in big and small diodes using spline function ratioBig2Small(pos) for the end of the crystal where the small diode is read out; using this ratio, calculate the big diode DAC signal for this crystal end.
  6. Calculate the geometric average DAC value for the crystal: DACavr = sqrt(DACplus*DACminus)
  7. Calculate the energy using the gain for appropriate diode (Big or Small): energy = gain*DACavr