# Energy Deposition for Photons

**URL:** <https://root-forum.cern.ch/t/energy-deposition-for-photons/54619>\
**Category:** Garfield++\
**Created:** [April 25, 2023, 3:33am UTC](https://root-forum.cern.ch/t/energy-deposition-for-photons/54619 "2023-04-25T03:33:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yash\_Joshi](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/yash_joshi/32/33161_2.png) [@Yash\_Joshi](https://root-forum.cern.ch/u/Yash_Joshi)\
**Post date:** [April 25, 2023, 3:33am UTC](https://root-forum.cern.ch/t/energy-deposition-for-photons/54619/1 "2023-04-25T03:33:23Z")

</div>

I’m trying to get a an energy deposition curve for a photon in a parallel plate ionisation chamber.  
I’m using track.TransportPhoton(0., 0., 0., 0., 5886., 1., 0., 0., ne) to generate a photon.  
And, I’m looping over the produced “ne” electrons using track.GetElectron(k, xe, ye, ze, te, ee, dx, dy, dz).  
For charged particles, cluster.energy works fine so is there a similar function which can be utilised to do the same but for photons.

Thanks in advance.  
PS. I tried going through the source code but couldn’t find any.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [April 25, 2023, 5:30am UTC](https://root-forum.cern.ch/t/energy-deposition-for-photons/54619/2 "2023-04-25T05:30:55Z")

</div>

Welcome to the ROOT forum.

I guess @hschindl can help you.

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [April 25, 2023, 5:47am UTC](https://root-forum.cern.ch/t/energy-deposition-for-photons/54619/3 "2023-04-25T05:47:52Z")

</div>

Hi,  
in case of `TransportPhoton`, the cluster energy is the energy of the photon.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [May 9, 2023, 5:48am UTC](https://root-forum.cern.ch/t/energy-deposition-for-photons/54619/4 "2023-05-09T05:48:48Z")

</div>

Closed on May 9, 2023, 5:48am UTC

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