# Is it possible to track using Garfield::TrackSrim class in a magnetic field?

**URL:** <https://root-forum.cern.ch/t/is-it-possible-to-track-using-garfield-tracksrim-class-in-a-magnetic-field/47592>\
**Category:** Garfield++\
**Created:** [November 9, 2021, 7:42am UTC](https://root-forum.cern.ch/t/is-it-possible-to-track-using-garfield-tracksrim-class-in-a-magnetic-field/47592 "2021-11-09T07:42:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![user2](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/user2/32/27838_2.png) [@user2](https://root-forum.cern.ch/u/user2)\
**Post date:** [November 9, 2021, 7:42am UTC](https://root-forum.cern.ch/t/is-it-possible-to-track-using-garfield-tracksrim-class-in-a-magnetic-field/47592/1 "2021-11-09T07:42:30Z")

</div>

Hi!

I’m working on the simulation of AT-TPC with a triple GEM.

One of the particles to be tracked is the Oxygen ion in He gas with a momentum of few MeV/c.

I thought that a combination of Garfield::TrackSrim would be the best choice.

However, I’m wondering that Garfield::TrackSrim supports tracking in a magnetic field after finding that there is no method of enabling magnetic field, unlike the TrackHeed class.

Does TrackSrim take an account for a magnetic field as a default when tracking?

Best Regard  
Hyunmin Yang, Department of Physics, Korea University

---

<div class="post-metadata">

**Author:** ![jalopezg](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jalopezg/32/25844_2.png) [@jalopezg](https://root-forum.cern.ch/u/jalopezg)\
**Post date:** [November 10, 2021, 9:08am UTC](https://root-forum.cern.ch/t/is-it-possible-to-track-using-garfield-tracksrim-class-in-a-magnetic-field/47592/2 "2021-11-10T09:08:20Z")

</div>

Hi @user2, and welcome to the ROOT forum,

I am sure @hschindl can help here.

Cheers,  
J.

---

<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:** [November 11, 2021, 9:00am UTC](https://root-forum.cern.ch/t/is-it-possible-to-track-using-garfield-tracksrim-class-in-a-magnetic-field/47592/3 "2021-11-11T09:00:14Z")

</div>

Hi,  
apologies for my late reply. TrackSrim does not take the magnetic field into account at the moment.  
It shouldn’t be too difficult to implement it though. I’ll put it on my to-do list, but I’m not sure I’ll be able to look into it in the next days. Would you be interested to give it a try yourself?

---

<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:** [November 25, 2021, 9:00am UTC](https://root-forum.cern.ch/t/is-it-possible-to-track-using-garfield-tracksrim-class-in-a-magnetic-field/47592/4 "2021-11-25T09:00:57Z")

</div>

Closed on November 25, 2021, 9:00am UTC

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