Auxiliary function which calculates sum values Bayesian MCMC estimation of parameters of generalized Thomas process