# Garfield++

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

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

---

## [Electron Track not terminating](https://root-forum.cern.ch/t/electron-track-not-terminating/52848)

<div class="topic-metadata">

**Author:** [@kjay](https://root-forum.cern.ch/u/kjay)\
**Replies:** 1\
**Last updated:** [January 5, 2023, 10:23am UTC](https://root-forum.cern.ch/t/electron-track-not-terminating/52848 "2023-01-05T10:23:57Z")

</div>

I’m trying to record the coordinates of all the secondary electrons produced due to a primary electron (E\_kin=25keV) for 1000 different tracks in a gas mixture using TrackHeed in Garfield++. My source code is as follows: …

---

## [Problem running ROOT Analysis Code for Garfield Data](https://root-forum.cern.ch/t/problem-running-root-analysis-code-for-garfield-data/52884)

<div class="topic-metadata">

**Author:** [@Johann\_Mazzacaro](https://root-forum.cern.ch/u/Johann_Mazzacaro)\
**Replies:** 1\
**Last updated:** [December 25, 2022, 7:41pm UTC](https://root-forum.cern.ch/t/problem-running-root-analysis-code-for-garfield-data/52884 "2022-12-25T19:41:58Z")

</div>

Hello everyone, Im running into a problem by running an analysis code to data generated from Garfield in a Tree file from root. The error im getting in the terminal is as follow: \*\*\* Break \*\*\* segmentation violation …

---

## [RPC example running problem](https://root-forum.cern.ch/t/rpc-example-running-problem/52638)

<div class="topic-metadata">

**Author:** [@changjh12](https://root-forum.cern.ch/u/changjh12)\
**Replies:** 4\
**Last updated:** [December 6, 2022, 5:04am UTC](https://root-forum.cern.ch/t/rpc-example-running-problem/52638 "2022-12-06T05:04:20Z")

</div>

Hello, I tried to run the example RPC and found that no output signal was generated. 1. I looked at the code of the example and found a problem. This is the code in the example // The geometry of the RPC. const doub…

---

## [Issue merging large number of gas files](https://root-forum.cern.ch/t/issue-merging-large-number-of-gas-files/52604)

<div class="topic-metadata">

**Author:** [@lobis](https://root-forum.cern.ch/u/lobis)\
**Replies:** 5\
**Last updated:** [December 4, 2022, 11:26am UTC](https://root-forum.cern.ch/t/issue-merging-large-number-of-gas-files/52604 "2022-12-04T11:26:11Z")

</div>

Hello everyone (and most importantly, hello @hschindl!), I am currently working on a tool to generate/read/merge gas files (any feedback on this is very welcome!) and I am facing some issues when merging a large amount …

---

## [Garfield gas generator using multiple threads](https://root-forum.cern.ch/t/garfield-gas-generator-using-multiple-threads/52514)

<div class="topic-metadata">

**Author:** [@lobis](https://root-forum.cern.ch/u/lobis)\
**Replies:** 3\
**Last updated:** [December 2, 2022, 5:26pm UTC](https://root-forum.cern.ch/t/garfield-gas-generator-using-multiple-threads/52514 "2022-12-02T17:26:08Z")

</div>

Hello everyone, I am using Garfield++ to compute gas properties using this example as baseline. I have tried to paralelize it using threads but this does not seem to work, possibly because of some global variables as s…

---

## [Density in TRIM](https://root-forum.cern.ch/t/density-in-trim/52496)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 3\
**Last updated:** [November 25, 2022, 9:59am UTC](https://root-forum.cern.ch/t/density-in-trim/52496 "2022-11-25T09:59:13Z")

</div>

I am a beginner of SRIM and I have some questions . I want to simulate the ionization of α in air using TRIM, but the target density makes me confused.It is well known that the density of air is 1.29 g/cm^3,howe…

---

## [Alpha simulate in Garfield++](https://root-forum.cern.ch/t/alpha-simulate-in-garfield/52477)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 4\
**Last updated:** [November 24, 2022, 3:08am UTC](https://root-forum.cern.ch/t/alpha-simulate-in-garfield/52477 "2022-11-24T03:08:18Z")

</div>

Garfield++ can simulate the ionization of fast charged particles in gas Can Garfiled++ simulate the ionization of alpha and the avalanche of electrons produced by the ionization of alpha , can TrackHeed class do this? …

---

## [How should I simulate the avalanche of electrons produced by ionization of alpha particles？](https://root-forum.cern.ch/t/how-should-i-simulate-the-avalanche-of-electrons-produced-by-ionization-of-alpha-particles/52489)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 1\
**Last updated:** [November 23, 2022, 3:43pm UTC](https://root-forum.cern.ch/t/how-should-i-simulate-the-avalanche-of-electrons-produced-by-ionization-of-alpha-particles/52489 "2022-11-23T15:43:03Z")

</div>

How should I simulate the avalanche of electrons produced by ionization of alpha particles？I have known SRIM can simulate the ionization of alpha,but now I want simulate the eletrons produced by α particles？

---

## [Installing Garfield++](https://root-forum.cern.ch/t/installing-garfield/52065)

<div class="topic-metadata">

**Author:** [@sarah](https://root-forum.cern.ch/u/sarah)\
**Replies:** 12\
**Last updated:** [October 31, 2022, 6:32pm UTC](https://root-forum.cern.ch/t/installing-garfield/52065 "2022-10-31T18:32:11Z")

</div>

Hello everyone, I’m trying to install garfield++ on ubuntu but this error keeps coming up CMake Error at CMakeLists.txt:77 (include): include could not find load file: /home/sarah/products/Root/modules/RootNewMacros.c…

---

## [Problem about simulate the drift electron by using neBEM + AvalancheMicroscopic](https://root-forum.cern.ch/t/problem-about-simulate-the-drift-electron-by-using-nebem-avalanchemicroscopic/52096)

<div class="topic-metadata">

**Author:** [@Lan-sx](https://root-forum.cern.ch/u/Lan-sx)\
**Replies:** 2\
**Last updated:** [October 27, 2022, 2:27am UTC](https://root-forum.cern.ch/t/problem-about-simulate-the-drift-electron-by-using-nebem-avalanchemicroscopic/52096 "2022-10-27T02:27:24Z")

</div>

Dear Garfieldpp experts: I am doing some numerical calculation of field distortion nearly the TPC detector readout modules edge. I build my simplified model in Comsol and export the field map to Garfiled++, than simul…

---

## [Is AvalancheMicroscopic simulation of electron gain accurate in general?](https://root-forum.cern.ch/t/is-avalanchemicroscopic-simulation-of-electron-gain-accurate-in-general/51946)

<div class="topic-metadata">

**Author:** [@hezhoubo](https://root-forum.cern.ch/u/hezhoubo)\
**Replies:** 1\
**Last updated:** [October 23, 2022, 8:55pm UTC](https://root-forum.cern.ch/t/is-avalanchemicroscopic-simulation-of-electron-gain-accurate-in-general/51946 "2022-10-23T20:55:38Z")

</div>

Is AvalancheMicroscopic simulation of electron gain accurate in general? I simulate the avalanche of electrons near the anode wire.The simulated gain appears to be only half that of the experimental results. In order to…

---

## [About the Comsol](https://root-forum.cern.ch/t/about-the-comsol/51999)

<div class="topic-metadata">

**Author:** [@hezhoubo](https://root-forum.cern.ch/u/hezhoubo)\
**Replies:** 1\
**Last updated:** [October 17, 2022, 6:42pm UTC](https://root-forum.cern.ch/t/about-the-comsol/51999 "2022-10-17T18:42:23Z")

</div>

Dear experts, I am using Comsol with Garfield++ for simulation, and the file import seems to be OK. However, when simulating electronic drift, the terminal keeps output the following statement, may I ask what is the poss…

---

## [Electron Transparency](https://root-forum.cern.ch/t/electron-transparency/51982)

<div class="topic-metadata">

**Author:** [@sunil\_kumar\_saroha](https://root-forum.cern.ch/u/sunil_kumar_saroha)\
**Replies:** 1\
**Last updated:** [October 15, 2022, 5:37pm UTC](https://root-forum.cern.ch/t/electron-transparency/51982 "2022-10-15T17:37:37Z")

</div>

How to calculate the Electron transparency of a GEM foil? How to find the number of electrons entering in the hole and number of electrons heading towards readout?

---

## [Native windows build of Garfield++](https://root-forum.cern.ch/t/native-windows-build-of-garfield/51915)

<div class="topic-metadata">

**Author:** [@shangjiaxuan](https://root-forum.cern.ch/u/shangjiaxuan)\
**Replies:** 5\
**Last updated:** [October 13, 2022, 1:23pm UTC](https://root-forum.cern.ch/t/native-windows-build-of-garfield/51915 "2022-10-13T13:23:22Z")

</div>

Been working on making garfield++ to compile as dynamic library on windows. Headers will still need to use \_\_declspec(dllimport) on most imported symbols, but some examples can run now. Tested with ifort.

---

## [The shape of the signal is puzzling](https://root-forum.cern.ch/t/the-shape-of-the-signal-is-puzzling/51898)

<div class="topic-metadata">

**Author:** [@Alex\_Zhang](https://root-forum.cern.ch/u/Alex_Zhang)\
**Replies:** 1\
**Last updated:** [October 10, 2022, 1:04pm UTC](https://root-forum.cern.ch/t/the-shape-of-the-signal-is-puzzling/51898 "2022-10-10T13:04:52Z")

</div>

I used comsol to build an ionization chamber model. The model consists of a cathode plate and six pads. Cathode voltage is (-2806V), and all pad voltages are 0V. The working gas is P10. 50 α Particles emerge from the cen…

---

## [GetThresholdCrossing: Index out of range](https://root-forum.cern.ch/t/getthresholdcrossing-index-out-of-range/51710)

<div class="topic-metadata">

**Author:** [@Jihye\_Jeong](https://root-forum.cern.ch/u/Jihye_Jeong)\
**Replies:** 3\
**Last updated:** [October 5, 2022, 5:14am UTC](https://root-forum.cern.ch/t/getthresholdcrossing-index-out-of-range/51710 "2022-10-05T05:14:50Z")

</div>

Dear, I’m trying to get charge collection time with Garfieldpp by inputting Silvaco TCAD output file. When I simulated using Synopsys output file before Garfield update, it worked fine. But after Garfield update and u…

---

## [No calculation of electrons related information](https://root-forum.cern.ch/t/no-calculation-of-electrons-related-information/51700)

<div class="topic-metadata">

**Author:** [@Alex\_Zhang](https://root-forum.cern.ch/u/Alex_Zhang)\
**Replies:** 4\
**Last updated:** [October 3, 2022, 7:48am UTC](https://root-forum.cern.ch/t/no-calculation-of-electrons-related-information/51700 "2022-10-03T07:48:18Z")

</div>

Hi! I use comsol to build a model and import it into Garfield for signal simulation. During operation, the program don’t report errors and the electric field map have been successfully displayed, but the information abou…

---

## [The simulation program is killed](https://root-forum.cern.ch/t/the-simulation-program-is-killed/51695)

<div class="topic-metadata">

**Author:** [@hezhoubo](https://root-forum.cern.ch/u/hezhoubo)\
**Replies:** 1\
**Last updated:** [September 25, 2022, 10:10am UTC](https://root-forum.cern.ch/t/the-simulation-program-is-killed/51695 "2022-09-25T10:10:38Z")

</div>

Dear Experts, The simulation program is killed. I used AvalancheMicroscopic to simulate electron multiplication, AvalancheMC to simulate ion drift, and get inductive signals. When I simulate a track, I get a signal. B…

---

## [The energy of photon](https://root-forum.cern.ch/t/the-energy-of-photon/51698)

<div class="topic-metadata">

**Author:** [@miao\_feng](https://root-forum.cern.ch/u/miao_feng)\
**Replies:** 2\
**Last updated:** [September 25, 2022, 10:04am UTC](https://root-forum.cern.ch/t/the-energy-of-photon/51698 "2022-09-25T10:04:14Z")

</div>

When I use this method called transportphoton() in gas medium, I found that when the energy of photon is greater than 1 Mev, there is very little number of generated electron. What is the Energy range of photon Garfield…

---

## [Which model of MC method is implemented in AvalancheMC?](https://root-forum.cern.ch/t/which-model-of-mc-method-is-implemented-in-avalanchemc/51419)

<div class="topic-metadata">

**Author:** [@SCplayer1](https://root-forum.cern.ch/u/SCplayer1)\
**Replies:** 8\
**Last updated:** [September 21, 2022, 8:46am UTC](https://root-forum.cern.ch/t/which-model-of-mc-method-is-implemented-in-avalanchemc/51419 "2022-09-21T08:46:45Z")

</div>

Hi I am studying about Avalanche method in garfield++ I wanna ask question about MC method implemented in garfield++ Normally MC method describing avalanche method is using band calculation but when i give a look at Av…

---

## [Warning energy out of range](https://root-forum.cern.ch/t/warning-energy-out-of-range/51632)

<div class="topic-metadata">

**Author:** [@zhou](https://root-forum.cern.ch/u/zhou)\
**Replies:** 2\
**Last updated:** [September 21, 2022, 8:45am UTC](https://root-forum.cern.ch/t/warning-energy-out-of-range/51632 "2022-09-21T08:45:05Z")

</div>

---

## [Question about monte carlo method describing avalanche multiplication](https://root-forum.cern.ch/t/question-about-monte-carlo-method-describing-avalanche-multiplication/51376)

<div class="topic-metadata">

**Author:** [@SCplayer1](https://root-forum.cern.ch/u/SCplayer1)\
**Replies:** 2\
**Last updated:** [September 2, 2022, 6:49am UTC](https://root-forum.cern.ch/t/question-about-monte-carlo-method-describing-avalanche-multiplication/51376 "2022-09-02T06:49:39Z")

</div>

Hi I am studying about avalanche behavior described with monte carlo method in AvalancheMC class I have a question about function AvalancheMC::Computegainloss that function generate electron and hole using monte carlo …

---

## [Strange ion trajectory](https://root-forum.cern.ch/t/strange-ion-trajectory/51217)

<div class="topic-metadata">

**Author:** [@changjh12](https://root-forum.cern.ch/u/changjh12)\
**Replies:** 5\
**Last updated:** [August 30, 2022, 2:53am UTC](https://root-forum.cern.ch/t/strange-ion-trajectory/51217 "2022-08-30T02:53:24Z")

</div>

Hello,I generated some ions inside the detector, but there were some ions with strange trajectories. According to the direction of the electric field, the ions should move from the bottom of the detector to the top. But …

---

## [What property should I set to dielectric.dat in ComponentElmer](https://root-forum.cern.ch/t/what-property-should-i-set-to-dielectric-dat-in-componentelmer/51032)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 2\
**Last updated:** [August 1, 2022, 11:36am UTC](https://root-forum.cern.ch/t/what-property-should-i-set-to-dielectric-dat-in-componentelmer/51032 "2022-08-01T11:36:40Z")

</div>

Dear experts I calculated an field map by ElmerSolver and want to import it into Garfield++. I noticed that I need to write the relative permittivities to the dielectric.dat but I don’t know if I should write for “body”…

---

## [Can not read elements when using ComponentElmer](https://root-forum.cern.ch/t/can-not-read-elements-when-using-componentelmer/51031)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 3\
**Last updated:** [August 1, 2022, 7:27am UTC](https://root-forum.cern.ch/t/can-not-read-elements-when-using-componentelmer/51031 "2022-08-01T07:27:43Z")

</div>

Dear Experts I calculated an electric field map using Gmsh and ElmerSolver, and want to import it into Garfield++. I got an error when reading the elements but I don’t know what does it mean. My code: fCompE\_field = n…

---

## [Can I ask how to plot cross-section of silicon medium](https://root-forum.cern.ch/t/can-i-ask-how-to-plot-cross-section-of-silicon-medium/50977)

<div class="topic-metadata">

**Author:** [@SCplayer1](https://root-forum.cern.ch/u/SCplayer1)\
**Replies:** 1\
**Last updated:** [July 27, 2022, 5:10am UTC](https://root-forum.cern.ch/t/can-i-ask-how-to-plot-cross-section-of-silicon-medium/50977 "2022-07-27T05:10:19Z")

</div>

Hi I am studying about PAI model. I am trying to check cross section and cluster density used in garfield++. Can i ask a help for plotting diffrential cross section dsigma/dE using garfield ++ ? thanks for your help

---

## [Simulate clusters of a track](https://root-forum.cern.ch/t/simulate-clusters-of-a-track/50892)

<div class="topic-metadata">

**Author:** [@zhong](https://root-forum.cern.ch/u/zhong)\
**Replies:** 8\
**Last updated:** [July 24, 2022, 6:45am UTC](https://root-forum.cern.ch/t/simulate-clusters-of-a-track/50892 "2022-07-24T06:45:59Z")

</div>

Hello！ I want to get the clusters information of a track by using trackHeed, but it seems that Heed does not take the electric and magnetic field in the sensor into account for calculating the charged-particle trajector…

---

## [Three View Classes Can't work in a same Canvas](https://root-forum.cern.ch/t/three-view-classes-cant-work-in-a-same-canvas/50878)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 4\
**Last updated:** [July 23, 2022, 8:56am UTC](https://root-forum.cern.ch/t/three-view-classes-cant-work-in-a-same-canvas/50878 "2022-07-23T08:56:52Z")

</div>

Dear Experts It seems that whenever I try to draw ViewCell, ViewDrift, ViewField to a same TCanvas there will only be two of them. It works fine if I try any combinations of two of them. I tried the Example wire2d in El…

---

## [Heed++ NewTrack();](https://root-forum.cern.ch/t/heed-newtrack/50732)

<div class="topic-metadata">

**Author:** [@Weston\_Cadena](https://root-forum.cern.ch/u/Weston_Cadena)\
**Replies:** 10\
**Last updated:** [July 23, 2022, 8:36am UTC](https://root-forum.cern.ch/t/heed-newtrack/50732 "2022-07-23T08:36:40Z")

</div>

I have been using the Heed to simulate 1,000 tracks and find the initial information for Delta electrons. Whenever I run my code, I realized that the first couple Tracks generated by NewTrack() never seem to act correctl…

---

## [How to write a Boundary Condition in Elmer Field Calculation](https://root-forum.cern.ch/t/how-to-write-a-boundary-condition-in-elmer-field-calculation/50879)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 2\
**Last updated:** [July 22, 2022, 9:26am UTC](https://root-forum.cern.ch/t/how-to-write-a-boundary-condition-in-elmer-field-calculation/50879 "2022-07-22T09:26:55Z")

</div>

Dear Experts I’m not sure if this is related to Garfield++, I got a problem when tried to calculate electric field map for Garfield++ by ElmerSolver. In the .sif file, Boundary Condition section, I don’t know how to set…

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

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