# About secondary ionization

**URL:** <https://root-forum.cern.ch/t/about-secondary-ionization/53564>\
**Category:** Garfield++\
**Created:** [February 10, 2023, 4:12am UTC](https://root-forum.cern.ch/t/about-secondary-ionization/53564 "2023-02-10T04:12:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![littlepi](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/littlepi/32/23633_2.png) [@littlepi](https://root-forum.cern.ch/u/littlepi)\
**Post date:** [February 10, 2023, 4:12am UTC](https://root-forum.cern.ch/t/about-secondary-ionization/53564/1 "2023-02-10T04:12:59Z")

</div>

Dear GARFIELD experts,

I am using Garfield to simulate the ionization of the gaseous detector. As it is shown in the following code, there are two loops: The outer one loops on the primary clusters, and the inner one loops on the electrons associated to the primary clusters. As it is well known:  
(a) for each primary cluster, it can eject more than one electrons.  
(b) if the ejected electrons by the primary ionization have large enough energies, they can form secondary ionizations, and produce more electrons.

I am not sure by calling the GetElectron method of TrackHeed, the accessed electrons contain both process (a) and (b) or not? If it is true, is there a way to distinguish the two processes?

Code:

while (track.GetCluster(xc, yc, zc, tc, nc, ec, extra)) {  
for (int j = 0; j \< nc; ++j) {  
track.GetElectron(j, xe, ye, ze, te, ee, dx, dy, dz);  
}  
}

Thank you!

---

<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:** [February 10, 2023, 7:49am UTC](https://root-forum.cern.ch/t/about-secondary-ionization/53564/2 "2023-02-10T07:49:49Z")

</div>

I think @hschindl can help.

---

<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:** [February 10, 2023, 9:56am UTC](https://root-forum.cern.ch/t/about-secondary-ionization/53564/3 "2023-02-10T09:56:36Z")

</div>

Hi,  
by default, step (b) is included, i. e. the electrons in a “cluster” are “conduction” electrons with energies below the ionisation threshold. You can switch off step (b) by calling `TrackHeed::DisableDeltaElectronTransport()`. Then the electrons in a “cluster” are the delta and Auger electrons knocked out by the primary charged particle.

I’m in the process of trying to modify/simplify the interface such that one can access both the delta/Auger electrons and the low-energy electrons produced in the subsequent cascade…

---

<div class="post-metadata">

**Author:** ![littlepi](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/littlepi/32/23633_2.png) [@littlepi](https://root-forum.cern.ch/u/littlepi)\
**Post date:** [February 10, 2023, 2:01pm UTC](https://root-forum.cern.ch/t/about-secondary-ionization/53564/4 "2023-02-10T14:01:07Z")

</div>

Thanks a lot for the explanation.

---

<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:** [February 24, 2023, 2:01pm UTC](https://root-forum.cern.ch/t/about-secondary-ionization/53564/5 "2023-02-24T14:01:46Z")

</div>

Closed on February 24, 2023, 2:01pm UTC

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