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

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

</div>

Thanks, Why is that?  
Why can’t I choose MeV/mm?

---

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

</div>

Because at the moment `TrackSrim` only accepts MeV/(mg/cm2). I can put it on my to-do list to modify the class such that it also accepts other units, but for now the easiest solution is just to select MeV/(mg/cm2) in SRIM.

---

<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:28pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/44 "2022-03-09T14:28:08Z")

</div>

HI,  
I have switched off the straggling and got the induced current like this.

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/3/f/3f86d7b12e06eaafd95470b5b91e40accc2cf75a.png)  
There are some questions confused me a lot.  
The plot below is the result I did not switch off the straggling.  
 ![image](https://root-forum.cern.ch/uploads/default/original/3X/e/5/e5e634a6c3aaec856890bd5689440e49c0cacfe1.jpeg)  
1,So why the shape of them are different? Is that the reason for switching off the straggling?  
2,Why the time is different too!  
3,Why the induced current without straggling is bigger than the one has the straggling?  
4,the histogram means that during the time about 100 ns, the induced current is always 0.025 μA。Is that right？ or the induced current without straggling is just an average value during the 100ns not the transient current each time

---

<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, 5:00pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/45 "2022-03-09T17:00:47Z")

</div>

That’s really strange. There is an order of magnitude difference between the two signals.Can you please provide minimal working examples that reproduce these plots?

---

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

</div>

[switch off the straggling code.C](https://root-forum.cern.ch/uploads/short-url/4yikfLNCDFCicpLIJLM2OBnHOMr.C) (4.1 KB)

---

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

</div>

[the original code.C](https://root-forum.cern.ch/uploads/short-url/loRWt92wKaBYL2XXj86QeD36RRl.C) (3.8 KB)

---

<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 10, 2022, 12:52am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/48 "2022-03-10T00:52:05Z")

</div>

Hi,  
Thanks a lot for your reply.  
These are the codes, please help me to see what’s the problem.

---

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

</div>

Hi, there are some new findings after I have switched off the straggling. The simulation results show that the induced currents Increase as the air pressure decrease.Apparently the result is not reasonable, and is stranger than before.

---

<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 12, 2022, 4:02am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/50 "2022-03-12T04:02:45Z")

</div>

![image](https://root-forum.cern.ch/uploads/default/original/3X/9/c/9c340d84ae9f878700083cb138c259ea7a8596fb.png)

---

<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 12, 2022, 4:18am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/51 "2022-03-12T04:18:07Z")

</div>

Hi,  
I find that no matter how the TrackSrim.txt and gas files change under different gas pressure, the Average number of electron/ion pairs are always 96662, which is very huge. Does that mean the one tracks can cause 96662 pairs of electron/ion?

---

<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 12, 2022, 4:58am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/52 "2022-03-12T04:58:59Z")

</div>

Hi,  
I still find that after I have switched off the straggling, the abnormal point from 540Torr to 640Torr in the curve below which I simulated without switching off the straggling before will disappear. The new curve between the gas pressure and induced current is a linear proportional relationship, with every drop in pressure, the induced current increases.

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/0/4/04832548a28a6a497ae2eb3bda57edb4210876c4.png)

---

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

</div>

Thank you. Please also provide the gas file and the SRIM file.

---

<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 12, 2022, 11:19am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/54 "2022-03-12T11:19:22Z")

</div>

> [@XiCheng](#):
>
> The simulation results show that the induced currents Increase as the air pressure decrease. Apparently the result is not reasonable, and is stranger than before.

I don’t know if it’s reasonable or not. Did you use the same field map for all pressures?

---

<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 12, 2022, 11:58am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/55 "2022-03-12T11:58:56Z")

</div>

Hi,  
Thanks a lot for your help  
Yep,I use the same field map for all the pressure. The two codes have very different results and tendency, and I don’t know why.

---

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

</div>

[740Srim-He.txt](https://root-forum.cern.ch/uploads/short-url/5rSEAJKBJyN0L1vKmAWiik3f3Iy.txt) (9.1 KB)  
Hi,  
That’s the SRIM file, the gas file is limited to upload, I have send it to your email, and please help me to take a look to find the reason. Thanks a lot!

---

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

</div>

Hi，  
I think about the reason for why there is an order of magnitude difference between the two signals and the tendency of the current curve. Maybe the main reason is in the EXYZ files which had been set the layer width to 10mm , the detector thickness I think, but in the Srim files there are no parameters set like this.

---

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

</div>

Hi,  
no, there is something going wrong with `TrackSrim`. I’m taking a look…

---

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

</div>

Hi,  
Thanks a lot for your help  
at every different gas pressure I only modify the target density, such as when the gas pressure is 700Torr, then I use(700/760)\*0.0001787 g/cm3 to get the helium density at the 700 Torr pressure.

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/b/c/bce33e8e87345260a82eb5c16bb96d012576e7eb.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 14, 2022, 8:58am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972/60 "2022-03-14T08:58:46Z")

</div>

Yes, that’s fine. The problem is in the `TrackSrim` class, not the SRIM output file.

---

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

</div>

Hi,  
Thanks a lot for your reply and help  
So does that can be solved? or should I choose another method?

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

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