Beam particle source/target in C++

Hi,

Do you have the source code for this. I have been trying in 4.12 and no luck whatsoever. Theres just no good documentation for c++ particle emission.

Thanks!