hi Lorenzo,
when I ran a test using your described domain/detector settings, I saw the detected photon positions are distributed in the way shown in the attached figure
this is expected because mcx detects photons at the intersections between the spherical detector and the boundary. because the thickness of the domain, your detectors capture photons from both z=0 and z=10 planes.
I suppose the presence of the photons on the transmission side may skew your TPSF.
if you want to limit the detected photons only on the z=0 plane,
you can do so by using the exit position (cfg.issaveexit=1, or
cfg.savedetflag contains flag 'x')
plotmesh(detp.p(detp.p(:,3)<1,:), '.')
let me know if this addresses your issue.
Qianqian