# Calculate the energy of points in the detector volume

**URL:** <https://root-forum.cern.ch/t/calculate-the-energy-of-points-in-the-detector-volume/34197>\
**Category:** Newbie\
**Created:** [May 22, 2019, 12:03pm UTC](https://root-forum.cern.ch/t/calculate-the-energy-of-points-in-the-detector-volume/34197 "2019-05-22T12:03:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ideaisgenerator](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ideaisgenerator/32/19208_2.png) [@ideaisgenerator](https://root-forum.cern.ch/u/ideaisgenerator)\
**Post date:** [May 22, 2019, 12:03pm UTC](https://root-forum.cern.ch/t/calculate-the-energy-of-points-in-the-detector-volume/34197/1 "2019-05-22T12:03:04Z")

</div>

How in root to calculate the energy of points in the detector volume? There are 10 different volumes in the detector and need to know the accumulated energy for each individual volume.  
Thanks !

---

<div class="post-metadata">

**Author:** ![agheata](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/agheata/32/37311_2.png) [@agheata](https://root-forum.cern.ch/u/agheata)\
**Post date:** [May 22, 2019, 2:42pm UTC](https://root-forum.cern.ch/t/calculate-the-energy-of-points-in-the-detector-volume/34197/2 "2019-05-22T14:42:33Z")

</div>

Hi, it depends what and how you are doing it, you need to be a bit more specific. Are you doing a simulation of track propagation? Do you control the stepping in these volumes, or are you getting called by a transport engine (Geant4) and you have the energy deposit at each point?
