Interchanging a real integral with a twisted orbital integral
Let $G,T$ be second-countable locally compact Hausdorff groups with their Borel measurable structures and inversion-invariant Haar measures $\mu,\nu$. Let $j:T\to G$ be a group homomorphism that is a closed embedding. Let $\theta:G\to G$ be a continuous homomorphism, let $\delta\in G$, and let $z:\mathbb R\to G$ be continuous. Put $a(x)=x^{-1}\delta\theta(x)$ and suppose $a(j(t))=\delta$ for every $t\in T$.
Assume that for every compact $D\subseteq G$ there are compact sets $C\subseteq G$, $B\subseteq\mathbb R$ such that $$a(x)\in D\Longrightarrow x\in j(T)C,\qquad z(s)a(x)\in D\Longrightarrow s\in B.$$ For every continuous compactly supported $\varphi:G\to\mathbb C$, the function $x\mapsto\int_{\mathbb R}\varphi(z(s)a(x))\,ds$ is measurable, and $$Q\!\left(x\mapsto\int_{\mathbb R}\varphi(z(s)a(x))\,ds\right)=\int_{\mathbb R}Q\!\left(x\mapsto\varphi(z(s)a(x))\right)\,ds.$$
The quotient integral is defined using a fixed choice of a measurable $\rho:G\to[0,\infty]$ satisfying $\int_T\rho(j(t)x)\,d\nu(t)=1$ for every $x$: $Q(F)=\int_GF(x)\rho(x)\,d\mu(x)$, with the convention $\infty\mapsto0$ when converting $\rho$ to a real-valued density. If no such density exists, $Q(F)=0$. The real integrals use Lebesgue measure.