# The big gap between the numbers of electrons generated and collected

**URL:** <https://root-forum.cern.ch/t/the-big-gap-between-the-numbers-of-electrons-generated-and-collected/57663>\
**Category:** Garfield++\
**Created:** [December 25, 2023, 6:22am UTC](https://root-forum.cern.ch/t/the-big-gap-between-the-numbers-of-electrons-generated-and-collected/57663 "2023-12-25T06:22:47Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [January 14, 2024, 5:20am UTC](https://root-forum.cern.ch/t/the-big-gap-between-the-numbers-of-electrons-generated-and-collected/57663/21 "2024-01-14T05:20:20Z")

</div>

This is the result using the TrackTrim

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/c/c/cc6951d0f49c15b0f233f47d8855807800ca4494.png)  
Dose the cathode:(332) means 332 clusters collected?

---

<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 14, 2024, 9:08am UTC](https://root-forum.cern.ch/t/the-big-gap-between-the-numbers-of-electrons-generated-and-collected/57663/22 "2024-01-14T09:08:34Z")

</div>

Yes, I think so. If you want to count the number of electrons instead of the number of clusters, replace

```auto
++cathode;

```

by

```auto
cathode += ne;

```

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [January 15, 2024, 2:24am UTC](https://root-forum.cern.ch/t/the-big-gap-between-the-numbers-of-electrons-generated-and-collected/57663/23 "2024-01-15T02:24:48Z")

</div>

Then the final result would be the cathode number equals to the nesum(the total electron number generated), While that is not what I want. Since there is no recombination, there must be some of the electrons drift to some other where.

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [January 17, 2024, 2:27am UTC](https://root-forum.cern.ch/t/the-big-gap-between-the-numbers-of-electrons-generated-and-collected/57663/24 "2024-01-17T02:27:16Z")

</div>

Hi, I have the new result. firstly I change the proton injection from the Gaussian random to normal random like this:

```auto
  double xc = -13.704 + RndmUniform() * 6;
     double yc = 18.4927 + RndmUniform() * 1;
     double zc = -10.5 + RndmUniform() * 6;

```

then there are some electrons escaped and some drifted to the plate

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/7/6/761a22f313e288ad6a060259153ab27559417651.png)  
 ![image](https://root-forum.cern.ch/uploads/default/original/3X/a/b/ab8564165032770e04f84d0886ee130f6c74866d.png)  
 ![image](https://root-forum.cern.ch/uploads/default/original/3X/8/3/833a7b744046fadcc72e42a47b9576a2d9ed9c2e.png)

---

<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 31, 2024, 2:27am UTC](https://root-forum.cern.ch/t/the-big-gap-between-the-numbers-of-electrons-generated-and-collected/57663/25 "2024-01-31T02:27:24Z")

</div>

Closed on January 31, 2024, 2:27am UTC

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

[Previous page](https://root-forum.cern.ch/t/the-big-gap-between-the-numbers-of-electrons-generated-and-collected/57663.md?page=1)
