# How to calculate nuclear stopping energy in gas

**URL:** <https://root-forum.cern.ch/t/how-to-calculate-nuclear-stopping-energy-in-gas/64831>\
**Category:** Garfield++\
**Created:** [May 7, 2026, 7:39am UTC](https://root-forum.cern.ch/t/how-to-calculate-nuclear-stopping-energy-in-gas/64831 "2026-05-07T07:39:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedro](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pedro/32/37605_2.png) [@pedro](https://root-forum.cern.ch/u/pedro)\
**Post date:** [May 7, 2026, 7:39am UTC](https://root-forum.cern.ch/t/how-to-calculate-nuclear-stopping-energy-in-gas/64831/1 "2026-05-07T07:39:06Z")

</div>

I am using Garfield++ `TrackSrim` to simulate the ionization produced by the Li-7 and alpha particles from the reaction in a gas-filled compensated ionization chamber.

The detector geometry contains a gas gap between electrodes. Some Li ions stop in the gas, while others reach the electrode before stopping.

For each track, I calculate the ionization energy deposited in the gas using:

```auto
for (const auto& cluster : clusters) {
    totalIonPairEnergyEv += cluster.energy;
}

```

As I understand it, `cluster.energy` corresponds to the energy used to produce electron-ion pairs (electronic stopping contribution).

I would also like to estimate:

1. Nuclear stopping energy deposited in the gas

2. Residual kinetic energy when the ion reaches the electrode

3. Separation of:

I tried using:

```auto
clusters.back().kinetic

```

assuming it represents the residual kinetic energy after the final cluster creation. However, this value is always nearly zero, even for tracks that visually terminate at the electrode before fully stopping. However, in reality, at least more than 10% of the energy does not deposit in the gas.  
So my questions are:

1.Is there an official/recommended way in Garfield++ to obtain:

- cumulative electronic stopping energy

- cumulative nuclear stopping energy

- residual kinetic energy at track termination?

2.Is it the residual energy of the ions that reach the surface of the electrode plate?

```auto
clusters.back().kinetic

```

---

<div class="post-metadata">

**Author:** ![ajomy](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ajomy/32/37349_2.png) [@ajomy](https://root-forum.cern.ch/u/ajomy)\
**Post date:** [May 7, 2026, 8:48am UTC](https://root-forum.cern.ch/t/how-to-calculate-nuclear-stopping-energy-in-gas/64831/2 "2026-05-07T08:48:52Z")

</div>

Welcome to the ROOT forum!  
Maybe @hschindl can help you with this question

Aaron

---

<div class="post-metadata">

**Author:** ![pedro](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pedro/32/37605_2.png) [@pedro](https://root-forum.cern.ch/u/pedro)\
**Post date:** [May 7, 2026, 11:44am UTC](https://root-forum.cern.ch/t/how-to-calculate-nuclear-stopping-energy-in-gas/64831/3 "2026-05-07T11:44:58Z")

</div>

Also, I’d like to ask if Garfield has a function that can calculate the fraction of particle energy used for ionization versus non-ionization (excitation) about electronic stopping power.@hschindl

---

<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:** [May 7, 2026, 4:12pm UTC](https://root-forum.cern.ch/t/how-to-calculate-nuclear-stopping-energy-in-gas/64831/4 "2026-05-07T16:12:19Z")

</div>

Hi @pedro, many thanks for your question.

- To get the total (electronic + hadronic) energy loss over a step, you can calculate the difference in kinetic energy between two successive clusters. Note that the electronic energy loss will be randomised (unless you set the fluctuation model to 0), drawing from a Landau, Vavilov or Gaussian distribution, while for the hadronic contribution the average energy loss (stopping power integrated over the step length) is used.

- To compute the electronic energy loss over a track, you could indeed add up the cluster energies, with a small caveat: since the number of electron-ion pairs has to be an integer, the energy spent on producing electron-ion pairs for a given cluster may be a bit less than the electronic energy loss over the step; this residual energy is then carried over to the next cluster. So on average I think the sum of cluster energies should be fairly close to the total electronic energy loss.

- If a particle leaves the active medium before it has been absorbed, I would indeed expect the kinetic energy of the last cluster on the track to be non-zero. Need to check if there is a bug…

---

<div class="post-metadata">

**Author:** ![pedro](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pedro/32/37605_2.png) [@pedro](https://root-forum.cern.ch/u/pedro)\
**Post date:** [May 9, 2026, 8:22am UTC](https://root-forum.cern.ch/t/how-to-calculate-nuclear-stopping-energy-in-gas/64831/5 "2026-05-09T08:22:31Z")

</div>

@hschindl Thank you, I have two questions about the physical interpretation of cluster energy variables:

1. Does `clusters.back().kinetic` refer to the particle energy **before** or **after** the last cluster is generated? Is it necessary to subtract `clusters.back().energy` from this kinetic energy term?
2. In the case where particles do not hit the electrode, the calculation `clusters.back().kinetic - clusters.back().energy * 1e-6` still yields a residual energy of 5–12 keV. Is this residual energy caused by the simulation being unable to generate any additional clusters?

---

<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 23, 2026, 8:23am UTC](https://root-forum.cern.ch/t/how-to-calculate-nuclear-stopping-energy-in-gas/64831/6 "2026-05-23T08:23:32Z")

</div>

Closed on May 23, 2026, 8:23am UTC

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