# How to distinguish every electron produced in the avalanche or ionization?

**URL:** <https://root-forum.cern.ch/t/how-to-distinguish-every-electron-produced-in-the-avalanche-or-ionization/59002>\
**Category:** Garfield++\
**Created:** [April 16, 2024, 6:04am UTC](https://root-forum.cern.ch/t/how-to-distinguish-every-electron-produced-in-the-avalanche-or-ionization/59002 "2024-04-16T06:04:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![newconcept1979](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/newconcept1979/32/26349_2.png) [@newconcept1979](https://root-forum.cern.ch/u/newconcept1979)\
**Post date:** [April 16, 2024, 6:04am UTC](https://root-forum.cern.ch/t/how-to-distinguish-every-electron-produced-in-the-avalanche-or-ionization/59002/1 "2024-04-16T06:04:12Z")

</div>

Is there some identity to these electron like TrackID in Geant4?

---

<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 16, 2024, 6:18am UTC](https://root-forum.cern.ch/t/how-to-distinguish-every-electron-produced-in-the-avalanche-or-ionization/59002/2 "2024-04-16T06:18:47Z")

</div>

No, not really. Do you have a use case for such an ID?

---

<div class="post-metadata">

**Author:** ![newconcept1979](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/newconcept1979/32/26349_2.png) [@newconcept1979](https://root-forum.cern.ch/u/newconcept1979)\
**Post date:** [April 16, 2024, 6:39am UTC](https://root-forum.cern.ch/t/how-to-distinguish-every-electron-produced-in-the-avalanche-or-ionization/59002/3 "2024-04-16T06:39:59Z")

</div>

for Garfield++, no such case. Did you mean a case for Geant4?

---

<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 16, 2024, 6:57am UTC](https://root-forum.cern.ch/t/how-to-distinguish-every-electron-produced-in-the-avalanche-or-ionization/59002/4 "2024-04-16T06:57:08Z")

</div>

No, I meant for what purpose would you need an identifier for each electron?

---

<div class="post-metadata">

**Author:** ![newconcept1979](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/newconcept1979/32/26349_2.png) [@newconcept1979](https://root-forum.cern.ch/u/newconcept1979)\
**Post date:** [April 16, 2024, 7:25am UTC](https://root-forum.cern.ch/t/how-to-distinguish-every-electron-produced-in-the-avalanche-or-ionization/59002/5 "2024-04-16T07:25:43Z")

</div>

I want to record the times of avalanche and the rank.

---

<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:** [April 16, 2024, 12:04pm UTC](https://root-forum.cern.ch/t/how-to-distinguish-every-electron-produced-in-the-avalanche-or-ionization/59002/6 "2024-04-16T12:04:49Z")

</div>

hi @newconcept1979,

You can retrieve the start and endpoints and times of the electrons using `aval.GetElectrons()`. A good example of this is are lines 110-111 described in [this example](https://gitlab.cern.ch/garfield/garfieldpp/-/blob/master/Examples/Gem/gem.C?ref_type=heads#L110).

Kind regards,

Djunes

---

<div class="post-metadata">

**Author:** ![newconcept1979](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/newconcept1979/32/26349_2.png) [@newconcept1979](https://root-forum.cern.ch/u/newconcept1979)\
**Post date:** [April 17, 2024, 12:22am UTC](https://root-forum.cern.ch/t/how-to-distinguish-every-electron-produced-in-the-avalanche-or-ionization/59002/7 "2024-04-17T00:22:25Z")

</div>

@djjansse , thanks, i will try.

---

<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 1, 2024, 12:22am UTC](https://root-forum.cern.ch/t/how-to-distinguish-every-electron-produced-in-the-avalanche-or-ionization/59002/8 "2024-05-01T00:22:44Z")

</div>

Closed on May 1, 2024, 12:22am UTC

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