420 Photon-Counting Detectors

§701.5 reduced every spectroscopic quantity to an integer count. This section examines the count.

420.1 The chain in each detector

No detector counts photons. Each converts a photon to a charge carrier with some probability, amplifies the result, and applies a threshold or an analogue-to-digital conversion. The integer appears only at the last step.

\[ \begin {array}{ll} \text {CCD} & \gamma \to e\text {--}h\ (\mathrm {QE}) \to \text {potential well} \to \text {serial transfer (CTE)} \\ & \to \text {amplifier} \to \text {ADC} \to \text {minus bias} \to \mathrm {ADU} \\[3pt] \text {CMOS} & \gamma \to e^- \to \text {in-pixel amplifier (per-pixel gain)} \\ & \to \text {column ADC} \to \text {per-pixel nonlinearity} \to \mathrm {ADU} \\[3pt] \text {HgCdTe} & \gamma \to e^- \to \text {integrating node} \to \text {nondestructive reads} \\ & \to \text {ramp fit} \to \text {slope reported as flux} \\[3pt] \text {MCP} & \gamma \to \text {photocathode } e^-\ (\mathrm {QE}) \to \text {avalanche } (10^6) \\ & \to \text {anode charge} \to \text {discriminator} \to \text {``one count''} \\[3pt] \text {SPAD} & \gamma \to \text {avalanche} \to \text {quench} \to \text {dead time} \to \text {pileup correction} \\ \end {array} \]

Everything before the final arrow is continuous. The threshold sits exactly at the point where the integer is produced.

420.2 Quantum efficiency

The first step is probabilistic. Typical values:

\[ \begin {array}{lrr} \text {detector} & \mathrm {QE} & \text {photons for } 100\ e^- \\ \hline \text {CCD, thinned, } 600\ \mathrm {nm} & 0.95 & 105 \\ \text {HgCdTe H2RG, } 1.6\ \mu \mathrm {m} & 0.85 & 118 \\ \text {CMOS, back-illuminated} & 0.80 & 125 \\ \text {SPAD Si, } 650\ \mathrm {nm} & 0.50 & 200 \\ \text {CCD, thick, } 400\ \mathrm {nm} & 0.35 & 286 \\ \text {PMT bialkali} & 0.28 & 357 \\ \text {MCP bialkali, } 400\ \mathrm {nm} & 0.25 & 400 \\ \text {MCP solar-blind, } 200\ \mathrm {nm} & 0.15 & 667 \\ \end {array} \]

A statement that \(100\) photons were counted is a statement that some number of electrons was counted, divided by a quantum efficiency. For a solar-blind microchannel plate the divisor is \(6.7\); the reported photon number exceeds the measured electron number by that factor, and the factor is a calibration.

Quantum efficiency depends on wavelength, temperature and bias voltage, and is established against a standard lamp whose absolute output was itself measured with a detector.

420.3 Gain

The conversion from electrons to digital units is set by the gain, and the gain is determined from a photon transfer curve: the variance of a flat field is plotted against its mean, and the slope gives \(1/g\) on the assumption that the charge is Poisson-distributed. Whether it is Poisson-distributed is what the gain would be needed to check.

Realised values in the pipelines examined — LSST ip_isr and cp_pipe, ccdproc, desispec, the JWST and HST calibration pipelines, and GalSim — span

\[ \texttt {gain} \in \{0.0,\ 1.0,\ 1.61,\ 1.7,\ 2.0\},\qquad \texttt {readnoise} \in \{0.0,\ 1.4826,\ 6.5,\ 10.0\}\ e^-, \]
with gain appearing in \(22\) assignments and readnoise in six. A scan for adjudicating constants across the seven packages returns \(401\) assignments over \(178\) distinct names, of which sigma (\(46\)), gain (\(22\)), threshold (\(13\)) and nsig (\(11\)) are the most frequent.

420.4 The count is a function of gain and read noise

Simulating Poisson signal with Gaussian read noise, dividing by the gain and rounding to the nearest digital unit:

\[ \begin {array}{rrrrr} \text {true } e^- & g & \sigma _{\rm RN} & \text {recovered} & \text {scatter} \\ \hline 1 & 1.0 & 3.0 & 1.008 & 3.17 \\ 1 & 2.0 & 5.0 & 1.004 & 5.13 \\ 1 & 5.0 & 10.0 & 1.012 & 10.15 \\ 10 & 1.0 & 3.0 & 9.991 & 4.37 \\ 10 & 5.0 & 10.0 & 9.996 & 10.59 \\ 100 & 1.0 & 3.0 & 99.975 & 10.43 \\ 100 & 5.0 & 10.0 & 100.017 & 14.20 \\ 1000 & 1.0 & 3.0 & 999.90 & 31.76 \\ \end {array} \]

The mean is recovered to better than \(1\%\) in every case; the bias of quantisation is small. What changes is the scatter, which at one electron is between three and ten times the signal. A single photoelectron is not distinguishable from zero at any of these settings, and the number reported for a faint source is the mean of a distribution whose width is set by the electronics rather than by the source.

420.5 Detection is a threshold

Injecting \(300\) Gaussian sources with log-normally distributed amplitudes into a noise field, smoothing, and detecting local maxima above \(n\sigma \):

