# 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:** 2

<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 1, 2022, 8:03am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/21 "2022-03-01T08:03:19Z")

</div>

the

> [@hschindl](#):
>
> Decreased with respect to what?

with respect to one track I simulated before. Does the result mean the average of every 1000 tracks once a time or the integrated value of the 1000 tracks

---

<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 1, 2022, 8:06am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/22 "2022-03-01T08:06:57Z")

</div>

> [@hschindl](#):
>
> Ion drift is slow, if you want to catch the full ion signal you need to increase the time window. Or, as tried to suggest to you before, you just count how many electrons arrive at the electrode that you are reading out.  
> The total charge is not 13 fC but 13 electrons - which is very small.

OK,how to get the integrated value without calculating, neither the electrons/ions pair nor the number of electrons. my real experiment of the charge detected during 500 ns is in the range from 0 to 80PC.  
So maybe what I simulated is wrong

---

<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 3, 2022, 7:47am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/23 "2022-03-03T07:47:35Z")

</div>

Hi, hschindl  
I think I know why the total charge is not 13 fC but 13 electrons - which is very small.  
 ![image](https://root-forum.cern.ch/uploads/default/original/3X/4/e/4e915b40a1080137ce51cf633c379cb502f448cd.png)  
Although I simulate the number of 1000 tracks once a time now ,but the result seems a average value of charge collected. However in the actual experiment, the single shot of the laser proton’s number are about 10E7 to 10E9. So as the plot shows above, when the time is 500ns, the integrated charge is about 0.001202 fC, so I use this value to multiply 10E7 and 10E9, the result is about 0.12PC to 12PC

---

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

</div>

0.12PC to 12PC seems reasonable compared with the real condition. Do you think it is right?

---

<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 3, 2022, 2:00pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/25 "2022-03-03T14:00:20Z")

</div>

There is one caveat: if you really have 107 - 109 protons crossing the detector at exactly the same time and ionising the gas, then you will have a very high charge density in the detector and the mutual interaction of the electron and ions in the gas will not be negligible any more. Unfortunately space charge effects are not easy to simulate in Garfield++.

---

<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 7, 2022, 9:32am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/26 "2022-03-07T09:32:28Z")

</div>

Hi，  
Thanks a lot for your reply and sorry for my late reply because something happened these days.  
Actually I really don’t consider the space charge effect, and I just want to ask how I can simulate the induced current or integrated charge of 10E7 number of proton once a time but not through the calculating just simply through multiplying the number of protons(10E7) with the simulation 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 7, 2022, 9:39am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/27 "2022-03-07T09:39:42Z")

</div>

Hi,  
Would you please help me to see the curve among the gas pressure and transient current peak and the integrated charge.  
That’s my latest result

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/2/2/22436b104b8c6749c3d9430f4a5db86a9acb480b.png)  
This result is a little bit better than before after the code is modified. But there is still mutational site there. The mutational site is nearly from 600 to540 Torr. Is that probably the reason for the wrong of the gas file or EXYZ file in that range?

---

<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 7, 2022, 3:27pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/28 "2022-03-07T15:27:48Z")

</div>

How many tracks did you simulate?

---

<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 7, 2022, 3:30pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/30 "2022-03-07T15:30:01Z")

</div>

Hi,  
Thanks a lot for your reply  
I have simulated 1000 tracks

```auto
constexpr unsigned int nTracks = 1000;

```

---

<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 7, 2022, 3:31pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/31 "2022-03-07T15:31:58Z")

</div>

You could increase the number of tracks to reduce the statistical fluctuations.

But, as I tried to explain in an earlier thread, if you have 107 tracks, I don’t see any point to simulate track-by-track fluctuations. So you might as well use `TrackSrim` and switch off straggling. Then you get the average energy loss (and number of electron-ion pairs) in your detector without any statistical fluctuations.

---

<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 7, 2022, 3:37pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/32 "2022-03-07T15:37:43Z")

