detector signal simulation

implementation of convolution of energy losses, photon poisson
statistics and detector efficiency for simulation of detector signal on
the basis of the number of particles that had hit the detector.