\[ \begin {array}{rrrrr} n & \text {detected} & \text {matched} & \text {completeness} & \text {purity} \\ \hline 1.0 & 2713 & 286 & 95.3\% & 10.5\% \\ 1.5 & 1745 & 283 & 94.3\% & 16.2\% \\ 2.0 & 938 & 274 & 91.3\% & 29.2\% \\ 3.0 & 292 & 246 & 82.0\% & 84.2\% \\ 4.0 & 215 & 218 & 72.7\% & \sim 100\% \\ 5.0 & 193 & 199 & 66.3\% & \sim 100\% \\ 7.0 & 139 & 145 & 48.3\% & \sim 100\% \\ 10.0 & 89 & 93 & 31.0\% & \sim 100\% \\ \end {array} \]

The number of detections falls from \(2713\) to \(89\) — a factor of \(30\) — as the threshold runs from \(1\sigma \) to \(10\sigma \). Completeness falls from \(95\%\) to \(31\%\) and purity rises from \(10\%\) to unity. There is no threshold at which both are high, and no value of \(n\) is preferred by the data.

Above \(4\sigma \) the tabulated purity slightly exceeds unity because two injected sources occasionally fall within the matching radius and are counted once; the ratio is reported as given by the matching procedure.

The statement that a survey detected \(N\) objects is therefore a statement about \(n\). Every catalogue quotes one.

420.6 Nine circular calibrations

Each detector parameter is measured with an apparatus whose own calibration requires the parameter.

\[ \begin {array}{ll} \text {quantum efficiency} & \leftarrow \text {standard lamp} \leftarrow \text {its absolute output, measured with a detector} \\[2pt] \text {gain} & \leftarrow \text {photon transfer curve} \leftarrow \text {variance} = \text {mean}/g \leftarrow \text {Poisson assumed} \\[2pt] \text {nonlinearity} & \leftarrow \text {flat-field sequence} \leftarrow \text {signal} \propto \text {exposure time assumed} \\[2pt] \text {dark current} & \leftarrow \text {dark frames} \leftarrow \text {absence of light assumed} \\[2pt] \text {brighter-fatter kernel} & \leftarrow \text {bright-star profiles} \leftarrow \text {point source assumed} \leftarrow \text {profile after correction} \\[2pt] \text {charge transfer efficiency} & \leftarrow \text {EPER or X-ray line} \leftarrow \text {known charge} \leftarrow \text {gain} \\[2pt] \text {ramp fit (IR)} & \leftarrow \text {linear before saturation assumed} \leftarrow \text {nonlinearity correction} \\ & \leftarrow \text {measured from ramps} \\[2pt] \text {MCP gain} & \leftarrow \text {single-photoelectron distribution} \leftarrow \text {definition of ``one''} \leftarrow \text {threshold} \\[2pt] \text {dead time} & \leftarrow \text {count rate} \leftarrow \text {Poisson assumed} \leftarrow \text {verified by count rate} \\ \end {array} \]

None of these is a defect. Iterative and self-consistent calibration is how detectors are characterised, and it converges. The structure is the same as that of §452: the fixed point exists and is reached, and what it is depends on where the iteration starts.

\[ \boxed { \begin {aligned} &\text {measured} && \text {a voltage, digitised at a threshold} \\ &\text {supplied} && \mathrm {QE},\ g,\ \sigma _{\rm RN},\ \text {dark rate, nonlinearity, CTE, BFK} \\ &\text {chosen} && n\sigma \ \text {for detection; saturation level; mask bits} \\ &\text {reported} && \text {``}N\ \text {photons from } M \text { objects''} \\ \end {aligned}} \]

The integer count of §701.5 is not the terminus of the chain downward. It is produced at a threshold, from a continuous voltage, using parameters each of which was calibrated against an apparatus requiring the same parameters. Above it sit the wavelength scale, the combination principle, the reference frames and the cosmological parameters, all of which were traced in the preceding sections; below it there is a photocurrent, and the photon is an inference from it divided by a number between \(0.15\) and \(0.95\).

Remark 420.1 (Nine circular calibrations). Each detector parameter is measured with an apparatus whose own calibration requires that parameter.

\begin{align} \text {quantum efficiency} \quad &\leftarrow \quad \text {standard lamp} \ \leftarrow \ \text {its output, measured with a detector} \tag{22162}\\ \text {gain} \quad &\leftarrow \quad \text {photon transfer curve} \ \leftarrow \ \sigma ^{2} = \mu /g \ \leftarrow \ \text {Poisson assumed} \tag{22163}\\ \text {nonlinearity} \quad &\leftarrow \quad \text {flat-field sequence} \ \leftarrow \ \text {signal} \propto t_{\rm exp}\ \text {assumed} \tag{22164}\\ \text {dark current} \quad &\leftarrow \quad \text {dark frames} \ \leftarrow \ \text {absence of light assumed} \tag{22165}\\ \text {brighter-fatter kernel} \quad &\leftarrow \quad \text {bright-star profiles} \ \leftarrow \ \text {point source assumed} \tag{22166}\\ \text {charge transfer efficiency} \quad &\leftarrow \quad \text {EPER or X-ray line} \ \leftarrow \ \text {known charge} \ \leftarrow \ \text {gain} \tag{22167}\\ \text {ramp fit (IR)} \quad &\leftarrow \quad \text {linearity before saturation} \ \leftarrow \ \text {nonlinearity correction} \tag{22168}\\ \text {MCP gain} \quad &\leftarrow \quad \text {single-photoelectron distribution} \ \leftarrow \ \text {the threshold} \tag{22169}\\ \text {dead time} \quad &\leftarrow \quad \text {count rate} \ \leftarrow \ \text {Poisson assumed} \ \leftarrow \ \text {verified by count rate} \tag{22170}\end{align}

None of these is a defect. Iterative and self-consistent calibration is how detectors are characterised, and it converges. The structure is that of §452: the fixed point exists and is reached, and which fixed point it is depends on where the iteration starts.

PIC