# Can Garfield++ drift negative ions?

**URL:** <https://root-forum.cern.ch/t/can-garfield-drift-negative-ions/54524>\
**Category:** Garfield++\
**Created:** [April 17, 2023, 11:44am UTC](https://root-forum.cern.ch/t/can-garfield-drift-negative-ions/54524 "2023-04-17T11:44:58Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![zql21](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/zql21/32/33487_2.png) [@zql21](https://root-forum.cern.ch/u/zql21)\
**Post date:** [April 17, 2023, 11:44am UTC](https://root-forum.cern.ch/t/can-garfield-drift-negative-ions/54524/1 "2023-04-17T11:44:58Z")

</div>

If the gas composition are set as (gas.SetComposition(“Ar”, 0.94, “CO2”, 0.03, “N2”, 78.1,“O2”,20.93);  
The emitted alpha particles interact with air molecules to produce ionization electrons, most of which will be attached to electronegative molecules (such as oxygen molecules) during their drift.then Garfield + + stops tracking electrons.so my question is  
①Can Garfield + + drift the negative ions produced by attaching electrons ?I mean, I want to calculate the drift time and the final position ( along the direction of the electric field ) of the negative ions in a uniform electric field from where it was generated to where it was collected at the bottom of the electric field.  
②Can Garfield + + calculate the signal induced by negative ions?

I would appreciate it if you could provide some advice.Thanks a lot!

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [April 17, 2023, 1:02pm UTC](https://root-forum.cern.ch/t/can-garfield-drift-negative-ions/54524/2 "2023-04-17T13:02:03Z")

</div>

I guess @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:** [April 17, 2023, 1:09pm UTC](https://root-forum.cern.ch/t/can-garfield-drift-negative-ions/54524/3 "2023-04-17T13:09:15Z")

</div>

Hi,

with `DriftLineRKF` you can simulate negative ion drift lines, with their starting points distributed according to the attachment profile of the electrons, by adding a line

```auto
drift.EnableNegativeIonTail();

```

to your program. This assumes that the negative ions behave the same way as the positive ones, just with a different mobility. If you have a table of mobilities, you can load it using “LoadNegativeIonMobility” (same way you did it for positive ions).

`AvalancheMC` also has a function `DriftNegativeIon`.

Note that both `AvalancheMC` and `DriftLineRKF` at the moment only simulate the drift of the negative ions, but do not take other processes (in particular detachment) into account.

---

<div class="post-metadata">

**Author:** ![zql21](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/zql21/32/33487_2.png) [@zql21](https://root-forum.cern.ch/u/zql21)\
**Post date:** [April 17, 2023, 1:34pm UTC](https://root-forum.cern.ch/t/can-garfield-drift-negative-ions/54524/4 "2023-04-17T13:34:06Z")

</div>

> [@hschindl](#):
>
> Hi,
> 
> with `DriftLineRKF` you can simulate negative ion drift lines, with their starting points distributed according to the attachment profile of the electrons, by adding a line
> 
> ```auto
> drift.EnableNegativeIonTail();
> 
> ```
> 
> to your program. This assumes that the negative ions behave the same way as the positive ones, just with a different mobility. If you have a table of mobilities, you can load it using “LoadNegativeIonMobility” (same way you did it for positive ions).
> 
> `AvalancheMC` also has a function `DriftNegativeIon`.
> 
> Note that both `AvalancheMC` and `DriftLineRKF` at the moment only simulate the drift of the negative ions, but do not take other processes (in particular detachment) into account.

I got it!Thank you very much. By the way,How to calculate the signal induced by the negative ions?  
①I find GetIonSignal() in Sensor，If I use GetIonSignal(), I want to know whether it calculates the signal caused by positive ions or negative ions?  
②Sensor has another function GetSignal(),which one is better for my program?

---

<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 17, 2023, 1:48pm UTC](https://root-forum.cern.ch/t/can-garfield-drift-negative-ions/54524/5 "2023-04-17T13:48:12Z")

</div>

Ah, yes, that’s a bit confusing. Since they have negative charge, the contribution from the negative ions will be added to the “electron signal”. `GetSignal` returns the total induced current (from both negative and positive charge carriers), so it will also include the negative ion component.

---

<div class="post-metadata">

**Author:** ![zql21](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/zql21/32/33487_2.png) [@zql21](https://root-forum.cern.ch/u/zql21)\
**Post date:** [April 17, 2023, 1:55pm UTC](https://root-forum.cern.ch/t/can-garfield-drift-negative-ions/54524/6 "2023-04-17T13:55:47Z")

</div>

oh,I understand, So If I want to calculate the signal induced by negative ions.I should use GetElectronSignal()?

---

<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 17, 2023, 2:08pm UTC](https://root-forum.cern.ch/t/can-garfield-drift-negative-ions/54524/7 "2023-04-17T14:08:43Z")

</div>

The `Sensor` class stores

- the total induced signal (which you can retrieve using `GetSignal`),
- the contribution to the total signal from negative charge carriers (i. e. electrons and negative ions)), which you can retrieve using `GetElectronSignal`,
- the contribution to the total signal from positive charge carriers (i. e. positive ions), which you can retrieve using `GetIonSignal`.

---

<div class="post-metadata">

**Author:** ![zql21](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/zql21/32/33487_2.png) [@zql21](https://root-forum.cern.ch/u/zql21)\
**Post date:** [April 17, 2023, 2:17pm UTC](https://root-forum.cern.ch/t/can-garfield-drift-negative-ions/54524/8 "2023-04-17T14:17:19Z")

</div>

Thank you very much. I understand completely

---

<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, 2023, 2:17pm UTC](https://root-forum.cern.ch/t/can-garfield-drift-negative-ions/54524/9 "2023-05-01T14:17:36Z")

</div>

Closed on May 1, 2023, 2:17pm UTC

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