a, b Traces showing the effects of pretreating mice with haloperidol (5 mg·kg-1; Halo) or WAY100635 (5 mg kg-1; WAY) on Ca2+ signals of dopamine neurons in response to cocaine (Coc) and MDMA. Saline (Sal) was infused as control. c The overall effect of haloperidol or WAY100635 pretreatment on the responses of dopamine neurons [n = 7 dopamine mice for each test group; for cocaine administration with pretreatment, F(3, 24) = 40.76, p < 0.0001, one-way ANOVA with Tukey’s post-hoc test; for MDMA administration with pretreatment, F(3, 24) = 39.24, p < 0.0001, one-way ANOVA with Tukey’s post-hoc test]. d ROC analysis measuring the effect of haloperidol and WAY100635 on the inhibitory responses to cocaine or MDMA [the same group size as in (c) for cocaine administration with pretreatment, F(3, 24) = 65.44, p < 0.0001, one-way ANOVA with Tukey’s post-hoc test; for MDMA administration with pretreatment, F(3, 24) = 47.54, p < 0.0001, one-way ANOVA with Tukey’s post-hoc test]. e, f Representative traces of from serotonin neurons showing the effect of pretreating mice with haloperidol or WAY100635 on the responses to cocaine or MDMA. g The overall effect of haloperidol or WAY100635 pretreatment on the responses of serotonin neurons [n = 9 serotonin mice for Sal-Sal and Sal + Cocaine, n = 6 for Halo + Coc, n = 8 for WAY + Coc, F(3, 26) = 24.02, p < 0.0001, one-way ANOVA with Tukey’s post-hoc test; n = 5 for Sal + Sal, Sal-MDMA, Halo + MDMA, and WAY + MDMA, F(3, 16) = 55.60, p < 0.0001, one-way ANOVA with Tukey’s post-hoc test]. h ROC analysis to discriminate among the effects of haloperidol and WAY100635 on cocaine-induced and MDMA-induced inhibition [the same group size as in (c) for cocaine administration with pretreatment, F(3, 28) = 39.52, p < 0.0001, one-way ANOVA with Tukey’s post-hoc test; for MDMA administration with pretreatment, F(3, 16) = 57.62, p < 0.0001, one-way ANOVA with Tukey’s post-hoc test]. Error bars indicate SEM (c, d, g, h). *p < 0.05; **p < 0.01; ***p < 0.001; ns not significant