save covariance matrix in the output root file