Statistical error

Hello experts,
is h->GetMeanError() , h->GetRMSError() a correct way to calculate statistical error in root? h is the histogram generated from the distribution of numbers.

That depends on the statistics / distribution. Also, the statistical error is more often determined per bin, not for a distribution - but that depends on which problem you’re solving.