How to get the relative error from mesh results

Dear all,
I have a question about the relative error of the results.
I created a mesh based on scoring commands to get deposited energy

/score/create/boxMesh Tumor
/score/mesh/boxSize 2.0125 2.0125 0.5 cm
/score/mesh/translate/xyz 0. 0. 0. cm
/score/mesh/nBin 161 161 1
/score/quantity/energyDeposit eDep

I want to know how many relative errors each mesh element have. How can I do that.

You will get three numbers for each bin in the output, total(value), which is sum of all entries in the scorer, total(val^2), which is sum of all entries squared and entry, which is number of entries in the scorer. You can calculate the variance as total(val^2)/(number of runs)-(total(value)/(number of runs))^2, and from that the standard error of the mean as sqrt(variance/(number of runs)) and relative error sqrt(variance/(number of runs))/(total(value)/(number of runs)).

Dear Marek,
Thank you so much.