a–f, Representative images of DG from c-fos-tTA mice injected with AAV9-TRE-ChR2-EYFP and sacrificed after the following treatments: a, On Dox. b, Off Dox for two days in home cage. c, Same as (b) followed by fear conditioning (FC). d, Same as (c) except no shock was delivered (NS). e, Same as (c), five days post-training. f, Same as (c), 30 days post-training. g, Same as (b) followed by kainic acid injection to induce seizure. Residual green signal in (a) and (f) are from nuclear-localized c-fos-shEGFP (see Fig. 1 legend). h, Percentage of ChR2-EYFP–positive cells after various treatments represented by (a) to (g) (n = 5 subjects each; F6,28 = 94.43, *P < 0.05; ***P < 0.001). i, j, Representative DG cells after light stimulation in c-fos-tTA mice injected with AAV9-TRE-ChR2-EYFP (i) or AAV9-TRE-EYFP (j). k, Percentage of c-fos–positive cells among ChR2-EYFP–positive cells or EYFP-positive cells after light stimulation (n = 3 subjects each; ***P < 0.001). l, Light-evoked single unit activity of a DG neuron from a c-fos-tTA mouse injected with AAV9-TRE-ChR2-EYFP. Peri-event histogram (top) and raster plot (bottom) show reliable and precisely time-locked spiking relative to the onset of 15 ms light pulses (blue bar). Inset shows an overlay of waveforms for all the spikes during light stimulation. m, Spike probability and peak latency for all the light-responsive cells (n = 10) recorded as in (l). n, Multi-unit activity in the DG from a c-fos-tTA mouse injected with AAV9-TRE-ChR2-EYFP in response to trains of 10 light pulses (15 ms; blue bars) at 20 Hz. Scale bar in (a) 250 μm.