I don't see why it should be

    sqrt(x^2 + sqrt(y^2 + z^2))

They are only number of events so it might not be wrong but if you assing some fake untis to the error you see they do not come out right.