# Is it possible to plot the drift lines offline?

**URL:** <https://root-forum.cern.ch/t/is-it-possible-to-plot-the-drift-lines-offline/41988>\
**Category:** Garfield++\
**Created:** [October 25, 2020, 12:02am UTC](https://root-forum.cern.ch/t/is-it-possible-to-plot-the-drift-lines-offline/41988 "2020-10-25T00:02:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Khang\_Pham](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/khang_pham/32/19369_2.png) [@Khang\_Pham](https://root-forum.cern.ch/u/Khang_Pham)\
**Post date:** [October 25, 2020, 12:02am UTC](https://root-forum.cern.ch/t/is-it-possible-to-plot-the-drift-lines-offline/41988/1 "2020-10-25T00:02:09Z")

</div>

I have noticed that it takes a lot of time for the drift lines of electrons and ions to be plotted. So, is there any way to save the drift data for later processing?

---

<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:** [October 26, 2020, 7:44am UTC](https://root-forum.cern.ch/t/is-it-possible-to-plot-the-drift-lines-offline/41988/2 "2020-10-26T07:44:09Z")

</div>

Hi,  
that’s actually what’s done in the `ViewDrift` class. After calling `EnablePlotting` it will store every drift line that you simulate. There is no function at the moment to retrieve the stored drift lines from `ViewDrift` but it’s easy to implement. Would that be useful for you?

---

<div class="post-metadata">

**Author:** ![Khang\_Pham](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/khang_pham/32/19369_2.png) [@Khang\_Pham](https://root-forum.cern.ch/u/Khang_Pham)\
**Post date:** [October 26, 2020, 2:33pm UTC](https://root-forum.cern.ch/t/is-it-possible-to-plot-the-drift-lines-offline/41988/3 "2020-10-26T14:33:53Z")

</div>

Hi,  
That would be useful for my case. I don’t want to plot the drift lines every time but would like to store that information for later.

---

<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:** [October 28, 2020, 3:36pm UTC](https://root-forum.cern.ch/t/is-it-possible-to-plot-the-drift-lines-offline/41988/4 "2020-10-28T15:36:25Z")

</div>

Hi,  
sorry for the delay. I’ve added two small functions to `ViewDrift` to retrieve the number of stored drift lines and the drift line coordinates:

> **[Add function to retrieve stored drift line coordinates from ViewDrift. (!141)...](https://gitlab.cern.ch/garfield/garfieldpp/-/merge_requests/141)**
>
> http://garfieldpp.web.cern.ch/garfieldpp/

Let me know if there is a problem…

---

<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 11, 2020, 3:36pm UTC](https://root-forum.cern.ch/t/is-it-possible-to-plot-the-drift-lines-offline/41988/5 "2020-11-11T15:36:29Z")

</div>

Closed on November 11, 2020, 3:36pm UTC

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