Calculate logZ and H from each run