# Garfield++

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

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

---

## [Setting Track Colors for Different Ions](https://root-forum.cern.ch/t/setting-track-colors-for-different-ions/47441)

<div class="topic-metadata">

**Author:** [@Jason\_Forson](https://root-forum.cern.ch/u/Jason_Forson)\
**Replies:** 3\
**Last updated:** [October 28, 2021, 3:21pm UTC](https://root-forum.cern.ch/t/setting-track-colors-for-different-ions/47441 "2021-10-28T15:21:52Z")

</div>

Hello, I’m hoping that this is just a simple thing that I am just not seeing because I’ve been staring at this code all day. Basic situation, I have code that simulates an ionization chamber with two kinds of ion beams…

---

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

<div class="topic-metadata">

**Author:** [@lyp](https://root-forum.cern.ch/u/lyp)\
**Replies:** 9\
**Last updated:** [October 25, 2021, 7:17am UTC](https://root-forum.cern.ch/t/how-to-set-the-gas-gain/47319 "2021-10-25T07:17:11Z")

</div>

Excuse me， is that SetGainFluctuationsPolya() from driftlineRKF class to set the gas gain?

---

## [How to keep two picture on one canvas?](https://root-forum.cern.ch/t/how-to-keep-two-picture-on-one-canvas/47203)

<div class="topic-metadata">

**Author:** [@lyp](https://root-forum.cern.ch/u/lyp)\
**Replies:** 17\
**Last updated:** [October 18, 2021, 12:19am UTC](https://root-forum.cern.ch/t/how-to-keep-two-picture-on-one-canvas/47203 "2021-10-18T00:19:57Z")

</div>

Hello,sir. About the example of drift tube ,I want to draw two signal figure on one canvas, how should i set the function?

---

## [How to get drift time in garfield++](https://root-forum.cern.ch/t/how-to-get-drift-time-in-garfield/46809)

<div class="topic-metadata">

**Author:** [@lyp](https://root-forum.cern.ch/u/lyp)\
**Replies:** 6\
**Last updated:** [September 24, 2021, 12:30pm UTC](https://root-forum.cern.ch/t/how-to-get-drift-time-in-garfield/46809 "2021-09-24T12:30:27Z")

</div>

Excuse me sir, I am a freshman in garfield++ and I am researching the relevance between the dirft time of electron and the particle source distance in MDT. I have read the example DriftTube ,it tells about relationship…

---

## [Running my own project in Garfield ++](https://root-forum.cern.ch/t/running-my-own-project-in-garfield/46798)

<div class="topic-metadata">

**Author:** [@Asser](https://root-forum.cern.ch/u/Asser)\
**Replies:** 1\
**Last updated:** [September 12, 2021, 4:52pm UTC](https://root-forum.cern.ch/t/running-my-own-project-in-garfield/46798 "2021-09-12T16:52:01Z")

</div>

I have installed garfield++ and I can run the examples using cmake. I am trying to run my own project using FEM files generated by elmer-fem. I don’t know ho to start like how I can get garfield to input and process thes…

---

## [How can I add chlorine to garfield++?](https://root-forum.cern.ch/t/how-can-i-add-chlorine-to-garfield/46415)

<div class="topic-metadata">

**Author:** [@Thunder](https://root-forum.cern.ch/u/Thunder)\
**Replies:** 2\
**Last updated:** [August 24, 2021, 8:57am UTC](https://root-forum.cern.ch/t/how-can-i-add-chlorine-to-garfield/46415 "2021-08-24T08:57:54Z")

</div>

Hi, I am trying to simulate a gas cell with a mixed gas of Kr and Cl using garifled++. The GEM example in the UserGuide file, it seems to be setting the gas via Magboltz. But Magboltz doesn’t seem to have data on chlo…

---

## [No medium at initial position](https://root-forum.cern.ch/t/no-medium-at-initial-position/46130)

<div class="topic-metadata">

**Author:** [@Christian](https://root-forum.cern.ch/u/Christian)\
**Replies:** 2\
**Last updated:** [August 2, 2021, 7:07pm UTC](https://root-forum.cern.ch/t/no-medium-at-initial-position/46130 "2021-08-02T19:07:17Z")

</div>

Hi! I didn’t find any related topic so I’m gonna post a new one. So, I run my program with a geometry using ComponentElmer and load the initial ionization positions from a ROOT file. But I keep getting the following err…

---

## [Drift Tube Example error: path = os.getenv('GARFIELD\_INSTALL') not working](https://root-forum.cern.ch/t/drift-tube-example-error-path-os-getenv-garfield-install-not-working/46112)

<div class="topic-metadata">

**Author:** [@A.Sa](https://root-forum.cern.ch/u/A.Sa)\
**Replies:** 1\
**Last updated:** [August 1, 2021, 4:47pm UTC](https://root-forum.cern.ch/t/drift-tube-example-error-path-os-getenv-garfield-install-not-working/46112 "2021-08-01T16:47:39Z")

</div>

Hello! I am attempting to get some plots from the Drift Tube example in Garfield++. I am using the python template available here: Examples/GasFile/read.py · master · garfield / garfieldpp · GitLab ; to make the plots. …

---

## [Problem with O2 at low electric field](https://root-forum.cern.ch/t/problem-with-o2-at-low-electric-field/46019)

<div class="topic-metadata">

**Author:** [@JosePaz25](https://root-forum.cern.ch/u/JosePaz25)\
**Replies:** 2\
**Last updated:** [August 2, 2021, 10:18am UTC](https://root-forum.cern.ch/t/problem-with-o2-at-low-electric-field/46019 "2021-08-02T10:18:01Z")

</div>

Hello, I have been trying to perform some simulations of electronic transport parameters in air. First I would like to start with dry air. The code I am using is quite similar to the one in Garfield’s examples. It is att…

---

## [Problems building Garfield++ examples and linking in application](https://root-forum.cern.ch/t/problems-building-garfield-examples-and-linking-in-application/46035)

<div class="topic-metadata">

**Author:** [@lobis](https://root-forum.cern.ch/u/lobis)\
**Replies:** 2\
**Last updated:** [July 28, 2021, 6:15am UTC](https://root-forum.cern.ch/t/problems-building-garfield-examples-and-linking-in-application/46035 "2021-07-28T06:15:34Z")

</div>

Hello, I installed Garfield according to Files · 4.0 · garfield / garfieldpp · GitLab (I am using the tag 4.0). Installation worked without issues. I then sourced the setup script source $GARFIELD\_INSTALL/share/Garfield…

---

## [Problem in installation](https://root-forum.cern.ch/t/problem-in-installation/45918)

<div class="topic-metadata">

**Author:** [@lyp](https://root-forum.cern.ch/u/lyp)\
**Replies:** 13\
**Last updated:** [July 23, 2021, 8:43am UTC](https://root-forum.cern.ch/t/problem-in-installation/45918 "2021-07-23T08:43:20Z")

</div>

I have downloaded a garfield-master version ,and then cmake successfully. But when i use ‘make -j8’ ,it feedback error as follow Then i skip this step ,however i couldn’t find install folder in next step. How could …

---

## [Signal calculation of low energy particles and fission fragments in a Micromegas geometry](https://root-forum.cern.ch/t/signal-calculation-of-low-energy-particles-and-fission-fragments-in-a-micromegas-geometry/45235)

<div class="topic-metadata">

**Author:** [@mugiwara](https://root-forum.cern.ch/u/mugiwara)\
**Replies:** 20\
**Last updated:** [July 14, 2021, 2:51pm UTC](https://root-forum.cern.ch/t/signal-calculation-of-low-energy-particles-and-fission-fragments-in-a-micromegas-geometry/45235 "2021-07-14T14:51:54Z")

</div>

Hello! I want to retrieve the signal of low energy ions and fission fragments (in the script I am attaching below,I want to track α-particles with kinetic energy of 5 MeV) passing through a Micromegas geometry.The code I…

---

## [Crash during example run](https://root-forum.cern.ch/t/crash-during-example-run/45796)

<div class="topic-metadata">

**Author:** [@Tahany](https://root-forum.cern.ch/u/Tahany)\
**Replies:** 3\
**Last updated:** [July 14, 2021, 6:19am UTC](https://root-forum.cern.ch/t/crash-during-example-run/45796 "2021-07-14T06:19:01Z")

</div>

Hi, I was running RPC example by using nebem as a field solver on cern lxplus but found this crash , am not sure about the nature of this issue !!so i would be pleased for any help to understand and solve . Preparing …

---

## [Anomalous primary ionisation for Ne / 5% CH4 using HEED](https://root-forum.cern.ch/t/anomalous-primary-ionisation-for-ne-5-ch4-using-heed/45766)

<div class="topic-metadata">

**Author:** [@SSJ](https://root-forum.cern.ch/u/SSJ)\
**Replies:** 6\
**Last updated:** [July 12, 2021, 9:39am UTC](https://root-forum.cern.ch/t/anomalous-primary-ionisation-for-ne-5-ch4-using-heed/45766 "2021-07-12T09:39:25Z")

</div>

Hello All, I have been using the example fe55.C which is available in the garfieldpp/Examples/Heed directory for checking the amount of primary ionisation that a particular photon can produce for different gas mixtures.…

---

## [Unit of Diffusion Coefficients Not Clear](https://root-forum.cern.ch/t/unit-of-diffusion-coefficients-not-clear/45671)

<div class="topic-metadata">

**Author:** [@SSJ](https://root-forum.cern.ch/u/SSJ)\
**Replies:** 5\
**Last updated:** [July 6, 2021, 4:38am UTC](https://root-forum.cern.ch/t/unit-of-diffusion-coefficients-not-clear/45671 "2021-07-06T04:38:00Z")

</div>

Hello all, I have been using Magboltz (interfaced with Garfield++) to generate some gas files to study the transport properties of some gas mixtures. I have noticed that while retrieving the transport parameters of the …

---

## [Moving standard output when loading Garfield libraries to debug output](https://root-forum.cern.ch/t/moving-standard-output-when-loading-garfield-libraries-to-debug-output/45604)

<div class="topic-metadata">

**Author:** [@Javier\_Galan](https://root-forum.cern.ch/u/Javier_Galan)\
**Replies:** 3\
**Last updated:** [July 4, 2021, 11:14am UTC](https://root-forum.cern.ch/t/moving-standard-output-when-loading-garfield-libraries-to-debug-output/45604 "2021-07-04T11:14:04Z")

</div>

Plz, could be the output lines 50:52 if (!path.empty()) { std::cout \<\< "Heed:\\n Database path: " \<\< path \<\< "\\n"; } at file be redirected to a debug output or just removed? Not interested to see that each …

---

## [Tiny number of electrons produce by TrackSrim](https://root-forum.cern.ch/t/tiny-number-of-electrons-produce-by-tracksrim/45476)

<div class="topic-metadata">

**Author:** [@Henry\_Billiot](https://root-forum.cern.ch/u/Henry_Billiot)\
**Replies:** 7\
**Last updated:** [June 22, 2021, 7:49am UTC](https://root-forum.cern.ch/t/tiny-number-of-electrons-produce-by-tracksrim/45476 "2021-06-22T07:49:35Z")

</div>

Hi, As I was testing TrackSrim, I noticed some strange behaviors. The number of electrons created in the track varies wildly for the same type of particle with the same kinetic energy. I produced this behavior by cal…

---

## [Is the existence of a plane required for the AddPixelOnPlane() functions?](https://root-forum.cern.ch/t/is-the-existence-of-a-plane-required-for-the-addpixelonplane-functions/45472)

<div class="topic-metadata">

**Author:** [@Henry\_Billiot](https://root-forum.cern.ch/u/Henry_Billiot)\
**Replies:** 1\
**Last updated:** [June 19, 2021, 9:57am UTC](https://root-forum.cern.ch/t/is-the-existence-of-a-plane-required-for-the-addpixelonplane-functions/45472 "2021-06-19T09:57:15Z")

</div>

Hi, As the title suggests, I am curious about whether or not a pixel can only exist on top or bottom of a plane. For example, if I define a top plane (locate at d) and a bottom plane (locate at 0), what would happen if …

---

## [How to use TrackSrim](https://root-forum.cern.ch/t/how-to-use-tracksrim/45459)

<div class="topic-metadata">

**Author:** [@Henry\_Billiot](https://root-forum.cern.ch/u/Henry_Billiot)\
**Replies:** 3\
**Last updated:** [June 19, 2021, 9:54am UTC](https://root-forum.cern.ch/t/how-to-use-tracksrim/45459 "2021-06-19T09:54:09Z")

</div>

Hi, I am currently trying to replace TrackHeed with TrackSrim and have some questions regarding the SetTargetClusterSize() and SetClustersMaximum() functions and some details of TrackSrim. Based on the user guide, I und…

---

## [Garfield++ installation on Ubuntu 20 Error](https://root-forum.cern.ch/t/garfield-installation-on-ubuntu-20-error/45313)

<div class="topic-metadata">

**Author:** [@A.Sa](https://root-forum.cern.ch/u/A.Sa)\
**Replies:** 5\
**Last updated:** [June 18, 2021, 11:37am UTC](https://root-forum.cern.ch/t/garfield-installation-on-ubuntu-20-error/45313 "2021-06-18T11:37:27Z")

</div>

\_ROOT Version: root\_v6 .16.00. \_Platform: Ubuntu 20.04.2 LTS \_Compiler: G++ I have tried to install Garfield++ but 31% into the process, I get the following error after passing the command make && make install (the im…

---

## [Weird signal shape for proportional counter](https://root-forum.cern.ch/t/weird-signal-shape-for-proportional-counter/45096)

<div class="topic-metadata">

**Author:** [@Henry\_Billiot](https://root-forum.cern.ch/u/Henry_Billiot)\
**Replies:** 8\
**Last updated:** [June 15, 2021, 8:29am UTC](https://root-forum.cern.ch/t/weird-signal-shape-for-proportional-counter/45096 "2021-06-15T08:29:01Z")

</div>

I am simulating a proportional counter (just to study the basics and to make sure that I am using Garfield correctly) and getting a strange shape for the signals like below: The top picture is when there is only 1 …

---

## [Garfield++ is it possible to add other material?](https://root-forum.cern.ch/t/garfield-is-it-possible-to-add-other-material/45352)

<div class="topic-metadata">

**Author:** [@BJKim](https://root-forum.cern.ch/u/BJKim)\
**Replies:** 1\
**Last updated:** [June 11, 2021, 8:59am UTC](https://root-forum.cern.ch/t/garfield-is-it-possible-to-add-other-material/45352 "2021-06-11T08:59:48Z")

</div>

Hello I need some help with adding other material such as HPGe etc. As I know, user can modify transport parameters even though we just use material from Magboltz program or MediumSilicon object. I’m wondering whether …

---

## [Garfield / Root Errors](https://root-forum.cern.ch/t/garfield-root-errors/45342)

<div class="topic-metadata">

**Author:** [@Jason\_Forson](https://root-forum.cern.ch/u/Jason_Forson)\
**Replies:** 2\
**Last updated:** [June 10, 2021, 5:02pm UTC](https://root-forum.cern.ch/t/garfield-root-errors/45342 "2021-06-10T17:02:57Z")

</div>

Hello, it’s me again. Once again I’m getting this error when I get to the “make” step of running something. /home/jason/garfieldpp/Examples/IsobutaneGrid/grid.C:8:10: fatal error: TCanvas.h: No such file or directory …

---

## [Garfield++ / Root Errors - fatal error: TCanvas.h: No such file or directory](https://root-forum.cern.ch/t/garfield-root-errors-fatal-error-tcanvas-h-no-such-file-or-directory/45294)

<div class="topic-metadata">

**Author:** [@Jason\_Forson](https://root-forum.cern.ch/u/Jason_Forson)\
**Replies:** 13\
**Last updated:** [June 9, 2021, 11:48pm UTC](https://root-forum.cern.ch/t/garfield-root-errors-fatal-error-tcanvas-h-no-such-file-or-directory/45294 "2021-06-09T23:48:48Z")

</div>

Hello, So I’m trying to run a simulation in Garfield++ and as far as I can tell I almost have it working. Root, Geant4, Garfield, and SRIM/TRIM are all installed and I think they all work individually but I get the foll…

---

## [Gasfile issue during running](https://root-forum.cern.ch/t/gasfile-issue-during-running/44119)

<div class="topic-metadata">

**Author:** [@ahmer\_k](https://root-forum.cern.ch/u/ahmer_k)\
**Replies:** 130\
**Last updated:** [May 30, 2021, 2:57am UTC](https://root-forum.cern.ch/t/gasfile-issue-during-running/44119 "2021-05-30T02:57:25Z")

</div>

@hschindl i was working on it and producing different gas files. now u want to produce another gas file by using example gasfile in garfield. but it is giving an error and not running see. as i have put name and paramete…

---

## [gas.LoadGasFile() vs gas.Initialise(true)](https://root-forum.cern.ch/t/gas-loadgasfile-vs-gas-initialise-true/44925)

<div class="topic-metadata">

**Author:** [@Henry\_Billiot](https://root-forum.cern.ch/u/Henry_Billiot)\
**Replies:** 10\
**Last updated:** [May 18, 2021, 1:39pm UTC](https://root-forum.cern.ch/t/gas-loadgasfile-vs-gas-initialise-true/44925 "2021-05-18T13:39:44Z")

</div>

Hi, Thus far, I have been using gas.Initialise(true) to calculate the cross-section upfront (like this post suggested: Is it possible to parallelize Garfield? - #16 by Pete). However, s this the equivalent of gas.LoadGa…

---

## [Comparison of two Gas files](https://root-forum.cern.ch/t/comparison-of-two-gas-files/44690)

<div class="topic-metadata">

**Author:** [@Tahany](https://root-forum.cern.ch/u/Tahany)\
**Replies:** 6\
**Last updated:** [May 16, 2021, 8:47am UTC](https://root-forum.cern.ch/t/comparison-of-two-gas-files/44690 "2021-05-16T08:47:55Z")

</div>

Hello, I have created two gas files of different gas mixture at Garfiled++ , now if i wanna make a comparison plots of the gas properties of the two gas files in the same canvas , How to do this? Thanks,

---

## [How to simulate a beam of particles?](https://root-forum.cern.ch/t/how-to-simulate-a-beam-of-particles/44789)

<div class="topic-metadata">

**Author:** [@Henry\_Billiot](https://root-forum.cern.ch/u/Henry_Billiot)\
**Replies:** 4\
**Last updated:** [May 12, 2021, 7:28am UTC](https://root-forum.cern.ch/t/how-to-simulate-a-beam-of-particles/44789 "2021-05-12T07:28:25Z")

</div>

Hi, As the title suggests, I’m looking for a way to simulate a beam going through a proportional counter. Based on what I know about Garfield so far, it seems like the only way to do this is by calling NewTrack() as man…

---

## [No convergence achieved when refining internal isoparametric coordinates](https://root-forum.cern.ch/t/no-convergence-achieved-when-refining-internal-isoparametric-coordinates/44613)

<div class="topic-metadata">

**Author:** [@selrahc](https://root-forum.cern.ch/u/selrahc)\
**Replies:** 2\
**Last updated:** [May 11, 2021, 9:56am UTC](https://root-forum.cern.ch/t/no-convergence-achieved-when-refining-internal-isoparametric-coordinates/44613 "2021-05-11T09:56:30Z")

</div>

Hello, I’m running a gem simulation based on the example found in Examples/Elmer/lem. I modified the gmsh code so I could get a double and a triple gem foil cell. When I simulate an avalanche with the single or double f…

---

## [Make error of an example](https://root-forum.cern.ch/t/make-error-of-an-example/44669)

<div class="topic-metadata">

**Author:** [@Tahany](https://root-forum.cern.ch/u/Tahany)\
**Replies:** 14\
**Last updated:** [May 2, 2021, 11:01am UTC](https://root-forum.cern.ch/t/make-error-of-an-example/44669 "2021-05-02T11:01:19Z")

</div>

Hi, I have installed Garfield++ on lxplus but during building an example by using make , i found the attached error !! Does anyone know where exactly the problem and how to solve ?? /cvmfs/sft.cern.ch/lcg/releases/CMak…

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

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