# How calculate effective gas gain for the gem?

**URL:** <https://root-forum.cern.ch/t/how-calculate-effective-gas-gain-for-the-gem/55646>\
**Category:** Garfield++\
**Tags:** graphics, root\
**Created:** [July 13, 2023, 12:21am UTC](https://root-forum.cern.ch/t/how-calculate-effective-gas-gain-for-the-gem/55646 "2023-07-13T00:21:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ferangiz\_Ata\_Kurban](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/f4b2a3/32.png) [@Ferangiz\_Ata\_Kurban](https://root-forum.cern.ch/u/Ferangiz_Ata_Kurban)\
**Post date:** [July 13, 2023, 12:21am UTC](https://root-forum.cern.ch/t/how-calculate-effective-gas-gain-for-the-gem/55646/1 "2023-07-13T00:21:48Z")

</div>

Hello, please tell me how I can track how many electrons have moved to the induction gap? I run the following code, as I understand with this code I can only get the initial and final coordinates of the electrons that I started at the beginning in the program.  
[gem (копия).C](https://root-forum.cern.ch/uploads/short-url/9MLutBDg1YlCSoDLHfySPx2G1KO.C) (4.5 KB)

I also wanted to ask when I run the code given on the [Garfield++ website](https://gitlab.cern.ch/garfield/garfieldpp/-/blob/master/Examples/Gem/gem.C), for reasons unknown to me, it gives the following error. Can you please tell me what the reason is, thank you in advance!

---

<div class="post-metadata">

**Author:** ![vpadulan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vpadulan/32/25315_2.png) [@vpadulan](https://root-forum.cern.ch/u/vpadulan)\
**Post date:** [July 13, 2023, 8:44am UTC](https://root-forum.cern.ch/t/how-calculate-effective-gas-gain-for-the-gem/55646/2 "2023-07-13T08:44:27Z")

</div>

Hi @Ferangiz_Ata_Kurban ,

Maybe @hschindl could be able to help you here.  
Cheers,  
Vincenzo

---

<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:** [July 13, 2023, 9:17am UTC](https://root-forum.cern.ch/t/how-calculate-effective-gas-gain-for-the-gem/55646/3 "2023-07-13T09:17:27Z")

</div>

> [@Ferangiz\_Ata\_Kurban](#):
>
> how I can track how many electrons have moved to the induction gap?

You can use the final coordinates (or just the z coordinate actually) to check whether the electron made it into the induction gap or not.

> [@Ferangiz\_Ata\_Kurban](#):
>
> when I run the code given on the [Garfield++ website](https://gitlab.cern.ch/garfield/garfieldpp/-/blob/master/Examples/Gem/gem.C), for reasons unknown to me, it gives the following error.

What’s the error that you get?

---

<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:** [July 27, 2023, 9:18am UTC](https://root-forum.cern.ch/t/how-calculate-effective-gas-gain-for-the-gem/55646/4 "2023-07-27T09:18:04Z")

</div>

Closed on July 27, 2023, 9:18am UTC

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