# Garfield++

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

[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:** 13

---

## [How to extract the points used by garfield at this plot?](https://root-forum.cern.ch/t/how-to-extract-the-points-used-by-garfield-at-this-plot/49945)

<div class="topic-metadata">

**Author:** [@Lucas\_Santos\_Sousa](https://root-forum.cern.ch/u/Lucas_Santos_Sousa)\
**Replies:** 2\
**Last updated:** [May 12, 2022, 3:38am UTC](https://root-forum.cern.ch/t/how-to-extract-the-points-used-by-garfield-at-this-plot/49945 "2022-05-12T03:38:53Z")

</div>

I am using the following code at Garfield++ to plot the electric field setup: fieldView.SetComponent(&cmp); fieldView.SetNumberOfSamples1d(1000); fieldView.SetElectricFieldRange(0,3000); fieldView.PlotProfile(0,…

---

## [Import electric field values on a 3d grid](https://root-forum.cern.ch/t/import-electric-field-values-on-a-3d-grid/49290)

<div class="topic-metadata">

**Author:** [@dyq](https://root-forum.cern.ch/u/dyq)\
**Replies:** 10\
**Last updated:** [May 8, 2022, 2:25pm UTC](https://root-forum.cern.ch/t/import-electric-field-values-on-a-3d-grid/49290 "2022-05-08T14:25:48Z")

</div>

Hello, I have a question for garfield++. I have a txt file. In this txt file, the grid points contain the electric field values for a sphere, and a small irregular 3d domain in the centre of the sphere should have elec…

---

## [Is the gas file inappropriate?](https://root-forum.cern.ch/t/is-the-gas-file-inappropriate/49826)

<div class="topic-metadata">

**Author:** [@hezhoubo](https://root-forum.cern.ch/u/hezhoubo)\
**Replies:** 4\
**Last updated:** [May 4, 2022, 6:54am UTC](https://root-forum.cern.ch/t/is-the-gas-file-inappropriate/49826 "2022-05-04T06:54:50Z")

</div>

When running the program, the terminal displays the following statement: MediumMagboltz::GetElectronCollisionRate: Rate at 213.998 eV is not included in the current table. Increasing energy range to 224.698 eV. Avala…

---

## [Set title in plot having only canvas](https://root-forum.cern.ch/t/set-title-in-plot-having-only-canvas/49778)

<div class="topic-metadata">

**Author:** [@Las\_D\_Nestor](https://root-forum.cern.ch/u/Las_D_Nestor)\
**Replies:** 4\
**Last updated:** [May 3, 2022, 5:32am UTC](https://root-forum.cern.ch/t/set-title-in-plot-having-only-canvas/49778 "2022-05-03T05:32:36Z")

</div>

I am reproducing the example plot of the voltage from the examples of garfield++ pf ´RPCbyneBEM.C´, but I am only retrieving the canvas from the variable and seting the title of the canvas, But how do I save the image of…

---

## [Can I use Garfield++ to simulate the signal produced in a detector by low energy photons (eg X-rays at 5.9keV)?](https://root-forum.cern.ch/t/can-i-use-garfield-to-simulate-the-signal-produced-in-a-detector-by-low-energy-photons-eg-x-rays-at-5-9kev/49790)

<div class="topic-metadata">

**Author:** [@hezhoubo](https://root-forum.cern.ch/u/hezhoubo)\
**Replies:** 4\
**Last updated:** [May 2, 2022, 1:07pm UTC](https://root-forum.cern.ch/t/can-i-use-garfield-to-simulate-the-signal-produced-in-a-detector-by-low-energy-photons-eg-x-rays-at-5-9kev/49790 "2022-05-02T13:07:32Z")

</div>

I saw in the manual a function for photon transport：void TransportPhoton(const double x0, const double y0, const double z0, const double t0, const double e0, const double dx0, const double dy0, const double dz0,int& ne…

---

## [ComponentAnalyticField and ComponentElmer2d give different results](https://root-forum.cern.ch/t/componentanalyticfield-and-componentelmer2d-give-different-results/49547)

<div class="topic-metadata">

**Author:** [@ming](https://root-forum.cern.ch/u/ming)\
**Replies:** 4\
**Last updated:** [April 25, 2022, 7:40pm UTC](https://root-forum.cern.ch/t/componentanalyticfield-and-componentelmer2d-give-different-results/49547 "2022-04-25T19:40:26Z")

</div>

Hi, I am trying to calculate the signals and charges created by alpha particles in a gas tube, but I got different results when I replaced ComponentAnalyticField with ComponentElmer2d. The tube radius is 0.2 cm and the…

---

## [Does the Heed program simulate particles that scatter when they pass through a medium?](https://root-forum.cern.ch/t/does-the-heed-program-simulate-particles-that-scatter-when-they-pass-through-a-medium/49575)

<div class="topic-metadata">

**Author:** [@hezhoubo](https://root-forum.cern.ch/u/hezhoubo)\
**Replies:** 8\
**Last updated:** [April 19, 2022, 9:47am UTC](https://root-forum.cern.ch/t/does-the-heed-program-simulate-particles-that-scatter-when-they-pass-through-a-medium/49575 "2022-04-19T09:47:00Z")

</div>

When I repeatedly simulate a few thousand particles passing through the drift tube (the particles are emitted in the same position and direction), I get the fastest time for the electrons on the track to reach the anode …

---

## [Some trouble in setting transfer function](https://root-forum.cern.ch/t/some-trouble-in-setting-transfer-function/49414)

<div class="topic-metadata">

**Author:** [@lyp](https://root-forum.cern.ch/u/lyp)\
**Replies:** 9\
**Last updated:** [April 7, 2022, 12:26pm UTC](https://root-forum.cern.ch/t/some-trouble-in-setting-transfer-function/49414 "2022-04-07T12:26:44Z")

</div>

Hi,everyone. I am simulating the relationship between the drift-time and position of drifttube. I set the threshold=-1 pf and output the time of ThresholdCrossings. I found that when I didn’t set the transfer fuction ,th…

---

## [The relationship between the gas pressure, gas chamber voltage and integrated charge](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-gas-chamber-voltage-and-integrated-charge/49420)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 14\
**Last updated:** [April 7, 2022, 5:09am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-gas-chamber-voltage-and-integrated-charge/49420 "2022-04-07T05:09:48Z")

</div>

The plot seems to show that the voltage dose not impact the integrated charge,

---

## [How to get the dose value of the gas ionization chamber](https://root-forum.cern.ch/t/how-to-get-the-dose-value-of-the-gas-ionization-chamber/49477)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 1\
**Last updated:** [April 6, 2022, 9:07am UTC](https://root-forum.cern.ch/t/how-to-get-the-dose-value-of-the-gas-ionization-chamber/49477 "2022-04-06T09:07:55Z")

</div>

I have got the induced current and integrated charge result of the gas ionization chamber, Can I get the dose value through the Garfield++?

---

## [Running RPC example on batchmode?](https://root-forum.cern.ch/t/running-rpc-example-on-batchmode/49330)

<div class="topic-metadata">

**Author:** [@Las\_D\_Nestor](https://root-forum.cern.ch/u/Las_D_Nestor)\
**Replies:** 10\
**Last updated:** [March 25, 2022, 5:36am UTC](https://root-forum.cern.ch/t/running-rpc-example-on-batchmode/49330 "2022-03-25T05:36:04Z")

</div>

Currently I am successfully manage to compile the Garfield++/garfieldpp/Examples/RPC/ example, on my local computer and as a result, when executing the ./Weight file I get two plots in a root canvas which I can save, fro…

---

## [The relationship between the gas pressure and the average collected charge](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 103\
**Last updated:** [March 25, 2022, 2:48am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-the-average-collected-charge/48972 "2022-03-25T02:48:54Z")

</div>

I have simulated the average collected charge(the number of tracks simulated is 1000) in the gas ionization chamber caused by proton based on different gas pressure to find the optimization pressure value. Now there are …

---

## [Can I get more examples of Garfield++ besides the official website?](https://root-forum.cern.ch/t/can-i-get-more-examples-of-garfield-besides-the-official-website/49319)

<div class="topic-metadata">

**Author:** [@hezhoubo](https://root-forum.cern.ch/u/hezhoubo)\
**Replies:** 4\
**Last updated:** [March 24, 2022, 9:27am UTC](https://root-forum.cern.ch/t/can-i-get-more-examples-of-garfield-besides-the-official-website/49319 "2022-03-24T09:27:34Z")

</div>

First of all, thanks a lot for this very powerful soft. I want to learn about drift chamber simulation examples in Garfield++.Can I get more examples of Garfield++ ? I want to simulate the electron drift time in the dr…

---

## [The questions about the integrated charge](https://root-forum.cern.ch/t/the-questions-about-the-integrated-charge/49282)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 4\
**Last updated:** [March 21, 2022, 2:45pm UTC](https://root-forum.cern.ch/t/the-questions-about-the-integrated-charge/49282 "2022-03-21T14:45:40Z")

</div>

as in the screen shot, why the average electron/ion pairs are 18.8924 per cm, the thickness of my detector is 10mm, then the integrated charge(the number of electrons) would be 18.8924, then why the integrated charge is …

---

## [Attachment coefficient under low electric field](https://root-forum.cern.ch/t/attachment-coefficient-under-low-electric-field/49214)

<div class="topic-metadata">

**Author:** [@hezhoubo](https://root-forum.cern.ch/u/hezhoubo)\
**Replies:** 6\
**Last updated:** [March 17, 2022, 7:57am UTC](https://root-forum.cern.ch/t/attachment-coefficient-under-low-electric-field/49214 "2022-03-17T07:57:28Z")

</div>

Excuse me, I want to simulate the recombination of electrons and positive ions, and when I generate the gas file, I find that the attachment coefficient is zero at a low electric field. Can Garfield++ simulate the recom…

---

## [Recombination of electrons and positive ions in ultra-low electric field](https://root-forum.cern.ch/t/recombination-of-electrons-and-positive-ions-in-ultra-low-electric-field/49221)

<div class="topic-metadata">

**Author:** [@hezhoubo](https://root-forum.cern.ch/u/hezhoubo)\
**Replies:** 2\
**Last updated:** [March 17, 2022, 7:51am UTC](https://root-forum.cern.ch/t/recombination-of-electrons-and-positive-ions-in-ultra-low-electric-field/49221 "2022-03-17T07:51:31Z")

</div>

Excuse me,I am a beginner.When I used Garfield+ + simulation, the electric field in the medium was less than 50V/cm, the electrons and positive ions produced by the particle ionized gas did not seem to recombine, and the…

---

## [Loading an existing magnetic field map into Garfield++](https://root-forum.cern.ch/t/loading-an-existing-magnetic-field-map-into-garfield/49126)

<div class="topic-metadata">

**Author:** [@ychung](https://root-forum.cern.ch/u/ychung)\
**Replies:** 3\
**Last updated:** [March 16, 2022, 9:19pm UTC](https://root-forum.cern.ch/t/loading-an-existing-magnetic-field-map-into-garfield/49126 "2022-03-16T21:19:32Z")

</div>

Hello, I am trying to simulate the ionized electrons drift in the gas where the electric and magnetic fields are enabled, but I have no idea how to load an existing magnetic field map in the Garfield++. For the electri…

---

## [About the flag number 1 in DriftLineRKF](https://root-forum.cern.ch/t/about-the-flag-number-1-in-driftlinerkf/49203)

<div class="topic-metadata">

**Author:** [@iwntiu](https://root-forum.cern.ch/u/iwntiu)\
**Replies:** 2\
**Last updated:** [March 16, 2022, 6:01am UTC](https://root-forum.cern.ch/t/about-the-flag-number-1-in-driftlinerkf/49203 "2022-03-16T06:01:01Z")

</div>

Hello, I have tried to simulate MWDC with the class DirftLineRKF and AvalancheMC. I used DriftLineRKF::GetEndPoint(x,y,z,t,status) and I got the status(flag) number 1. I couldn’t find this value at the UserGuide Table…

---

## [Crashing ROOT during garfield run](https://root-forum.cern.ch/t/crashing-root-during-garfield-run/49122)

<div class="topic-metadata">

**Author:** [@Johann\_Mazzacaro](https://root-forum.cern.ch/u/Johann_Mazzacaro)\
**Replies:** 2\
**Last updated:** [March 10, 2022, 9:21pm UTC](https://root-forum.cern.ch/t/crashing-root-during-garfield-run/49122 "2022-03-10T21:21:21Z")

</div>

Im using a garfield GEM file, and when I run it, I get a crash. Im not getting the same problem with the same file in another computer, so im wondering if it is a problem with ROOT, since the OS was updated from ubuntu …

---

## [Error when trying to run the compiler](https://root-forum.cern.ch/t/error-when-trying-to-run-the-compiler/49095)

<div class="topic-metadata">

**Author:** [@Lucas\_Santos\_Sousa](https://root-forum.cern.ch/u/Lucas_Santos_Sousa)\
**Replies:** 2\
**Last updated:** [March 9, 2022, 11:17pm UTC](https://root-forum.cern.ch/t/error-when-trying-to-run-the-compiler/49095 "2022-03-09T23:17:49Z")

</div>

source /cvmfs/sft.cern.ch/lcg/views/LCG\_101/x86\_64-centos7-gcc11-opt/setup.sh cmake . make -j8 For while, everything is good and the executable ./build is done. The problem is, after i run ./build on terminal, i got thi…

---

## [How to get information about the arbitrary position of an electron in the track of a drifting avalanche process](https://root-forum.cern.ch/t/how-to-get-information-about-the-arbitrary-position-of-an-electron-in-the-track-of-a-drifting-avalanche-process/49071)

<div class="topic-metadata">

**Author:** [@WAQ](https://root-forum.cern.ch/u/WAQ)\
**Replies:** 6\
**Last updated:** [March 9, 2022, 1:02pm UTC](https://root-forum.cern.ch/t/how-to-get-information-about-the-arbitrary-position-of-an-electron-in-the-track-of-a-drifting-avalanche-process/49071 "2022-03-09T13:02:39Z")

</div>

Hello! I know get the information the end point of the electron like aval.GetElectronEndpoint(j, xe1, ye1, ze1, te1, e1, xe2, ye2, ze2, te2, e2, status); But I want to get information like x, y , z , energy, t about …

---

## [Cmake and make error - garfield](https://root-forum.cern.ch/t/cmake-and-make-error-garfield/49092)

<div class="topic-metadata">

**Author:** [@Lucas\_Santos\_Sousa](https://root-forum.cern.ch/u/Lucas_Santos_Sousa)\
**Replies:** 9\
**Last updated:** [March 9, 2022, 12:06am UTC](https://root-forum.cern.ch/t/cmake-and-make-error-garfield/49092 "2022-03-09T00:06:35Z")

</div>

CMake error: CMake Error at CMakeLists.txt:16 (add\_executable): Target "build" links to target "Garfield::Garfield" but the target was not found. Perhaps a find\_package() call is missing for an IMPORTED target, or …

---

## [Why the two plots' color are different](https://root-forum.cern.ch/t/why-the-two-plots-color-are-different/49009)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 1\
**Last updated:** [March 3, 2022, 1:39pm UTC](https://root-forum.cern.ch/t/why-the-two-plots-color-are-different/49009 "2022-03-03T13:39:29Z")

</div>

I have simulated the integrated charge accompanied with the gas pressure changing. However why the two plots’ color are different?

---

## [What does rewinding mean?](https://root-forum.cern.ch/t/what-does-rewinding-mean/48989)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 2\
**Last updated:** [March 1, 2022, 10:54pm UTC](https://root-forum.cern.ch/t/what-does-rewinding-mean/48989 "2022-03-01T22:54:50Z")

</div>

---

## [Modification to source code](https://root-forum.cern.ch/t/modification-to-source-code/48978)

<div class="topic-metadata">

**Author:** [@dyq](https://root-forum.cern.ch/u/dyq)\
**Replies:** 4\
**Last updated:** [March 1, 2022, 5:51am UTC](https://root-forum.cern.ch/t/modification-to-source-code/48978 "2022-03-01T05:51:38Z")

</div>

Hello! I am currently trying to use garfield++ to simulate electron drifting motion using class AvalancheMC: AvalancheMC drift; double x0 = … double y0 = … double z0 = … double t0 = … drift.DriftElectron(x0,y0,z0,…

---

## [Warning energy out of range,increase electron energy integration range](https://root-forum.cern.ch/t/warning-energy-out-of-range-increase-electron-energy-integration-range/48774)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 14\
**Last updated:** [February 26, 2022, 3:06am UTC](https://root-forum.cern.ch/t/warning-energy-out-of-range-increase-electron-energy-integration-range/48774 "2022-02-26T03:06:15Z")

</div>

I want to generate the He gas at the 500 Torr, the error shows like below.

---

## [The relationship between the voltage of detector and induced current](https://root-forum.cern.ch/t/the-relationship-between-the-voltage-of-detector-and-induced-current/48906)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 9\
**Last updated:** [February 26, 2022, 3:04am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-voltage-of-detector-and-induced-current/48906 "2022-02-26T03:04:35Z")

</div>

I have simulated the induced current in the gas ionization chamber caused by proton based on different detector voltage to find the optimization voltage value. However the result seems abnornal.

---

## [The relationship between the gas pressure and induced current](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 22\
**Last updated:** [February 22, 2022, 11:19am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761 "2022-02-22T11:19:25Z")

</div>

I have simulated the induced current in the gas ionization chamber caused by proton based on different gas pressure value to find the optimization gas pressure value. However the result seems unreasonable and wrong. …

---

## [The relationship between voltage and induced current](https://root-forum.cern.ch/t/the-relationship-between-voltage-and-induced-current/48867)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 1\
**Last updated:** [February 21, 2022, 9:55am UTC](https://root-forum.cern.ch/t/the-relationship-between-voltage-and-induced-current/48867 "2022-02-21T09:55:00Z")

</div>

I have simulated one proton traversing through the gas ionization chamber set with the different voltage。 Apparently there is no rule about the plot but drastic fluctuation.

---

## [Questions about DriftLineRKF](https://root-forum.cern.ch/t/questions-about-driftlinerkf/48846)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 3\
**Last updated:** [February 18, 2022, 12:12pm UTC](https://root-forum.cern.ch/t/questions-about-driftlinerkf/48846 "2022-02-18T12:12:52Z")

</div>

I want to know more about the DriftLineRKF, It seems like a algorithm to me. However I don’ t know the specific content and principle of this algorithm. Is there any introduction about it? Besides if I want to write a f…

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

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