# How to calculate the induced current for a drift chamber

**URL:** <https://root-forum.cern.ch/t/how-to-calculate-the-induced-current-for-a-drift-chamber/41820>\
**Category:** Garfield++\
**Created:** [October 12, 2020, 9:56am UTC](https://root-forum.cern.ch/t/how-to-calculate-the-induced-current-for-a-drift-chamber/41820 "2020-10-12T09:56:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![littlepi](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/littlepi/32/23633_2.png) [@littlepi](https://root-forum.cern.ch/u/littlepi)\
**Post date:** [October 12, 2020, 9:56am UTC](https://root-forum.cern.ch/t/how-to-calculate-the-induced-current-for-a-drift-chamber/41820/1 "2020-10-12T09:56:19Z")

</div>

Dear Garfield++ experts,  
I am using Garfield++ to simulate a charged particle pass through a drift chamber cell. I need to calculate the total current induced by the avalanche electrons and ions. The attached picture shows a code snippet. I am not sure whether I should add the “drift.DriftElectron(…)” in the innermost loop. If I remove that line, I can still get the electron signal but with about half the value. It would be very helpful if someone can please check the code. Thank you!

 ![code](https://root-forum.cern.ch/uploads/default/original/3X/f/1/f17bbc6fc6a6ec1c0dd9ccc788c49237341798b6.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:** [October 12, 2020, 10:09am UTC](https://root-forum.cern.ch/t/how-to-calculate-the-induced-current-for-a-drift-chamber/41820/2 "2020-10-12T10:09:03Z")

</div>

Hi,  
no, you should not add the line `drift.DriftElectron(...)`. The electron drift lines are already simulated in the `AvalancheElectron` function.

---

<div class="post-metadata">

**Author:** ![littlepi](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/littlepi/32/23633_2.png) [@littlepi](https://root-forum.cern.ch/u/littlepi)\
**Post date:** [October 12, 2020, 10:40am UTC](https://root-forum.cern.ch/t/how-to-calculate-the-induced-current-for-a-drift-chamber/41820/3 "2020-10-12T10:40:32Z")

</div>

Thank you very much!

---

<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:** [October 26, 2020, 10:40am UTC](https://root-forum.cern.ch/t/how-to-calculate-the-induced-current-for-a-drift-chamber/41820/4 "2020-10-26T10:40:37Z")

</div>

Closed on October 26, 2020, 10:40am UTC

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