# Electron initial energy in garfield++

**URL:** <https://root-forum.cern.ch/t/electron-initial-energy-in-garfield/56683>\
**Category:** Garfield++\
**Created:** [October 11, 2023, 1:14pm UTC](https://root-forum.cern.ch/t/electron-initial-energy-in-garfield/56683 "2023-10-11T13:14:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lucas\_Batista](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/lucas_batista/32/31917_2.png) [@Lucas\_Batista](https://root-forum.cern.ch/u/Lucas_Batista)\
**Post date:** [October 11, 2023, 1:14pm UTC](https://root-forum.cern.ch/t/electron-initial-energy-in-garfield/56683/1 "2023-10-11T13:14:38Z")

</div>

Hi everyone,  
I am tring to understand some parameters in the simulation of GEM.  
When I was reading the guide of Garfield++ in CERN’s website ([GEM | Garfield++](https://garfieldpp.web.cern.ch/garfieldpp/examples/gem/)) in the topic of electron transport I observed that the electron initial energy Is set as 0,1 ev and  
In the guide it says this is a typical energy in the electric field of the drift gap. My question to you is why the energy is 0,1 ev?  
Thanks for your help,  
Lucas

---

<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:** [October 11, 2023, 1:46pm UTC](https://root-forum.cern.ch/t/electron-initial-energy-in-garfield/56683/2 "2023-10-11T13:46:15Z")

</div>

I think @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:** [October 12, 2023, 8:27pm UTC](https://root-forum.cern.ch/t/electron-initial-energy-in-garfield/56683/3 "2023-10-12T20:27:57Z")

</div>

Hi,  
the value of 0.1 is indeed a bit arbitrary. To verify whether it is a reasonable value, you can determine the energy distribution of the electrons at the electric field in the drift gap using the method `EnableElectronEnergyHistogramming` of `AvalancheMicroscopic`, which will fill a histogram of the electron energy every time a collision happens. See for instance this example

> **[Examples/GainFluctuations/arco2.C · master · garfield / garfieldpp · GitLab](https://gitlab.cern.ch/garfield/garfieldpp/-/blob/master/Examples/GainFluctuations/arco2.C?ref_type=heads#L59)**
>
> http://garfieldpp.web.cern.ch/garfieldpp/

or page 83 in the user guide.  
Let me know if this makes sense; if not I can also send you a simplified example that illustrates the use of the function `EnableElectronEnergyHistogramming`…

---

<div class="post-metadata">

**Author:** ![Lucas\_Batista](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/lucas_batista/32/31917_2.png) [@Lucas\_Batista](https://root-forum.cern.ch/u/Lucas_Batista)\
**Post date:** [October 19, 2023, 1:59pm UTC](https://root-forum.cern.ch/t/electron-initial-energy-in-garfield/56683/4 "2023-10-19T13:59:31Z")

</div>

thanks @hschindl, I will study your code and the method.

---

<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:** [November 2, 2023, 1:59pm UTC](https://root-forum.cern.ch/t/electron-initial-energy-in-garfield/56683/5 "2023-11-02T13:59:52Z")

</div>

Closed on November 2, 2023, 1:59pm UTC

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