# The electron drift line cannot be drawn

**URL:** <https://root-forum.cern.ch/t/the-electron-drift-line-cannot-be-drawn/48221>\
**Category:** Garfield++\
**Created:** [December 30, 2021, 3:18am UTC](https://root-forum.cern.ch/t/the-electron-drift-line-cannot-be-drawn/48221 "2021-12-30T03:18:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![changjh12](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/cc9497/32.png) [@changjh12](https://root-forum.cern.ch/u/changjh12)\
**Post date:** [December 30, 2021, 3:18am UTC](https://root-forum.cern.ch/t/the-electron-drift-line-cannot-be-drawn/48221/1 "2021-12-30T03:18:31Z")

</div>

Hello,I wrote a program following the example given. I want to get the signal and drift line of the electron, but I always get the error message in the following figure.

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/6/3/63f939be37817fe1323376c0f13b772cad2f7ba0.jpeg)

This is my code.  
[sdj.C](https://root-forum.cern.ch/uploads/short-url/jsjr5UTpMsz3x5jcC9Rst4L9PuF.C) (8.4 KB)

---

<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:** [December 30, 2021, 9:28am UTC](https://root-forum.cern.ch/t/the-electron-drift-line-cannot-be-drawn/48221/2 "2021-12-30T09:28:42Z")

</div>

In order to simulate electron drift lines using `AvalancheMC` or `DriftLineRKF` you need to load a table of macroscopic transport parameters (drift velocity etc.) from a file, as, for instance, in [this example](https://garfieldpp.web.cern.ch/garfieldpp/examples/tube/).

You can find more information about gas files on [this page](https://garfieldpp.web.cern.ch/examples/gasfiles/).

---

<div class="post-metadata">

**Author:** ![changjh12](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/cc9497/32.png) [@changjh12](https://root-forum.cern.ch/u/changjh12)\
**Post date:** [December 30, 2021, 12:57pm UTC](https://root-forum.cern.ch/t/the-electron-drift-line-cannot-be-drawn/48221/4 "2021-12-30T12:57:19Z")

</div>

Hello, I got a gas table file, but the program cannot read this file.

An error message like this appears

![image](https://root-forum.cern.ch/uploads/default/original/3X/c/5/c576adbb591d33a44099b0347af993ddb588af98.png)

---

<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:** [December 30, 2021, 2:53pm UTC](https://root-forum.cern.ch/t/the-electron-drift-line-cannot-be-drawn/48221/5 "2021-12-30T14:53:48Z")

</div>

You have to make sure the file is in the directory in which you run the executable (probably the `build` directory).

---

<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 13, 2022, 2:54pm UTC](https://root-forum.cern.ch/t/the-electron-drift-line-cannot-be-drawn/48221/6 "2022-01-13T14:54:31Z")

</div>

Closed on January 13, 2022, 2:54pm UTC

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