A CdTe pixel detector–CMOS preamplifier for room temperature high sensitivity and energy resolution X and γ ray spectroscopic imaging