How to calculate the induced current for a drift chamber

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!

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

Thank you very much!

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