</div>

How to use `TrackSrim` and switch off straggling? So you think the mutational site is the reason of the statistical fluctuations? Do you think the relationship may follow a certain law such as Paschen law?

---

<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 8, 2022, 4:47pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/33 "2022-03-08T16:47:55Z")

</div>

> [@XiCheng](#):
>
> How to use `TrackSrim` and switch off straggling?

Didn’t you use `TrackSrim` in one of the first versions of your program? To switch off fluctuations you can do something like this:

```auto
TrackSrim tr;
const std::string file = "name_of_your_srim_output_file.txt";
if (!tr.ReadFile(file)) {
  std::cerr << "Reading SRIM file failed.\n";
  return 0;
}
// Set the kinetic energy of the particle [eV].
tr.SetKineticEnergy(100.e6);
tr.SetClustersMaximum(50);
// Switch off energy-loss fluctuations
tr.SetModel(0);
// Switch off transverse straggling.
tr.EnableTransverseStraggling(false);

```

Then you need to call `NewTrack` just once.

---

<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 9, 2022, 2:50am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/34 "2022-03-09T02:50:05Z")

</div>

Hi,  
Thanks a lot for your help  
I realize how to switch off the straggling now. That’s the curves among the integrated charge, the transient current peak, the average electron/ion pairs and gas pressure simulated these days.

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/8/c/8c29e583bb16382e3feb8297905b451904f1df27.png)  
 ![image](https://root-forum.cern.ch/uploads/default/original/3X/7/5/756a86e7daa6fbb01e503985874f55efa3ffe35d.png)  
I know what I have simulated maybe all wrong. Actually I don’t really want to eliminate the straggling but to find out the reason for the abnormal point from approximately 540TOrr to 640 Torr. If the simulation process is right ,then the “small bulge” may be used or escaped to give the reference to the actual experiment.  
Besides I also don’t need the energy loss value , I don’t want to reproduce or verify the relationship between them, but to get the real situation of current or charge value with the difference of gas pressure or voltage, then I can set the best gas pressure or voltage in the actual experiment according to them

---

<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 9, 2022, 5:50am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/35 "2022-03-09T05:50:54Z")

</div>

Should I delete the two codes in my program after I switch off the straggling? The FanoFactor may the main reason to represent the fluctuation.

```auto
tr.SetWorkFunction(42);
  tr.SetFanoFactor(0.17);

```

---

<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 9, 2022, 7:46am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/36 "2022-03-09T07:46:08Z")

</div>

![image](https://root-forum.cern.ch/uploads/default/original/3X/1/4/14d74d7c57edacd35fb07ca5c4993c4e11342ef1.jpeg)  
The highest ion energy can’t be set.

---

<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 9, 2022, 7:51am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/37 "2022-03-09T07:51:19Z")

</div>

> [@XiCheng](#):
>
> The highest ion energy can’t be set.

What energy do you want to set? I thought it was 100 MeV = 100000 keV?

---

<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 9, 2022, 7:51am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/38 "2022-03-09T07:51:53Z")

</div>

Yes, good point! Please replace

```auto
tr.SetFanoFactor(0.17);

```

by

```auto
tr.SetFanoFactor(0.);

```

---

<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 9, 2022, 8:28am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/39 "2022-03-09T08:28:03Z")

</div>

em…That’s my mistake,Sorry for that.

---

<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 9, 2022, 8:29am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/40 "2022-03-09T08:29:03Z")

</div>

![image](https://root-forum.cern.ch/uploads/default/original/3X/f/d/fd1a3ea7e4bc001fccd7122f36136ae56e007146.png)  
 ![image](https://root-forum.cern.ch/uploads/default/original/3X/8/e/8eb5ad272be6829c1c9d8f56a734a96187a1ec17.png)  
what stopping power units should I choose?

---

<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 9, 2022, 10:33am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/41 "2022-03-09T10:33:42Z")

</div>

MeV / (mg/cm2)

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

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