Mathematica analysis with analytical inversion based on Herwig++ events, investigation of minimization and shape of the xisquared