# How to get electron position when using TrackSrim class?

**URL:** <https://root-forum.cern.ch/t/how-to-get-electron-position-when-using-tracksrim-class/55024>\
**Category:** Garfield++\
**Created:** [May 25, 2023, 7:57am UTC](https://root-forum.cern.ch/t/how-to-get-electron-position-when-using-tracksrim-class/55024 "2023-05-25T07:57:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![newconcept1979](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/newconcept1979/32/26349_2.png) [@newconcept1979](https://root-forum.cern.ch/u/newconcept1979)\
**Post date:** [May 25, 2023, 7:57am UTC](https://root-forum.cern.ch/t/how-to-get-electron-position-when-using-tracksrim-class/55024/1 "2023-05-25T07:57:31Z")

</div>

The signal induced by an alpha particle was simulated using Garfield++, the data file produced by Srim was imported in Garfield using the class TrackSrim, but it seems the class has no solution like GetElectron, so the electron drift can not be implemented.  
so How to get electron position when using TrackSrim class?

---

<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:** [May 25, 2023, 8:22am UTC](https://root-forum.cern.ch/t/how-to-get-electron-position-when-using-tracksrim-class/55024/2 "2023-05-25T08:22:47Z")

</div>

You can assume that all electrons are deposited at the position of the cluster:

> **[Examples/Srim/trimsignal.C · master · garfield / garfieldpp · GitLab](https://gitlab.cern.ch/garfield/garfieldpp/-/blob/master/Examples/Srim/trimsignal.C)**
>
> http://garfieldpp.web.cern.ch/garfieldpp/

---

<div class="post-metadata">

**Author:** ![newconcept1979](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/newconcept1979/32/26349_2.png) [@newconcept1979](https://root-forum.cern.ch/u/newconcept1979)\
**Post date:** [May 25, 2023, 8:31am UTC](https://root-forum.cern.ch/t/how-to-get-electron-position-when-using-tracksrim-class/55024/3 "2023-05-25T08:31:16Z")

</div>

@hschindl , it is a good approximation, thanks!

---

<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:** [June 8, 2023, 8:31am UTC](https://root-forum.cern.ch/t/how-to-get-electron-position-when-using-tracksrim-class/55024/4 "2023-06-08T08:31:24Z")

</div>

Closed on June 8, 2023, 8:31am UTC

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