# No current signal was obtained

**URL:** <https://root-forum.cern.ch/t/no-current-signal-was-obtained/48250>\
**Category:** Garfield++\
**Created:** [January 3, 2022, 12:50pm UTC](https://root-forum.cern.ch/t/no-current-signal-was-obtained/48250 "2022-01-03T12:50:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![changjh12](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/cc9497/32.png) [@changjh12](https://root-forum.cern.ch/u/changjh12)\
**Post date:** [January 3, 2022, 12:50pm UTC](https://root-forum.cern.ch/t/no-current-signal-was-obtained/48250/1 "2022-01-03T12:50:37Z")

</div>

Hello,I want to use the

> DriftlineRKF

class to get the induced current of electrons and ions. I calculated the gas table and imported it into the program. But in the end, no current signal was obtained, and it was a blank.

The figure below is the result I got after running my code.

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/8/f/8f1a8686cad237649d1828c28497c6a7a583563d.jpeg)

This is my code.

[sdj.C](https://root-forum.cern.ch/uploads/short-url/oDIsuzPB1UjOP3edm4ParzRKJYP.C) (8.0 KB)

I look forward to your answer very much.

---

<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:** [January 3, 2022, 2:34pm UTC](https://root-forum.cern.ch/t/no-current-signal-was-obtained/48250/2 "2022-01-03T14:34:30Z")

</div>

Not sure… Can you plot the weighting potential?

---

<div class="post-metadata">

**Author:** ![changjh12](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/cc9497/32.png) [@changjh12](https://root-forum.cern.ch/u/changjh12)\
**Post date:** [January 5, 2022, 12:22pm UTC](https://root-forum.cern.ch/t/no-current-signal-was-obtained/48250/4 "2022-01-05T12:22:47Z")

</div>

Today I replaced the `DriftLineRKF` with` AvalancheMC`， so that I can get the induced current signal.  
It’s weird.

---

<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:** [January 5, 2022, 1:39pm UTC](https://root-forum.cern.ch/t/no-current-signal-was-obtained/48250/5 "2022-01-05T13:39:24Z")

</div>

Yes, that’s weird, I need to look into that…

---

<div class="post-metadata">

**Author:** ![changjh12](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/cc9497/32.png) [@changjh12](https://root-forum.cern.ch/u/changjh12)\
**Post date:** [January 5, 2022, 1:56pm UTC](https://root-forum.cern.ch/t/no-current-signal-was-obtained/48250/6 "2022-01-05T13:56:50Z")

</div>

I added a line of code, and then I got the current signal.  
`drift.UseWeightingPotential(true);`

I guess maybe , `UseWeightingPotential` is off by default.

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/9/c/9ced2c5c513b99b1a8c3d667e76a3d34a98270bc.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:** [January 5, 2022, 2:09pm UTC](https://root-forum.cern.ch/t/no-current-signal-was-obtained/48250/7 "2022-01-05T14:09:27Z")

</div>

Hmm… yes, by default `DriftLineRKF` uses the weighting field instead of the weighting potential for calculating the induced current.

Great that you made it work! I will do a bit of debugging to understand why using the weighting field didn’t work…

---

<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:** [January 19, 2022, 2:09pm UTC](https://root-forum.cern.ch/t/no-current-signal-was-obtained/48250/8 "2022-01-19T14:09:47Z")

</div>

Closed on January 19, 2022, 2:09pm UTC

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