# How to visualize the when 1.0 ev initial energy of electron hit the GEM wall also through tracks?

**URL:** <https://root-forum.cern.ch/t/how-to-visualize-the-when-1-0-ev-initial-energy-of-electron-hit-the-gem-wall-also-through-tracks/62525>\
**Category:** Garfield++\
**Created:** [December 23, 2024, 10:33am UTC](https://root-forum.cern.ch/t/how-to-visualize-the-when-1-0-ev-initial-energy-of-electron-hit-the-gem-wall-also-through-tracks/62525 "2024-12-23T10:33:05Z")\
**Posts on this page:** 5\
**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:** [December 23, 2024, 10:33am UTC](https://root-forum.cern.ch/t/how-to-visualize-the-when-1-0-ev-initial-energy-of-electron-hit-the-gem-wall-also-through-tracks/62525/1 "2024-12-23T10:33:05Z")

</div>

Hii, @Piet @hschindl sir, i want to simulate and make plot using GEM detector parameters  
when using and select Ar/CO2 as projectile and set its initial energy to 1.0 eV . The target consists of a single layer of GEM detector with a thickness of 35 μm. i don’t know my question is wrong or right.  
but when i initiate 1.0 ev of electron in GEM (aval.AvalancheElectron(xi, yi, zi, 0., 1.0, 0., 0., 0.)).  
when 1.0 eV electron hit the wall of GEM, how it visualize?. i don’t know how to visualize using what can like library will be use but i thing it will be look like that.  
 ![Screenshot from 2024-12-23 15-48-55](https://root-forum.cern.ch/uploads/default/original/3X/b/2/b293977d97403d2b2983acd777d4425f58b9f700.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:** [December 23, 2024, 2:29pm UTC](https://root-forum.cern.ch/t/how-to-visualize-the-when-1-0-ev-initial-energy-of-electron-hit-the-gem-wall-also-through-tracks/62525/2 "2024-12-23T14:29:56Z")

</div>

Hi,

I think @hschindl is the right person to ping.

Cheers,  
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:** [January 6, 2025, 9:57am UTC](https://root-forum.cern.ch/t/how-to-visualize-the-when-1-0-ev-initial-energy-of-electron-hit-the-gem-wall-also-through-tracks/62525/3 "2025-01-06T09:57:38Z")

</div>

Hi,  
apologies for the late reply! I’m afraid I’m not sure I understand the question. Nothing special happens in Garfield++ when an electron hits a wall.  
If you want to visualise the evolution of an electron avalanche, you can use `ViewDrift`.

---

<div class="post-metadata">

**Author:** ![djjansse](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/8baadc/32.png) [@djjansse](https://root-forum.cern.ch/u/djjansse)\
**Post date:** [January 6, 2025, 9:58am UTC](https://root-forum.cern.ch/t/how-to-visualize-the-when-1-0-ev-initial-energy-of-electron-hit-the-gem-wall-also-through-tracks/62525/4 "2025-01-06T09:58:59Z")

</div>

I may have misunderstood your question, but there seems to be some confusion regarding the purpose of the `AvalancheElectron` function. This function simulates the microscopic trajectory of an initial electron, starting from a specified position, time, and energy. It tracks the electron as it interacts with the surrounding gas through successive collisions. At each collision, a specific interaction—such as ionization (producing new electrons) or elastic scattering—is selected, and the electron’s properties are updated accordingly. The simulation halts when the electron encounters a medium that is not gas, such as the copper (Cu) in the GEM. You can visualize these results using `ViewDrift`.

Therefore, the algorithm is designed to model the stochastic processes of electron interactions with the gas, rather than collisions with the GEM itself. If you are specifically interested in energy deposition during collisions with the GEM, I would recommend using GEANT4 for such calculations.

Kind regards,  
Djunes

---

<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:** [January 20, 2025, 9:59am UTC](https://root-forum.cern.ch/t/how-to-visualize-the-when-1-0-ev-initial-energy-of-electron-hit-the-gem-wall-also-through-tracks/62525/5 "2025-01-20T09:59:47Z")

</div>

Closed on January 20, 2025, 9:59am UTC

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