# Garfield++

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

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

---

## [The attachment data of BF3 in Magboltz](https://root-forum.cern.ch/t/the-attachment-data-of-bf3-in-magboltz/57010)

<div class="topic-metadata">

**Author:** [@Dongliang](https://root-forum.cern.ch/u/Dongliang)\
**Replies:** 1\
**Last updated:** [November 6, 2023, 9:04pm UTC](https://root-forum.cern.ch/t/the-attachment-data-of-bf3-in-magboltz/57010 "2023-11-06T21:04:36Z")

</div>

Dear experts, Are there any references about the electron attachment data of BF3 in Magboltz? I can find the values in the code Magboltz/magboltz.f · master · garfield / garfieldpp · GitLab, but I failed to find the ref…

---

## [Ion Mobility file in He-Isobutane mixture](https://root-forum.cern.ch/t/ion-mobility-file-in-he-isobutane-mixture/56843)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 4\
**Last updated:** [October 30, 2023, 3:12pm UTC](https://root-forum.cern.ch/t/ion-mobility-file-in-he-isobutane-mixture/56843 "2023-10-30T15:12:00Z")

</div>

Dear Experts I want to simulate the ion behavior in a He-Isobutane gas mixture with 90-10 percentage respectively, but I didn’t find such file, do we have a mobility file of such gas mixture? I used pure He gas before b…

---

## [How to get the distribution of the beam spots](https://root-forum.cern.ch/t/how-to-get-the-distribution-of-the-beam-spots/56733)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 4\
**Last updated:** [October 30, 2023, 1:01am UTC](https://root-forum.cern.ch/t/how-to-get-the-distribution-of-the-beam-spots/56733 "2023-10-30T01:01:13Z")

</div>

I want to set up a situation like this ,when the proton beam pass through the position gas ionization chamber, according the signal information collected by the copper strips in the X and Y direction, then finally get th…

---

## [Can I simulate a single delta electron?](https://root-forum.cern.ch/t/can-i-simulate-a-single-delta-electron/56844)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 2\
**Last updated:** [October 25, 2023, 7:26am UTC](https://root-forum.cern.ch/t/can-i-simulate-a-single-delta-electron/56844 "2023-10-25T07:26:24Z")

</div>

Dear experts I want to simulate the Auger electron generated by 55Fe, and as my understanding this should be similar as a delta electron with the same energy. Can I directly simulate such an electron? I need the slowing…

---

## [Electron initial energy in garfield++](https://root-forum.cern.ch/t/electron-initial-energy-in-garfield/56683)

<div class="topic-metadata">

**Author:** [@Lucas\_Batista](https://root-forum.cern.ch/u/Lucas_Batista)\
**Replies:** 3\
**Last updated:** [October 19, 2023, 1:59pm UTC](https://root-forum.cern.ch/t/electron-initial-energy-in-garfield/56683 "2023-10-19T13:59:31Z")

</div>

Hi everyone, I am tring to understand some parameters in the simulation of GEM. When I was reading the guide of Garfield++ in CERN’s website (GEM | Garfield++) in the topic of electron transport I observed that the ele…

---

## [The potential diagram problem](https://root-forum.cern.ch/t/the-potential-diagram-problem/56734)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 3\
**Last updated:** [October 17, 2023, 11:35am UTC](https://root-forum.cern.ch/t/the-potential-diagram-problem/56734 "2023-10-17T11:35:50Z")

</div>

I have got a potential diagram result of the position gas ionization chamber in the X direction, however there is something confused me. the edge of the plot in left and right side all shows the distortion(plot 1), what’…

---

## [How to get the time of the electrons drifting to collecting plate](https://root-forum.cern.ch/t/how-to-get-the-time-of-the-electrons-drifting-to-collecting-plate/56482)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 9\
**Last updated:** [October 10, 2023, 9:18am UTC](https://root-forum.cern.ch/t/how-to-get-the-time-of-the-electrons-drifting-to-collecting-plate/56482 "2023-10-10T09:18:03Z")

</div>

I want to calculate the time of the electrons drifting to the collecting plate when proton passing through the gas ionization chamber, which function I should use and how to confirm the coordinates of the collecting plat…

---

## [How to set the proton beam](https://root-forum.cern.ch/t/how-to-set-the-proton-beam/56502)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 6\
**Last updated:** [October 9, 2023, 5:13am UTC](https://root-forum.cern.ch/t/how-to-set-the-proton-beam/56502 "2023-10-09T05:13:44Z")

</div>

I am planning to simulate the situation that the laser proton pulse beam passing through the gas ionization chamber,our laser proton pulse beam is emitted once a second, the proton particle number is from 10^7 to 10^9, w…

---

## [Can I simulate charge on wire induced by ion feedback?](https://root-forum.cern.ch/t/can-i-simulate-charge-on-wire-induced-by-ion-feedback/56536)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 4\
**Last updated:** [October 6, 2023, 5:18am UTC](https://root-forum.cern.ch/t/can-i-simulate-charge-on-wire-induced-by-ion-feedback/56536 "2023-10-06T05:18:31Z")

</div>

Dear expers I want to simulate the response of gas drift chamber and it’s well known that signal on sense wire are mostly caused by the ions moving towards cathode wire but not arriving electrons. Can I simulate such ch…

---

## [Question about the collecting time](https://root-forum.cern.ch/t/question-about-the-collecting-time/56490)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 3\
**Last updated:** [September 27, 2023, 12:38am UTC](https://root-forum.cern.ch/t/question-about-the-collecting-time/56490 "2023-09-27T00:38:49Z")

</div>

I I have got a plot above showing the electrons signal collected by the electrode in the gas ionization chamber while the proton passing through. Can I consider that after 400 ns the electrons will be collected complet…

---

## [Can I simulate space charge effect by Garfield++?](https://root-forum.cern.ch/t/can-i-simulate-space-charge-effect-by-garfield/56465)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 1\
**Last updated:** [September 25, 2023, 6:07am UTC](https://root-forum.cern.ch/t/can-i-simulate-space-charge-effect-by-garfield/56465 "2023-09-25T06:07:57Z")

</div>

Dear experts I want to simulate the space charge effect aka electric field reduction due to ion cloud around anode wire, but I’m not sure if it’s a standard option or I need to set it true… Can you please tell if I can …

---

## [What is the default/assumed induced charge when calculating electronics response function?](https://root-forum.cern.ch/t/what-is-the-default-assumed-induced-charge-when-calculating-electronics-response-function/56166)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 1\
**Last updated:** [August 27, 2023, 7:09pm UTC](https://root-forum.cern.ch/t/what-is-the-default-assumed-induced-charge-when-calculating-electronics-response-function/56166 "2023-08-27T19:09:28Z")

</div>

Dear experts When I’m using Sensor::SetTransferFunction(const std::vector\<double\>& times, const std::vector\<double\>& values) I expected that: when I set signal to 1 fC by using SetSignal(label, bin, signal) where bin =…

---

## [Segmentation Violation When Using DriftRKF::DriftElectron()](https://root-forum.cern.ch/t/segmentation-violation-when-using-driftrkf-driftelectron/55780)

<div class="topic-metadata">

**Author:** [@chamilton](https://root-forum.cern.ch/u/chamilton)\
**Replies:** 2\
**Last updated:** [August 3, 2023, 8:53pm UTC](https://root-forum.cern.ch/t/segmentation-violation-when-using-driftrkf-driftelectron/55780 "2023-08-03T20:53:23Z")

</div>

Hi there, I am trying to simulate a double gridded drift cell by using DriftRKF to drift electrons from a cathode towards an anode using forces caused by an electric field, which is generated by field shaping rings that…

---

## [An error occurred during the installation of garfield++ on mac M1](https://root-forum.cern.ch/t/an-error-occurred-during-the-installation-of-garfield-on-mac-m1/55839)

<div class="topic-metadata">

**Author:** [@licat](https://root-forum.cern.ch/u/licat)\
**Replies:** 3\
**Last updated:** [July 28, 2023, 11:54am UTC](https://root-forum.cern.ch/t/an-error-occurred-during-the-installation-of-garfield-on-mac-m1/55839 "2023-07-28T11:54:09Z")

</div>

First time installing Garfield++for learning. Previously, gsl and cmake were installed through brew install, xcode14 was installed in the app store, and root6.28.04 was also installed. But I am currently unable to handle…

---

## [Compilation issue with ninja build system](https://root-forum.cern.ch/t/compilation-issue-with-ninja-build-system/55480)

<div class="topic-metadata">

**Author:** [@php1ic](https://root-forum.cern.ch/u/php1ic)\
**Replies:** 12\
**Last updated:** [July 20, 2023, 9:06pm UTC](https://root-forum.cern.ch/t/compilation-issue-with-ninja-build-system/55480 "2023-07-20T21:06:48Z")

</div>

I am getting a compilation error when trying to build with the ninja build system (I can’t link as a new user, but if you google ‘ninja build’ it’s the first result). I have the latest commit of garfield++ and when I fol…

---

## [Importing a 2D COMSOL Simulation to Garfield++](https://root-forum.cern.ch/t/importing-a-2d-comsol-simulation-to-garfield/55632)

<div class="topic-metadata">

**Author:** [@chamilton](https://root-forum.cern.ch/u/chamilton)\
**Replies:** 7\
**Last updated:** [July 17, 2023, 3:52pm UTC](https://root-forum.cern.ch/t/importing-a-2d-comsol-simulation-to-garfield/55632 "2023-07-17T15:52:10Z")

</div>

Hi there, I am trying to import the three required files (dielectrics.dat, mesh.mphtxt, and field.txt) into Garfield++ from COMSOL. My simulation is in 2D. I believe I am currently having trouble reading the mesh file, …

---

## [How calculate effective gas gain for the gem?](https://root-forum.cern.ch/t/how-calculate-effective-gas-gain-for-the-gem/55646)

<div class="topic-metadata">

**Author:** [@Ferangiz\_Ata\_Kurban](https://root-forum.cern.ch/u/Ferangiz_Ata_Kurban)\
**Replies:** 2\
**Last updated:** [July 13, 2023, 9:17am UTC](https://root-forum.cern.ch/t/how-calculate-effective-gas-gain-for-the-gem/55646 "2023-07-13T09:17:27Z")

</div>

Hello, please tell me how I can track how many electrons have moved to the induction gap? I run the following code, as I understand with this code I can only get the initial and final coordinates of the electrons that I …

---

## [GarField++ Gas File Error: "PROGRAM STOPPED TOO MANY PRIMARIES IPRIM"](https://root-forum.cern.ch/t/garfield-gas-file-error-program-stopped-too-many-primaries-iprim/55615)

<div class="topic-metadata">

**Author:** [@Khalil\_Alashy](https://root-forum.cern.ch/u/Khalil_Alashy)\
**Replies:** 1\
**Last updated:** [July 10, 2023, 12:27pm UTC](https://root-forum.cern.ch/t/garfield-gas-file-error-program-stopped-too-many-primaries-iprim/55615 "2023-07-10T12:27:09Z")

</div>

Hello everyone. I am attempting to generate a Gas File in Garfield++ consisting 100% of Sulfur Hexafluoride (SF6) gas. But when I run the executable, I encounter this error: " PROGRAM STOPPED TOO MANY PRIMARIES IPRIM." …

---

## [How to set the laser proton beam and get the electron drift time](https://root-forum.cern.ch/t/how-to-set-the-laser-proton-beam-and-get-the-electron-drift-time/55575)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 2\
**Last updated:** [July 9, 2023, 5:01pm UTC](https://root-forum.cern.ch/t/how-to-set-the-laser-proton-beam-and-get-the-electron-drift-time/55575 "2023-07-09T17:01:50Z")

</div>

I am planning to simulate the situation that the laser proton pulse beam passing through the gas ionization chamber,our laser proton pulse beam is emitted once a second, the proton particle number is from 10^8 to 10^10, …

---

## [The probability and proportion of recombination effects calculation in gas ionization chamber](https://root-forum.cern.ch/t/the-probability-and-proportion-of-recombination-effects-calculation-in-gas-ionization-chamber/55562)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 2\
**Last updated:** [July 6, 2023, 9:30am UTC](https://root-forum.cern.ch/t/the-probability-and-proportion-of-recombination-effects-calculation-in-gas-ionization-chamber/55562 "2023-07-06T09:30:16Z")

</div>

I want to use the Garfield++ to simulate the electrons transport in the gas ionization chamber used to detect the beam information generated by the medical laser proton accelerator. I want to know about the probability …

---

## [Bash: ./gem: No such file or directory](https://root-forum.cern.ch/t/bash-gem-no-such-file-or-directory/55557)

<div class="topic-metadata">

**Author:** [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Replies:** 2\
**Last updated:** [July 6, 2023, 8:51am UTC](https://root-forum.cern.ch/t/bash-gem-no-such-file-or-directory/55557 "2023-07-06T08:51:09Z")

</div>

after these code cp -r $GARFIELD\_HOME/Examples/Gem . mkdir build cd build cmake .. make comes the error ,when I try to run the application ./gem So what’s the problem and how to solve it

---

## [Plotting the Townsend Coefficient for Gas Files in Garfield++](https://root-forum.cern.ch/t/plotting-the-townsend-coefficient-for-gas-files-in-garfield/55520)

<div class="topic-metadata">

**Author:** [@Khalil\_Alashy](https://root-forum.cern.ch/u/Khalil_Alashy)\
**Replies:** 3\
**Last updated:** [July 3, 2023, 2:11pm UTC](https://root-forum.cern.ch/t/plotting-the-townsend-coefficient-for-gas-files-in-garfield/55520 "2023-07-03T14:11:22Z")

</div>

I am trying to Plot the Townsend and Attachment Coefficients for a specific Gas File I have generated. I have found success using a for loop that loops over the applied electric field and uses the MagBoltz function: gas…

---

## [How to get the drift velocity under 100V/cm](https://root-forum.cern.ch/t/how-to-get-the-drift-velocity-under-100v-cm/55424)

<div class="topic-metadata">

**Author:** [@fsw](https://root-forum.cern.ch/u/fsw)\
**Replies:** 3\
**Last updated:** [June 28, 2023, 8:59am UTC](https://root-forum.cern.ch/t/how-to-get-the-drift-velocity-under-100v-cm/55424 "2023-06-28T08:59:13Z")

</div>

i have used the medium::GetElectronVelocity to print the e velocity ,but the result under 100V/cm is always same. what should i do to calculate the velocity under 100V/cm？

---

## [Confusion about the longitudinal diffusion coefficient in Garfield](https://root-forum.cern.ch/t/confusion-about-the-longitudinal-diffusion-coefficient-in-garfield/55392)

<div class="topic-metadata">

**Author:** [@jiangjc-github](https://root-forum.cern.ch/u/jiangjc-github)\
**Replies:** 2\
**Last updated:** [June 22, 2023, 10:26am UTC](https://root-forum.cern.ch/t/confusion-about-the-longitudinal-diffusion-coefficient-in-garfield/55392 "2023-06-22T10:26:03Z")

</div>

@hschindl Dear hschindl, I try to understand the longitudinal diffusion coefficient in the Garfield++. I compared two simulation results (drift distance is 1 cm), one code is the read.C in the ”GasFile“ director, anot…

---

## [About Avalanche Settings in Garfield++](https://root-forum.cern.ch/t/about-avalanche-settings-in-garfield/55316)

<div class="topic-metadata">

**Author:** [@Hua-Zhen\_Li](https://root-forum.cern.ch/u/Hua-Zhen_Li)\
**Replies:** 4\
**Last updated:** [June 17, 2023, 1:48pm UTC](https://root-forum.cern.ch/t/about-avalanche-settings-in-garfield/55316 "2023-06-17T13:48:41Z")

</div>

Hi experts, Recently I am trying to using Garfield++ to simulate a diamond detector response to an incident pion. I came across some confusing things while using AvalancheMC to simulate the avalanche generation. Here is…

---

## [How to stack multiple ComponentAnalyticField?](https://root-forum.cern.ch/t/how-to-stack-multiple-componentanalyticfield/55280)

<div class="topic-metadata">

**Author:** [@Sebastian\_Regener](https://root-forum.cern.ch/u/Sebastian_Regener)\
**Replies:** 4\
**Last updated:** [June 16, 2023, 1:12pm UTC](https://root-forum.cern.ch/t/how-to-stack-multiple-componentanalyticfield/55280 "2023-06-16T13:12:06Z")

</div>

Hi all, I am working on creating multiple planes each a different potential on them and plotting the weighted field. I am currently planning on doing this by stacking multiple ComponentAnalyticFields that I created. I …

---

## [Questions about negative ion velocity when using AvalancheMC](https://root-forum.cern.ch/t/questions-about-negative-ion-velocity-when-using-avalanchemc/55176)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 6\
**Last updated:** [June 9, 2023, 8:14am UTC](https://root-forum.cern.ch/t/questions-about-negative-ion-velocity-when-using-avalanchemc/55176 "2023-06-09T08:14:41Z")

</div>

Hello! When I open avalMC-\>EnableDebugging( ) ;I get the following information. I’m curious how to calculate the velocity, especially 0.0001. In my code,the temperature is 293.15K,the pressure is 760torr,and the …

---

## [The weighting potential is right, but not the weight field](https://root-forum.cern.ch/t/the-weighting-potential-is-right-but-not-the-weight-field/55082)

<div class="topic-metadata">

**Author:** [@newconcept1979](https://root-forum.cern.ch/u/newconcept1979)\
**Replies:** 5\
**Last updated:** [June 9, 2023, 8:08am UTC](https://root-forum.cern.ch/t/the-weighting-potential-is-right-but-not-the-weight-field/55082 "2023-06-09T08:08:53Z")

</div>

The component was import from comsol, it is about two electrode with 2 cm gap, the code from Garfield++ is like this: fm.Initialise("Mesh.mphtxt", "dielectrics.dat", "Potential.txt", "cm"); fm.SetWeightingField("wPot…

---

## [About Garfield++ Negative ion formation](https://root-forum.cern.ch/t/about-garfield-negative-ion-formation/55232)

<div class="topic-metadata">

**Author:** [@tanayphy](https://root-forum.cern.ch/u/tanayphy)\
**Replies:** 1\
**Last updated:** [June 8, 2023, 5:34am UTC](https://root-forum.cern.ch/t/about-garfield-negative-ion-formation/55232 "2023-06-08T05:34:21Z")

</div>

How to get the total number and position of the negative ion using AvalancheMC. Sould I always consider the electrons attached at the mid way of the gas gap always form negative ions?

---

## [Primary Ionization Calculations](https://root-forum.cern.ch/t/primary-ionization-calculations/55194)

<div class="topic-metadata">

**Author:** [@jiangjc-github](https://root-forum.cern.ch/u/jiangjc-github)\
**Replies:** 2\
**Last updated:** [June 6, 2023, 8:53am UTC](https://root-forum.cern.ch/t/primary-ionization-calculations/55194 "2023-06-06T08:53:32Z")

</div>

@ hschindl Dear hschindl, I want to calculate primary ionization of DME (or mixture gas with DME), are some examples in Garfield++？ Thanks very much for your help. Best regards, Jiechen

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

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