# Simulate Photon transport using Heed in single layer gem detector

**URL:** <https://root-forum.cern.ch/t/simulate-photon-transport-using-heed-in-single-layer-gem-detector/62261>\
**Category:** Garfield++\
**Created:** [November 16, 2024, 3:05pm UTC](https://root-forum.cern.ch/t/simulate-photon-transport-using-heed-in-single-layer-gem-detector/62261 "2024-11-16T15:05:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dk\_ntm](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/54ee81/32.png) [@Dk\_ntm](https://root-forum.cern.ch/u/Dk_ntm)\
**Post date:** [November 16, 2024, 3:05pm UTC](https://root-forum.cern.ch/t/simulate-photon-transport-using-heed-in-single-layer-gem-detector/62261/1 "2024-11-16T15:05:43Z")

</div>

Hii @Piet @hschindl sir, i want to simulate Photon transport using Heed in single layer gem detector.  
Sorry if the question is silly, or the answer is obvious…

i don’t know my question is wrong or right but i want to simulate charged particle ionization using Heed. below i have attached my file can you check this and suggest me.  
[fe55.txt](https://root-forum.cern.ch/uploads/short-url/oTrBJwFEMo1xdnt6uL3t7iXV8EV.txt) (2.4 KB)  
also i have attached the histogram

 ![Electron_histogram](https://root-forum.cern.ch/uploads/default/original/3X/c/7/c78984cbd62339de5fda7b4d7f5cb4dab97546c2.png)

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [November 17, 2024, 7:15am UTC](https://root-forum.cern.ch/t/simulate-photon-transport-using-heed-in-single-layer-gem-detector/62261/2 "2024-11-17T07:15:37Z")

</div>

Hi,

I see you correctly pinged @hschindl , but could perhaps adding more context help?

Best,  
D

---

<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:** [November 17, 2024, 7:11pm UTC](https://root-forum.cern.ch/t/simulate-photon-transport-using-heed-in-single-layer-gem-detector/62261/3 "2024-11-17T19:11:22Z")

</div>

Hi,  
just to better understand your question: do you want to simulate ionisation by a photon or by a charged particle (in your post you mention both)?  
For photons, the script you sent looks reasonable to me at first glance. In your histogram you have a huge peak at zero electrons. That’s probably because there is a high chance that the photon will leave the detector without interacting. You might want to change your loop such that you only count events with a non-zero number of ionisation electrons.

---

<div class="post-metadata">

**Author:** ![Dk\_ntm](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/54ee81/32.png) [@Dk\_ntm](https://root-forum.cern.ch/u/Dk_ntm)\
**Post date:** [November 17, 2024, 8:53pm UTC](https://root-forum.cern.ch/t/simulate-photon-transport-using-heed-in-single-layer-gem-detector/62261/4 "2024-11-17T20:53:39Z")

</div>

Sir, i basically want to simulate the Number of electrons produced by a photon with the energy of 8.04 keV simulated in Heed(track) in single layer GEM geometry detector. For this what can i do?For this what can i do?

---

<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:** [November 17, 2024, 9:24pm UTC](https://root-forum.cern.ch/t/simulate-photon-transport-using-heed-in-single-layer-gem-detector/62261/5 "2024-11-17T21:24:59Z")

</div>

Then the script you sent is a good starting point. You’ll need to change the value of `egamma` to 8040 (eV), and perhaps also adjust the range of the histogram.

---

<div class="post-metadata">

**Author:** ![Piet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/piet/32/12536_2.png) [@Piet](https://root-forum.cern.ch/u/Piet)\
**Post date:** [November 18, 2024, 10:03am UTC](https://root-forum.cern.ch/t/simulate-photon-transport-using-heed-in-single-layer-gem-detector/62261/7 "2024-11-18T10:03:11Z")

</div>

Looking at your histogram, this is exactly what you expect. Assume your gas mixture is Ar:CO2 70:30, you can look up in XCOM [1] the absorption factor, at 8keV this is mostly  
photo-electric absorption: 8.47cm2/g. You multiply this with the density of the Ar:CO2 mixture, which is 1.83E-3 g/cm3 to find an absorption (mu) with units cm-1 and you can apply  
the Lambert-Beer law: I = I\_0 exp(-mu\*x). This gives me an absorption of only 5% in 3mm of gas or 15% in 1cm of gas, exactly what you see in your histograms with \>90% zero electrons.

 ![Screenshot 2024-11-18 at 10.57.30](https://root-forum.cern.ch/uploads/default/original/3X/c/2/c289c60700293c09404f26cb2fa192fce930dc62.png)

greets  
Piet  
[1] [XCOM: Photon Cross Sections Database](https://www.nist.gov/pml/xcom-photon-cross-sections-database)

---

<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:** [December 2, 2024, 10:03am UTC](https://root-forum.cern.ch/t/simulate-photon-transport-using-heed-in-single-layer-gem-detector/62261/8 "2024-12-02T10:03:32Z")

</div>

Closed on December 2, 2024, 10:03am UTC

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