# The integrated charge is 0

**URL:** <https://root-forum.cern.ch/t/the-integrated-charge-is-0/64405>\
**Category:** Garfield++\
**Created:** [November 14, 2025, 1:17am UTC](https://root-forum.cern.ch/t/the-integrated-charge-is-0/64405 "2025-11-14T01:17:26Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![newconcept1979](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/newconcept1979/32/26349_2.png) [@newconcept1979](https://root-forum.cern.ch/u/newconcept1979)\
**Post date:** [November 14, 2025, 1:17am UTC](https://root-forum.cern.ch/t/the-integrated-charge-is-0/64405/1 "2025-11-14T01:17:28Z")

</div>

The integrated charge is computed using the gas with pressure of 76. Torr, when changing the charge from negative to positive and filling a TH1D class object, the result is:

 ![signal](https://root-forum.cern.ch/uploads/default/original/3X/c/1/c1088b4d44c9215cd66f56a0b900e18f504bd87e.png)

but when changing the pressure to 760. Torr, the result is:

 ![signal](https://root-forum.cern.ch/uploads/default/original/3X/c/1/c1088b4d44c9215cd66f56a0b900e18f504bd87e.png)

why the integrated charge is 0 with lower pressure?

the related files are attached.

[Ar\_90\_ch4\_10\_0.1bar.gas.txt](https://root-forum.cern.ch/uploads/short-url/pAtui4KFzzJa38d1hZKZl4duquX.txt) (75.5 KB)

[DriftLineRKF.C](https://root-forum.cern.ch/uploads/short-url/weOQibyxpQpQnEztRMIro6a1F0d.C) (2.7 KB)

---

<div class="post-metadata">

**Author:** ![newconcept1979](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/newconcept1979/32/26349_2.png) [@newconcept1979](https://root-forum.cern.ch/u/newconcept1979)\
**Post date:** [November 14, 2025, 1:19am UTC](https://root-forum.cern.ch/t/the-integrated-charge-is-0/64405/2 "2025-11-14T01:19:58Z")

</div>

sorry, the first figure is wrong, here is the right one:

 ![signal](https://root-forum.cern.ch/uploads/default/original/3X/f/c/fc385e44f1c35f8d720ab9884f0e71f9fe728cdc.png)

---

<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:** [November 14, 2025, 6:57am UTC](https://root-forum.cern.ch/t/the-integrated-charge-is-0/64405/3 "2025-11-14T06:57:46Z")

</div>

I think @hschindl can help

---

<div class="post-metadata">

**Author:** ![newconcept1979](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/newconcept1979/32/26349_2.png) [@newconcept1979](https://root-forum.cern.ch/u/newconcept1979)\
**Post date:** [November 15, 2025, 2:53am UTC](https://root-forum.cern.ch/t/the-integrated-charge-is-0/64405/4 "2025-11-15T02:53:43Z")

</div>

when using AvalancheMicroscopic class, the result is:

 ![signal](https://root-forum.cern.ch/uploads/default/original/3X/0/f/0fe40289296414cb7b669482b0d52e2defd34315.png)

this is weird, what is the possible reason?

---

<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:** [November 18, 2025, 5:29pm UTC](https://root-forum.cern.ch/t/the-integrated-charge-is-0/64405/5 "2025-11-18T17:29:03Z")

</div>

Hi,  
thanks for your message! I tried to reproduce the issue with a slightly modified version of your program which you’ll find attached (`rkf.C`). The total induced charge does change when changing the pressure to 760 Torr but I don’t get zero. How did you change the pressure in your application? Did you create a new gas file or did you use the one for 76 Torr and changed the pressure?

---

<div class="post-metadata">

**Author:** ![newconcept1979](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/newconcept1979/32/26349_2.png) [@newconcept1979](https://root-forum.cern.ch/u/newconcept1979)\
**Post date:** [November 19, 2025, 12:51am UTC](https://root-forum.cern.ch/t/the-integrated-charge-is-0/64405/6 "2025-11-19T00:51:18Z")

</div>

@hschindl, thanks for your reply! but something should be clarified.

1. where is the file of “rkf.C“;
2. when using DriftLineRKF class and the gas pressure is 0.1 bar, the total charge is 0, it is nothing about 1 bar of the the gas pressure;
3. in my application, the gas file is used and the pressure is 0.1 bar. so the total charge is 0 when using DriftLineRKF class and the gas pressure is 0.1 bar, is that nornal?

---

<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:** [November 19, 2025, 5:19am UTC](https://root-forum.cern.ch/t/the-integrated-charge-is-0/64405/7 "2025-11-19T05:19:55Z")

</div>

Sorry, forgot to attach the file!

[rkf.C](https://root-forum.cern.ch/uploads/short-url/sS0bhtQSeOrA0SPeoAn5qeNAZrx.C) (1.3 KB)

---

<div class="post-metadata">

**Author:** ![newconcept1979](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/newconcept1979/32/26349_2.png) [@newconcept1979](https://root-forum.cern.ch/u/newconcept1979)\
**Post date:** [November 19, 2025, 5:44am UTC](https://root-forum.cern.ch/t/the-integrated-charge-is-0/64405/8 "2025-11-19T05:44:00Z")

</div>

@hschindl, thanks for your reply!

---

<div class="post-metadata">

**Author:** ![newconcept1979](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/newconcept1979/32/26349_2.png) [@newconcept1979](https://root-forum.cern.ch/u/newconcept1979)\
**Post date:** [November 19, 2025, 7:19am UTC](https://root-forum.cern.ch/t/the-integrated-charge-is-0/64405/9 "2025-11-19T07:19:24Z")

</div>

![signal](https://root-forum.cern.ch/uploads/default/original/3X/7/b/7b95967e5c953eec034f6e77076028b41ff26ebe.png)

the potential is changed to 5000V, all the calculations use the gas file(all calculated by MediumMagboltz class), why the total charge decrease with the gas pressure 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:** [November 19, 2025, 7:33am UTC](https://root-forum.cern.ch/t/the-integrated-charge-is-0/64405/10 "2025-11-19T07:33:44Z")

</div>

The Townsend coefficient decreases with increasing pressure.

---

<div class="post-metadata">

**Author:** ![newconcept1979](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/newconcept1979/32/26349_2.png) [@newconcept1979](https://root-forum.cern.ch/u/newconcept1979)\
**Post date:** [November 19, 2025, 7:55am UTC](https://root-forum.cern.ch/t/the-integrated-charge-is-0/64405/11 "2025-11-19T07:55:53Z")

</div>

@hschindl, thanks for your reply!

---

<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:** [December 3, 2025, 7:56am UTC](https://root-forum.cern.ch/t/the-integrated-charge-is-0/64405/12 "2025-12-03T07:56:25Z")

</div>

Closed on December 3, 2025, 7:56am UTC

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