How to calculate error in ROOT