# Garfield++

**URL:** https://root-forum.cern.ch/c/garfieldxx/25.md?page=13

[Latest](https://root-forum.cern.ch/latest.md) · [Categories](https://root-forum.cern.ch/categories.md) · [Tags](https://root-forum.cern.ch/tags.md)

**Page:** 14

---

## [The killed problem](https://root-forum.cern.ch/t/the-killed-problem/48776)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 3\
**Last updated:** [February 13, 2022, 4:03pm UTC](https://root-forum.cern.ch/t/the-killed-problem/48776 "2022-02-13T16:03:18Z")

</div>

I always meet the killed problem in the Garfield++, some of them are caused by the lack of space, this time I have changed the .lis files and weight.lis file, the killed error shows again.

---

## [The question about induced current](https://root-forum.cern.ch/t/the-question-about-induced-current/48692)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 21\
**Last updated:** [February 12, 2022, 1:12pm UTC](https://root-forum.cern.ch/t/the-question-about-induced-current/48692 "2022-02-12T13:12:42Z")

</div>

I imported a ansys model to the Garfield++, firstly I got the induced current,but when I changed the weight.lis, the induced current turns to be empty

---

## [How to set the gas humidity](https://root-forum.cern.ch/t/how-to-set-the-gas-humidity/48744)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 2\
**Last updated:** [February 11, 2022, 1:03am UTC](https://root-forum.cern.ch/t/how-to-set-the-gas-humidity/48744 "2022-02-11T01:03:05Z")

</div>

Is there any class to set the value of gas humidity?

---

## [The result about the induced current](https://root-forum.cern.ch/t/the-result-about-the-induced-current/48743)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 4\
**Last updated:** [February 11, 2022, 1:00am UTC](https://root-forum.cern.ch/t/the-result-about-the-induced-current/48743 "2022-02-11T01:00:34Z")

</div>

I have got the induced current signal when the proton traverse into the gas ionization chamber filled with P10 gas. The two plots show the current signal and the setting of EXYZ file. I want to know how many protons tra…

---

## [DriftLineRKF::DriftLine: Cannot retrieve drift velocity](https://root-forum.cern.ch/t/driftlinerkf-cannot-retrieve-drift-velocity/48742)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 4\
**Last updated:** [February 10, 2022, 11:41am UTC](https://root-forum.cern.ch/t/driftlinerkf-cannot-retrieve-drift-velocity/48742 "2022-02-10T11:41:52Z")

</div>

I want to get the induced current in the nitrogen gas, however the results notice that"DriftLineRKF::DriftLine: Cannot retrieve drift velocity."

---

## [The induced current result](https://root-forum.cern.ch/t/the-induced-current-result/48688)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 5\
**Last updated:** [February 8, 2022, 10:36am UTC](https://root-forum.cern.ch/t/the-induced-current-result/48688 "2022-02-08T10:36:45Z")

</div>

I have got the induced current generated by the proton traversing the detector based on the hschindl’s help. the result shows like the below, Does that means the biggest induced current is about 1.1 PA? And after 150 ns…

---

## [The problem in generating the gas file](https://root-forum.cern.ch/t/the-problem-in-generating-the-gas-file/48690)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 1\
**Last updated:** [February 7, 2022, 2:36pm UTC](https://root-forum.cern.ch/t/the-problem-in-generating-the-gas-file/48690 "2022-02-07T14:36:21Z")

</div>

I want to generate a nitrogen gas file, but when it comes to the writegasfile step , the results notice that “Cannot open file N2-740Torr.gas.” MediumMagboltz::RunMagboltz: Results: Drift velocity along E: 0.002…

---

## [The questions about the induced current](https://root-forum.cern.ch/t/the-questions-about-the-induced-current/48314)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 46\
**Last updated:** [January 24, 2022, 3:42am UTC](https://root-forum.cern.ch/t/the-questions-about-the-induced-current/48314 "2022-01-24T03:42:33Z")

</div>

I want to get the induced current signal, however the result show in the below, I don’t know what’s the reason for the error and I modify the code several times, it is still the same. the code is in the below #inclu…

---

## [Questions about the TrimSignal.c](https://root-forum.cern.ch/t/questions-about-the-trimsignal-c/48434)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 4\
**Last updated:** [January 22, 2022, 7:38am UTC](https://root-forum.cern.ch/t/questions-about-the-trimsignal-c/48434 "2022-01-22T07:38:14Z")

</div>

In the code below, the double ec is defined, but the ec is not used in the later procedure // Simulate an ion track. tr.NewTrack(0., 0., 0., 0., 0., 1., 0.); // Loop over the clusters. double xc, yc, zc, tc, ec, …

---

## [Garfield+Geant4 not running](https://root-forum.cern.ch/t/garfield-geant4-not-running/48413)

<div class="topic-metadata">

**Author:** [@Lucas\_Santos\_Sousa](https://root-forum.cern.ch/u/Lucas_Santos_Sousa)\
**Replies:** 4\
**Last updated:** [January 19, 2022, 8:37pm UTC](https://root-forum.cern.ch/t/garfield-geant4-not-running/48413 "2022-01-19T20:37:43Z")

</div>

The installation of the garfield has been succesful. As well the instalation of geant4 and the instalation of root. The problem is that, after i run the example exampleGeant4Interface and run the executable ./exampleGe…

---

## [How to get the fieldview](https://root-forum.cern.ch/t/how-to-get-the-fieldview/48414)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 5\
**Last updated:** [January 17, 2022, 12:14pm UTC](https://root-forum.cern.ch/t/how-to-get-the-fieldview/48414 "2022-01-17T12:14:21Z")

</div>

I have a new ansys model, and I want to see its fieldview, but the running result show killed… This is the code #include \<iostream\> #include \<TApplication.h\> #include \<TH1F.h\> #include \<TCanvas.h\> #include "Garfiel…

---

## [How do i run .C file importing .hh from garfield?](https://root-forum.cern.ch/t/how-do-i-run-c-file-importing-hh-from-garfield/48403)

<div class="topic-metadata">

**Author:** [@Lucas\_Santos\_Sousa](https://root-forum.cern.ch/u/Lucas_Santos_Sousa)\
**Replies:** 1\
**Last updated:** [January 16, 2022, 11:31am UTC](https://root-forum.cern.ch/t/how-do-i-run-c-file-importing-hh-from-garfield/48403 "2022-01-16T11:31:52Z")

</div>

I want to generate a executable from a gas file that i have writting. #include \<iostream\> #include "Garfield/MediumMagboltz.hh" #include "Garfield/FundamentalConstants.hh" using namespace Garfield; int main(int argc,…

---

## [Warning energy out of range when generate the gas file](https://root-forum.cern.ch/t/warning-energy-out-of-range-when-generate-the-gas-file/48395)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 6\
**Last updated:** [January 16, 2022, 12:47am UTC](https://root-forum.cern.ch/t/warning-energy-out-of-range-when-generate-the-gas-file/48395 "2022-01-16T00:47:54Z")

</div>

When I run the programme to generate the He.gas, the warning show like the screenshot in the below.

---

## [How to get the Ion Mobility file](https://root-forum.cern.ch/t/how-to-get-the-ion-mobility-file/48339)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 4\
**Last updated:** [January 12, 2022, 4:19pm UTC](https://root-forum.cern.ch/t/how-to-get-the-ion-mobility-file/48339 "2022-01-12T16:19:36Z")

</div>

---

## [How to set the SetTimeWindow's time to microsecond](https://root-forum.cern.ch/t/how-to-set-the-settimewindows-time-to-microsecond/48323)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 6\
**Last updated:** [January 10, 2022, 1:05pm UTC](https://root-forum.cern.ch/t/how-to-set-the-settimewindows-time-to-microsecond/48323 "2022-01-10T13:05:13Z")

</div>

the parameters units are all about nanosecond, but the sampling time about the detector is about 100 microsecond.So how can I set the range from 0 to 100 microsecond in the X axis.

---

## [The TRIM results notice killed](https://root-forum.cern.ch/t/the-trim-results-notice-killed/48248)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 13\
**Last updated:** [January 9, 2022, 4:00pm UTC](https://root-forum.cern.ch/t/the-trim-results-notice-killed/48248 "2022-01-09T16:00:08Z")

</div>

I have generated the EXYZ.txt from the TRIM, and imported to the Garfield++,but the running programme shows killed. #include \<iostream\> #include \<TApplication.h\> #include \<TH1F.h\> #include \<TCanvas.h\> #include "Garfie…

---

## [How to get the induced current signal](https://root-forum.cern.ch/t/how-to-get-the-induced-current-signal/48288)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 4\
**Last updated:** [January 9, 2022, 1:34pm UTC](https://root-forum.cern.ch/t/how-to-get-the-induced-current-signal/48288 "2022-01-09T13:34:02Z")

</div>

I want to get the weight.lis to set weight field by componentansys123 class, and finally get the current signal, but the example notice that we should set the potential volume1 to 1V, and potential of other volumes to 0V…

---

## [How to get the position signal of the proton](https://root-forum.cern.ch/t/how-to-get-the-position-signal-of-the-proton/48266)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 6\
**Last updated:** [January 6, 2022, 3:09pm UTC](https://root-forum.cern.ch/t/how-to-get-the-position-signal-of-the-proton/48266 "2022-01-06T15:09:36Z")

</div>

I want to get the position signal of the proton , it is like the Gauss distribution.

---

## [Get the function between ion velocity and electric field](https://root-forum.cern.ch/t/get-the-function-between-ion-velocity-and-electric-field/48276)

<div class="topic-metadata">

**Author:** [@changjh12](https://root-forum.cern.ch/u/changjh12)\
**Replies:** 3\
**Last updated:** [January 6, 2022, 2:20pm UTC](https://root-forum.cern.ch/t/get-the-function-between-ion-velocity-and-electric-field/48276 "2022-01-06T14:20:16Z")

</div>

Hello ,I want to get the function between ion velocity and electric field. According to the user guide , the gas table must be calculated first. Then use PlotIonVelocity() in the View Medium class. In this way, t…

---

## [No current signal was obtained](https://root-forum.cern.ch/t/no-current-signal-was-obtained/48250)

<div class="topic-metadata">

**Author:** [@changjh12](https://root-forum.cern.ch/u/changjh12)\
**Replies:** 5\
**Last updated:** [January 5, 2022, 2:09pm UTC](https://root-forum.cern.ch/t/no-current-signal-was-obtained/48250 "2022-01-05T14:09:27Z")

</div>

Hello,I want to use the DriftlineRKF class to get the induced current of electrons and ions. I calculated the gas table and imported it into the program. But in the end, no current signal was obtained, and it was a b…

---

## [How to understand theSRIM results](https://root-forum.cern.ch/t/how-to-understand-thesrim-results/48208)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 22\
**Last updated:** [January 5, 2022, 12:17pm UTC](https://root-forum.cern.ch/t/how-to-understand-thesrim-results/48208 "2022-01-05T12:17:27Z")

</div>

I have generated the SRIM table about the proton passing through the helium gas, When I imported the txt file to Garfield++,there is a plot like the below ,I don’t know how to understand it , and it really confused me. …

---

## [The installation about TRIM](https://root-forum.cern.ch/t/the-installation-about-trim/48227)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 4\
**Last updated:** [January 3, 2022, 2:00am UTC](https://root-forum.cern.ch/t/the-installation-about-trim/48227 "2022-01-03T02:00:44Z")

</div>

I have installed the SRIM ,and the stopping range tables is good to use, but when I clicked the TRIM Calculation, the interface flashed like the plot in the below. I have installed the fonts and made the COMCTL32.ocx, C…

---

## [How to get the EXYZ.txt file](https://root-forum.cern.ch/t/how-to-get-the-exyz-txt-file/48240)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 5\
**Last updated:** [January 3, 2022, 1:57am UTC](https://root-forum.cern.ch/t/how-to-get-the-exyz-txt-file/48240 "2022-01-03T01:57:52Z")

</div>

I want to use the TRIM to generate the EXYZ.txt file and then import it to the Garfield++. However I found two problems, one is after running I don’t know where to save or find the EXYZ.txt file, the other is when I set …

---

## [The electron drift line cannot be drawn](https://root-forum.cern.ch/t/the-electron-drift-line-cannot-be-drawn/48221)

<div class="topic-metadata">

**Author:** [@changjh12](https://root-forum.cern.ch/u/changjh12)\
**Replies:** 3\
**Last updated:** [December 30, 2021, 2:53pm UTC](https://root-forum.cern.ch/t/the-electron-drift-line-cannot-be-drawn/48221 "2021-12-30T14:53:48Z")

</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. This is my code. sdj.C (8.4 KB)

---

## [The results of the two examples are different](https://root-forum.cern.ch/t/the-results-of-the-two-examples-are-different/48182)

<div class="topic-metadata">

**Author:** [@changjh12](https://root-forum.cern.ch/u/changjh12)\
**Replies:** 2\
**Last updated:** [December 29, 2021, 1:36am UTC](https://root-forum.cern.ch/t/the-results-of-the-two-examples-are-different/48182 "2021-12-29T01:36:35Z")

</div>

Hello, I ran two examples of GEM and COMSOL today. But in both cases, the electron and ion trajectory maps are not the same. On the left is the trajectory graph of the GEM example, and on the right is the trajectory …

---

## [Problem on reading from Ansys and COMSOL](https://root-forum.cern.ch/t/problem-on-reading-from-ansys-and-comsol/48148)

<div class="topic-metadata">

**Author:** [@Lowerce](https://root-forum.cern.ch/u/Lowerce)\
**Replies:** 5\
**Last updated:** [December 28, 2021, 3:37pm UTC](https://root-forum.cern.ch/t/problem-on-reading-from-ansys-and-comsol/48148 "2021-12-28T15:37:57Z")

</div>

As the title, I tried examples Gem and Comsol, the origin examples worked well, but when I replaced the field file with my own (I only used the part of reading field process in examples), they did not work. I want to kn…

---

## [Questions about SRIM](https://root-forum.cern.ch/t/questions-about-srim/48165)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 2\
**Last updated:** [December 28, 2021, 2:58pm UTC](https://root-forum.cern.ch/t/questions-about-srim/48165 "2021-12-28T14:58:10Z")

</div>

I have read an example Srim.c, and there are some questions confused me a lot. 1,what’s the meaning of kinetic energy of the particle (in eV)? if the particle’s energy is 100MeV, then what’s the kinetic energy value …

---

## [The questions about the EXYZ.txt and Alpha\_in\_Ar.txt](https://root-forum.cern.ch/t/the-questions-about-the-exyz-txt-and-alpha-in-ar-txt/48176)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 2\
**Last updated:** [December 28, 2021, 2:54pm UTC](https://root-forum.cern.ch/t/the-questions-about-the-exyz-txt-and-alpha-in-ar-txt/48176 "2021-12-28T14:54:47Z")

</div>

As I know, the EXTZ.txt file is to simulate trajectories of alpha particles in silicon , and the Alpha\_in\_Ar.txt is to simulate trajectories of alpha particles in argon. The example shows that if we want to calculate …

---

## [How to plot the drift line](https://root-forum.cern.ch/t/how-to-plot-the-drift-line/48120)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 27\
**Last updated:** [December 23, 2021, 2:48am UTC](https://root-forum.cern.ch/t/how-to-plot-the-drift-line/48120 "2021-12-23T02:48:12Z")

</div>

I want to get the drift line of the electron and proton, but the result shows that " Could not determine the plot limits." should I set the range of the particle trace in the beginning ? I just want the proton can pass …

---

## [What's the meaning about DL and DT?](https://root-forum.cern.ch/t/whats-the-meaning-about-dl-and-dt/48139)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 3\
**Last updated:** [December 21, 2021, 10:45am UTC](https://root-forum.cern.ch/t/whats-the-meaning-about-dl-and-dt/48139 "2021-12-21T10:45:47Z")

</div>

I have generated the N2 gas file and then PlotElectronDiffusion in the field, but there are two curves in the plot, one is DT, one is DL, and what the curve represent separately?

[Previous page](https://root-forum.cern.ch/c/garfieldxx/25.md?page=12)

[Next page](https://root-forum.cern.ch/c/garfieldxx/25.md?page=14)
