I stored variables x and x’ in a TH2D. Is there any built-in function or method to compute mean of square of a particular variable and the mean of x’*x. I am calculating beam emittance.
_ROOT Version: 6.24 (PyROOT via conda)
_Platform:Centos7
_Compiler: gcc9
Hi,
The histogram accumulates during filling and stores these quantities in order to compute mean and std along a particular axis. They can be retrieved calling TH2::GetStats.