I have a two state qubit system with initial state $|\psi_s\rangle_i = a|0\rangle+b|1\rangle$ and a detector with initial state $$|\psi_d\rangle_i = \int_{-\infty}^{\infty}\left(N \exp[-\frac{q^2}{2\sigma^2}+ik q]\right)^{\frac{1}{2}}|q\rangle dq$$ where $N$ is the constant such that $|\psi_d\rangle_i$ is a normalized state. The combined initial state can be written as $$ |\psi\rangle_i = |\psi_s\rangle_i |\psi_d\rangle_i \, . $$ The interaction Hamiltonian is $H/\hbar = -g (\sigma_z \otimes P)$, where $P$ is the momentum operator. Therefore the unitary operator acting on $|\psi\rangle_i$ is $U=\exp[i g T (\sigma_z \otimes P)]$. After the interaction, the system state becomes $$ |\psi \rangle_T = U|\psi\rangle_i \, . $$ The von Neumann measurement model says that we should perform a projective measurement on the detector and then perform partial trace over detector in order to get the system state after measurement.
What would be the appropriate measurement operator for the projective measurement over detector?