Hello experts,
I have create TH3F hist which i am filling with weights
like
hist->SetBinContent(x, y, z, w);
and it may possible then more than one entry goes to each voxel
like
hist->SetBinContent(1, 2, 3, 0.6);
hist->SetBinContent(1, 1, 1, 0.2);
hist->SetBinContent(1, 2, 3, 0.6);
so in this case the bin content for voxel at (1,2,3) will be 1.2 and number of entries in this voxel should be 2.
So is there any function exist that will give me this information about number of entries in a voxel by specifying the bin number in x, y an z.
Now what i want is the average of weight that each voxel has collected. So if get the voxel content and number of entries then average can be computed by dividing the two.
Or is there any function exist that can directly give me this average weight for each voxel.
Regards,
Raman