# The relationship between the gas pressure and the average collected charge

**URL:** <https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972>\
**Category:** Garfield++\
**Created:** [February 28, 2022, 6:35am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972 "2022-02-28T06:35:06Z")\
**Posts on this page:** 20\
**Page:** 5

<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:** [March 21, 2022, 10:58am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/83 "2022-03-21T10:58:36Z")

</div>

Hi,  
I’m having difficulties reproducing your results.

I used your SRIM files and your gas file but a slightly simplified geometry (parallel-plate chamber with a 1 cm gas gap). As you can see from first of the attached plots, the number of deposited electron/ion pairs increases with the pressure. There are some “steps”, because the number of electron/ion pairs has to be an integer.  
[energydeposit.pdf](https://root-forum.cern.ch/uploads/short-url/b8qjhRoFhC5TbnCNaYoxzIUxCHn.pdf) (13.5 KB)

The second plot shows the integrated signal, with the contribution from the ions shown in red and the contribution from the electrons in orange. As you can see it also increases with increasing pressure.  
[integratedsignal.pdf](https://root-forum.cern.ch/uploads/short-url/xVGe94W9cIHLASMyCaGEANr8T1J.pdf) (13.6 KB)

Running these checks, I realised that by using TrackSrim and switching off energy fluctuations the average signal is a bit underestimated (because it’s “rounded off”/cut to the nearest integer) so that’s not ideal but the effect is not enormous.

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [March 21, 2022, 2:04pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/84 "2022-03-21T14:04:03Z")

</div>

> [@hschindl](#):
>
> The second plot shows the integrated signal, with the contribution from the ions shown in red and the contribution from the electrons in orange. As you can see it also increases with increasing pressure.

Hi  
Thanks a lot for your detailed explanation.  
what’s the units of your integrated signal?  
How to plot the histogram filled with color, it’s nice.

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [March 21, 2022, 2:11pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/85 "2022-03-21T14:11:51Z")

</div>

> [@hschindl](#):
>
> I used your SRIM files and your gas file but a slightly simplified geometry (parallel-plate chamber with a 1 cm gas gap). As you can see from first of the attached plots, the number of deposited electron/ion pairs increases with the pressure. There are some “steps”, because the number of electron/ion pairs has to be an integer.

Ok, I understand. So it looks like the problem with the geometry or the field map. When I use the Trim files, the number of deposited electron/ion pairs increases with the pressure too but a slice step that maybe caused by the integer of the plot too. But to the Srim files , I am so confused …would you please send me the minimal work files for me to compare?

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [March 21, 2022, 2:20pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/86 "2022-03-21T14:20:23Z")

</div>

As what you said, the average electron/ion pairs increase with the pressure. And So is the integrated charge too. But as to the induced current , which is not proportional to the pressure since the change of the electron drift velocity. So maybe the plot I simulated using the Tracktrim maybe reasonable in the below, Is that right?

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/6/c/6c7b0e20c0059547148e0b633efa2415d760d0b9.jpeg)

---

<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:** [March 21, 2022, 2:26pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/87 "2022-03-21T14:26:28Z")

</div>

> [@XiCheng](#):
>
> would you please send me the minimal work files for me to compare?

Sure, here you go.

---

<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:** [March 21, 2022, 2:27pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/88 "2022-03-21T14:27:06Z")

</div>

Yes, maybe. I’m not sure why the peak of the induced current is relevant though…

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [March 21, 2022, 2:46pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/89 "2022-03-21T14:46:53Z")

</div>

emm, I just want to use the equation I=nesv to calculate or simulate the v(electron drift velocity) value and find the relationship with the pressure and current. So is that unreasonable to use the peak current?

---

<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:** [March 21, 2022, 3:53pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/90 "2022-03-21T15:53:41Z")

</div>

I’m not sure what the variables are in the equation you mentioned, but the program does indeed simulate the induced current using the drift velocity as function of the electric field, and the weighting field, using the Shockley-Ramo theorem.

My question was more if the peak current as function of pressure at constant electric field is a meaningful quantity. If you increase the pressure _p_ but keep the electric field _E_ the same, then there will be more charge deposited in the detector but the drift velocity will also change (because, to first order, it is a function of _E/p_).

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [March 23, 2022, 5:45am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/92 "2022-03-23T05:45:21Z")

</div>

Hi,  
Thanks a lot for your reply and explanation.  
I got stuck in the verification of the simulation results, such as the plot in the below, I don’t know why there are the mutations in the range from 540Torr to the 600Torr.  
 ![image](https://root-forum.cern.ch/uploads/default/original/3X/7/1/71c4a46affedfb77c1b52f6ac46f6dfd9a179218.png)

firstly I thought it must be the problem of the field map, then I considered it to be the wrong of the gas files or the EXYZ files. Finally I started to explain the reason. I remember the relationship between the electron drift velocity and reduced field strength is not proportional, something like the function  
 ![image](https://root-forum.cern.ch/uploads/default/original/3X/3/5/35b8c0518760871302a4ea5b2d6d21a82765e703.png)  
So I think maybe in the range from 540 to 600Torr the drift velocity has some situation. Then I use the simulation results to calculate the electron velocity according to the equation I=nev, n is for the electron numeber per cm, the e is the electron charge along the track . I got the curve like this in the below  
 ![image](https://root-forum.cern.ch/uploads/default/original/3X/0/e/0e8324d43f84001ec405ed3100d4520fee2148ae.png)  
We can find in the range from 540Torr to 600 Torr there indeed has a mutation area. According to the equation I=nev, Q=nevt, when the v is down, the Q is constant at the same condition, the parameter ne must increase. then we put the equation to this format Q=net f(E/p), when the ne increase, the Q must increase too. So when the E is constant at 500V(the whole data is simulated at the voltage of 500V), the Q will actually has the mutation area since the ne increase.

---

<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:** [March 24, 2022, 6:18am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/93 "2022-03-24T06:18:57Z")

</div>

Great!

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [March 24, 2022, 7:03am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/94 "2022-03-24T07:03:37Z")

</div>

Hi,  
Thanks a lot for your help and patient all these days  
I have made a big progress in the Garfield++, next I will think about the voltage parameter  
I remember you said that the “automatic calculation of the electron energy range in Magboltz seems to fail at 187.5 V/cm for this pressure and gas”,Is that problem solved now?

---

<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:** [March 24, 2022, 7:21am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/95 "2022-03-24T07:21:00Z")

</div>

No, I’m afraid it’s not. Please just avoid this exact electric field.

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [March 24, 2022, 7:21am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/96 "2022-03-24T07:21:10Z")

</div>

Besides ,do you have any advice about to analyze the relationship between the gas pressure , voltage, temperature, humidity with the electron charge or induced current.

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [March 24, 2022, 7:36am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/97 "2022-03-24T07:36:56Z")

</div>

OK, But there is a problem, I find that the calculation is from the minimal electric field to the maximum electric field. So if the electric field is from 179 to 1080, then it must have the 187.5 V/cm, then the simulation will be stopped .

```auto
const double emin =179;
  const double emax =1080;

```

---

<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:** [March 24, 2022, 10:11am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/98 "2022-03-24T10:11:54Z")

</div>

I’m not sure I understand. You could, for instance, do something like this to cover the range of electric fields you are interested in with a reasonable number of intervals:

```auto
const size_t nE = 20;
const double emin = 150.;
const double emax = 1100.;
const bool useLog = false;
gas.SetFieldGrid(emin, emax, nE, useLog);

```

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [March 24, 2022, 11:27am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/99 "2022-03-24T11:27:02Z")

</div>

Ah, it’s a good idea, so that means the electric field value is 150, 170, 190,210…etc like this. right?  
And besides, in the code `gas.GenerateGasTable(ncoll);` why the ncoll is set to 10?

---

<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:** [March 24, 2022, 12:48pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/100 "2022-03-24T12:48:56Z")

</div>

> [@XiCheng](#):
>
> so that means the electric field value is 150, 170, 190,210…etc like this. right?

150, 200, 250, …

> [@XiCheng](#):
>
> the ncoll is set to 10

You can reduce it a bit if you want. It means that Magboltz will 10×107 collisions at each electric field to calculate the drift velocity, diffusion coefficients etc.

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [March 24, 2022, 1:49pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/101 "2022-03-24T13:49:08Z")

</div>

> [@hschindl](#):
>
> 150, 200, 250, …

Sorry, I don’t know why the gap is 50.  
The ne is 20 ,which I thought is about to be the 1 linear interpolation during the electric field range

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [March 24, 2022, 1:50pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/102 "2022-03-24T13:50:39Z")

</div>

> [@hschindl](#):
>
> You can reduce it a bit if you want. It means that Magboltz will 10×107 collisions at each electric field to calculate the drift velocity, diffusion coefficients etc.

Can I consider it to be that the bigger value of ncoll, the precisely of the calculation results.

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [March 24, 2022, 1:57pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/103 "2022-03-24T13:57:05Z")

</div>

Hi,  
I still want to ask that is there any method to simulate the space charge effect. I remember you said the Garfield++ is not suitable for this

[Previous page](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972.md?page=4)

[Next page](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972.md?page=6)
