Creation of cells and plot energy deposition in 3D histogram

Dear Experts in my ROOT file I have 1D Histogram of energy distribution, X y Z position of hits and Cell ID of detector. I have calorimeter box with dimensions of 10cm x 10cm x 20cm. I need to divide this Box Volume into 1mm^3 size of cells and want to see energy deposition in each of these cells and finally plot 3D histogram. Kindly Guide me in this regard.

Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided

A TH3 should be the right data format.

That I know but don’t know How to divide into cells and then fill each cell for energy deposition

The “cells” are the bins. At the histogram creation time you specify the binning, that will define the cells.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.