# Garfield++

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

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

---

## [How to get ion mobility of DME](https://root-forum.cern.ch/t/how-to-get-ion-mobility-of-dme/54438)

<div class="topic-metadata">

**Author:** [@jiangjc-github](https://root-forum.cern.ch/u/jiangjc-github)\
**Replies:** 4\
**Last updated:** [April 12, 2023, 2:01pm UTC](https://root-forum.cern.ch/t/how-to-get-ion-mobility-of-dme/54438 "2023-04-12T14:01:29Z")

</div>

Dear experts, I found the topic of getting ion mobility in this link " How to get the Ion Mobility file - Garfield++ - ROOT Forum (cern.ch)". However, there are no ion mobility of DME, do you know how to get the ion mob…

---

## [Problems about SetPeriodicity in ComponentAnalyticField](https://root-forum.cern.ch/t/problems-about-setperiodicity-in-componentanalyticfield/54446)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 3\
**Last updated:** [April 12, 2023, 10:31am UTC](https://root-forum.cern.ch/t/problems-about-setperiodicity-in-componentanalyticfield/54446 "2023-04-12T10:31:59Z")

</div>

在Examples/AliceTPC中，the periodicity (wire spacing) (both in sense wires and cathode wires)is same(0.25cm).As the following code shows constexpr double period = 0.25; cmpe.SetPeriodicityX(period); cmpi.SetPeriodicityX(pe…

---

## [How to calculate the induced signal caused by alpha in Gem](https://root-forum.cern.ch/t/how-to-calculate-the-induced-signal-caused-by-alpha-in-gem/54325)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 10\
**Last updated:** [April 7, 2023, 12:57am UTC](https://root-forum.cern.ch/t/how-to-calculate-the-induced-signal-caused-by-alpha-in-gem/54325 "2023-04-07T00:57:46Z")

</div>

Hi,based on The questions about the induced current - #26 by XiCheng, I wrote a program to calculate the induced signal caused by alpha in air in the Gem detector.Here is some information about my code(attached below). …

---

## [How to avoid seg fault when using DriftLineRKF::DriftElectron()](https://root-forum.cern.ch/t/how-to-avoid-seg-fault-when-using-driftlinerkf-driftelectron/54263)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 1\
**Last updated:** [March 30, 2023, 9:57am UTC](https://root-forum.cern.ch/t/how-to-avoid-seg-fault-when-using-driftlinerkf-driftelectron/54263 "2023-03-30T09:57:56Z")

</div>

Dear Experts I want to simulate the drift of electrons in a cell constructed by 9 wires, but I found when electron was created inside wire it will give seg fault and simulation stopped. DriftLineRKF::DriftLine: Can…

---

## [Problems about simulating α in Garfield++](https://root-forum.cern.ch/t/problems-about-simulating-in-garfield/54242)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 3\
**Last updated:** [March 30, 2023, 12:36pm UTC](https://root-forum.cern.ch/t/problems-about-simulating-in-garfield/54242 "2023-03-30T12:36:24Z")

</div>

I want to simulate : Rn222 decays to produce α particles, and α particles ionize to produce electrons ; Then simulate electron drift, avalanche, etc. I plan to use Geant4 to simulate the process 1. When the electron e…

---

## [Deference between using a ".gas" file and setting gas parameters in code](https://root-forum.cern.ch/t/deference-between-using-a-gas-file-and-setting-gas-parameters-in-code/54224)

<div class="topic-metadata">

**Author:** [@DvirAY](https://root-forum.cern.ch/u/DvirAY)\
**Replies:** 2\
**Last updated:** [March 28, 2023, 8:17am UTC](https://root-forum.cern.ch/t/deference-between-using-a-gas-file-and-setting-gas-parameters-in-code/54224 "2023-03-28T08:17:46Z")

</div>

Hello, I am simulating a drift tube detector and I came across something I can’t explain. In short, If I am using “GasFile” example to generate gas file with specific parameters, and then load said file in my simulatio…

---

## [Confused about LoadGasFile() and gas parameters setting](https://root-forum.cern.ch/t/confused-about-loadgasfile-and-gas-parameters-setting/54255)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 1\
**Last updated:** [March 28, 2023, 7:45am UTC](https://root-forum.cern.ch/t/confused-about-loadgasfile-and-gas-parameters-setting/54255 "2023-03-28T07:45:09Z")

</div>

In examples, some code uses : MediumMagboltz gas ( ’ ar ', 80., ’ co2 ', 20. ) ; gas.SetTemperature ( 293.15 ) ; gas.SetPressure ( 760. ) ; Some code uses : gas.LoadGasFile ( ’ xxx.gas ’ ) ; I have read gas.LoadGas…

---

## [Problem about EnableElectricField()](https://root-forum.cern.ch/t/problem-about-enableelectricfield/54241)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 2\
**Last updated:** [March 27, 2023, 3:43pm UTC](https://root-forum.cern.ch/t/problem-about-enableelectricfield/54241 "2023-03-27T15:43:45Z")

</div>

In examples/gem, the unit model of gem is established by apdl command, voltage is applied to cathode and anode, and then the result is output to lis file. garfield + + imports these lis files My question is : 1.Will th…

---

## [Simulate detectors that work on a cumulative model](https://root-forum.cern.ch/t/simulate-detectors-that-work-on-a-cumulative-model/54187)

<div class="topic-metadata">

**Author:** [@changjh12](https://root-forum.cern.ch/u/changjh12)\
**Replies:** 2\
**Last updated:** [March 23, 2023, 8:36am UTC](https://root-forum.cern.ch/t/simulate-detectors-that-work-on-a-cumulative-model/54187 "2023-03-23T08:36:29Z")

</div>

Hello, I would like to ask if Garfield++ can simulate detectors that work on a cumulative model or DC model. For example, the particles are always incident, and the current is continuously output. If so, is there an ex…

---

## [Garfield++ AvalancheSize problem](https://root-forum.cern.ch/t/garfield-avalanchesize-problem/54010)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 2\
**Last updated:** [March 15, 2023, 6:00am UTC](https://root-forum.cern.ch/t/garfield-avalanchesize-problem/54010 "2023-03-15T06:00:05Z")

</div>

Hi experts! I run triplegem.C in example/Ansys123 and encounter some problems. 1.the output of aval.GetAvalancheSize ( ne, ni ) is sometimes 0. Can anyone explain why this happened ? 2.aval. EnableAvalancheSizeLimit (…

---

## [Positive Conformation of Avalanche](https://root-forum.cern.ch/t/positive-conformation-of-avalanche/53934)

<div class="topic-metadata">

**Author:** [@DvirAY](https://root-forum.cern.ch/u/DvirAY)\
**Replies:** 5\
**Last updated:** [March 13, 2023, 2:24pm UTC](https://root-forum.cern.ch/t/positive-conformation-of-avalanche/53934 "2023-03-13T14:24:54Z")

</div>

Hello, I am using Garfield++ packages and specifically AvalancheMicroscopic to simulate a gaseous detector similar to Garfield example “DriftTube”. In short, how can I be sure that the simulation indeed creation an ava…

---

## [Oversized avalanches with DriftLineRKF](https://root-forum.cern.ch/t/oversized-avalanches-with-driftlinerkf/53699)

<div class="topic-metadata">

**Author:** [@AlRugger](https://root-forum.cern.ch/u/AlRugger)\
**Replies:** 2\
**Last updated:** [March 9, 2023, 1:37pm UTC](https://root-forum.cern.ch/t/oversized-avalanches-with-driftlinerkf/53699 "2023-03-09T13:37:59Z")

</div>

Greetings, I’m having some issues with the simulation of a muon track signal in a drift chamber cell (similar to the one in my previous topic): The cell structure is defined using the native geometry (in particular us…

---

## [Ion signal with SRIM](https://root-forum.cern.ch/t/ion-signal-with-srim/53913)

<div class="topic-metadata">

**Author:** [@YiHui\_Liu](https://root-forum.cern.ch/u/YiHui_Liu)\
**Replies:** 11\
**Last updated:** [March 9, 2023, 1:27pm UTC](https://root-forum.cern.ch/t/ion-signal-with-srim/53913 "2023-03-09T13:27:24Z")

</div>

I am trying to collect the signal produced by the proton in the proportional counter. The working gas is a mixture of He3 and Ar. The energy of the proton is between 0.6MeV and 0.8MeV. I used SRIM to generate the files u…

---

## [How to add Legends to distinguish between graphs plotted from different gas files using Garfield++?](https://root-forum.cern.ch/t/how-to-add-legends-to-distinguish-between-graphs-plotted-from-different-gas-files-using-garfield/53882)

<div class="topic-metadata">

**Author:** [@AbdelrahmanMekawy](https://root-forum.cern.ch/u/AbdelrahmanMekawy)\
**Replies:** 2\
**Last updated:** [March 5, 2023, 1:50pm UTC](https://root-forum.cern.ch/t/how-to-add-legends-to-distinguish-between-graphs-plotted-from-different-gas-files-using-garfield/53882 "2023-03-05T13:50:58Z")

</div>

hello, how can I add a legend on a graph to distinguish between graphs plotted (on the same canvas) from different gas files using Garfield++? like plotting the electron drift velocity in two different gases, for exampl…

---

## [Problem with Attachment coefficient plotting using Garfield ++](https://root-forum.cern.ch/t/problem-with-attachment-coefficient-plotting-using-garfield/53874)

<div class="topic-metadata">

**Author:** [@AbdelrahmanMekawy](https://root-forum.cern.ch/u/AbdelrahmanMekawy)\
**Replies:** 2\
**Last updated:** [March 4, 2023, 10:45am UTC](https://root-forum.cern.ch/t/problem-with-attachment-coefficient-plotting-using-garfield/53874 "2023-03-04T10:45:10Z")

</div>

hello, I am a GARFIELD++ newbie and I was trying to plot the electron transport coefficients after generating the gas file for (Ar) for example using Magboltz, but for some reason it does not plot the attachment coeffici…

---

## [Visualize in Geant4GarfieldInterface](https://root-forum.cern.ch/t/visualize-in-geant4garfieldinterface/53857)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 1\
**Last updated:** [March 3, 2023, 8:14am UTC](https://root-forum.cern.ch/t/visualize-in-geant4garfieldinterface/53857 "2023-03-03T08:14:20Z")

</div>

Hi,experts!I have some questions about visualization. In Examples/Geant4GarfieldInterface, if I want to use the method(including driftView, fieldView, signalView, meshView, cellView) in Garfield to visualize the resul…

---

## [Signal from a sensor](https://root-forum.cern.ch/t/signal-from-a-sensor/53836)

<div class="topic-metadata">

**Author:** [@DvirAY](https://root-forum.cern.ch/u/DvirAY)\
**Replies:** 4\
**Last updated:** [March 2, 2023, 12:25pm UTC](https://root-forum.cern.ch/t/signal-from-a-sensor/53836 "2023-03-02T12:25:13Z")

</div>

Hello, My simulation currently simulates one particle (mu-) that passes through a gas detector with a wire in its center (90% Ar, 10% CO2, 1800V on wire) and some signal is shown (attached) . I am at the stage of trying…

---

## [Questions about Geant4GarfieldInterface/GarfieldPhysics.cc](https://root-forum.cern.ch/t/questions-about-geant4garfieldinterface-garfieldphysics-cc/53727)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 1\
**Last updated:** [February 27, 2023, 5:14pm UTC](https://root-forum.cern.ch/t/questions-about-geant4garfieldinterface-garfieldphysics-cc/53727 "2023-02-27T17:14:00Z")

</div>

Hello！@hschindl Sorry to disturb you. The codes below are from Geant4GarfieldInterface/GarfieldPhysics.cc and I have some questions: ① Can you explain in detail about SetDistanceSteps()? ② What does ’ nsum ’ mean here…

---

## [Question about Geant4GarfieldInterface](https://root-forum.cern.ch/t/question-about-geant4garfieldinterface/53796)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 1\
**Last updated:** [February 27, 2023, 9:21am UTC](https://root-forum.cern.ch/t/question-about-geant4garfieldinterface/53796 "2023-02-27T09:21:22Z")

</div>

Hello！experts! The codes below are from Geant4GarfieldInterface/GarfieldPhysics.cc and I have some questions: ① Can you explain in detail about SetDistanceSteps()? ② What does ’ nsum ’ mean here ( nsum++;) ③ How does…

---

## [How to use the AddWhiteNoise() function in Garfield++?](https://root-forum.cern.ch/t/how-to-use-the-addwhitenoise-function-in-garfield/53694)

<div class="topic-metadata">

**Author:** [@WAQ](https://root-forum.cern.ch/u/WAQ)\
**Replies:** 2\
**Last updated:** [February 22, 2023, 1:34am UTC](https://root-forum.cern.ch/t/how-to-use-the-addwhitenoise-function-in-garfield/53694 "2023-02-22T01:34:40Z")

</div>

Dear experts, I am using the AddWhiteNoise() function to simulate the noise of the gaseous detector. But There’s something I don’t understand about this function. Does this function need add to the the induced current s…

---

## [GeantGarfieldInterface](https://root-forum.cern.ch/t/geantgarfieldinterface/53717)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 3\
**Last updated:** [February 22, 2023, 1:06am UTC](https://root-forum.cern.ch/t/geantgarfieldinterface/53717 "2023-02-22T01:06:28Z")

</div>

Dear experts I’m learning example/Geant4GarfieldInterface recently. I have some questions below. I want to know how Geant4 transfers electrons generated by ionization to Garfield + +, and how Garfield + + transfers el…

---

## [TrackHeed TransportDeltaElectron](https://root-forum.cern.ch/t/trackheed-transportdeltaelectron/53719)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 1\
**Last updated:** [February 21, 2023, 6:03pm UTC](https://root-forum.cern.ch/t/trackheed-transportdeltaelectron/53719 "2023-02-21T18:03:17Z")

</div>

Hi experts, me again! I want to know what I get when I run fTrackHeed- \> TransportDeltaElectron and then fTrackHeed- \> GetElectron ( ).The UserGuide says it’s the information of the “conduction” electron. Does it make s…

---

## [Plotting field versus space](https://root-forum.cern.ch/t/plotting-field-versus-space/53700)

<div class="topic-metadata">

**Author:** [@Zhixuan\_He](https://root-forum.cern.ch/u/Zhixuan_He)\
**Replies:** 5\
**Last updated:** [February 21, 2023, 12:11pm UTC](https://root-forum.cern.ch/t/plotting-field-versus-space/53700 "2023-02-21T12:11:15Z")

</div>

I want to simulate a drift chamber cell Cell.pdf (58.9 KB). When I plot the field, the result is not the same as others’ work. FieldPlot.pdf (20.0 KB) My code: ViewField fieldplot; fieldplot.SetSensor(&sensor);…

---

## [Help on Garfield::AvalancheMicroscopic() and AvalancheMC()](https://root-forum.cern.ch/t/help-on-garfield-avalanchemicroscopic-and-avalanchemc/53678)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 2\
**Last updated:** [February 20, 2023, 1:43am UTC](https://root-forum.cern.ch/t/help-on-garfield-avalanchemicroscopic-and-avalanchemc/53678 "2023-02-20T01:43:37Z")

</div>

Hello,experts! Recently I came across some code that made me confused, especially regarding DriftLineRKF(), AvalancheMicroscopic(), and AvalancheMC(). Here are the code and my questions. void HeedModel::SetTracking(){ …

---

## [DriftLineRKF lines ending inside a SolidWire](https://root-forum.cern.ch/t/driftlinerkf-lines-ending-inside-a-solidwire/53293)

<div class="topic-metadata">

**Author:** [@AlRugger](https://root-forum.cern.ch/u/AlRugger)\
**Replies:** 15\
**Last updated:** [February 14, 2023, 5:07pm UTC](https://root-forum.cern.ch/t/driftlinerkf-lines-ending-inside-a-solidwire/53293 "2023-02-14T17:07:19Z")

</div>

Greetings, an issue with the electron drift simulation in Garfield++ has been plaguing me for the past few days. I have been trying to simulate the passage of a muon track inside a drift chamber cell that I had set up: …

---

## [Query about the statistical model used in AvalancheMC](https://root-forum.cern.ch/t/query-about-the-statistical-model-used-in-avalanchemc/53612)

<div class="topic-metadata">

**Author:** [@Tanay\_Dey](https://root-forum.cern.ch/u/Tanay_Dey)\
**Replies:** 4\
**Last updated:** [February 14, 2023, 7:47am UTC](https://root-forum.cern.ch/t/query-about-the-statistical-model-used-in-avalanchemc/53612 "2023-02-14T07:47:00Z")

</div>

I have few questions about the avalanche model used in AvalancheMC. I am a PhD student working in detector simulation it is very necessary to understand for me the following questions. I will be thankful to you is you pl…

---

## [About secondary ionization](https://root-forum.cern.ch/t/about-secondary-ionization/53564)

<div class="topic-metadata">

**Author:** [@littlepi](https://root-forum.cern.ch/u/littlepi)\
**Replies:** 3\
**Last updated:** [February 10, 2023, 2:01pm UTC](https://root-forum.cern.ch/t/about-secondary-ionization/53564 "2023-02-10T14:01:07Z")

</div>

Dear GARFIELD experts, I am using Garfield to simulate the ionization of the gaseous detector. As it is shown in the following code, there are two loops: The outer one loops on the primary clusters, and the inner one lo…

---

## [Can Garfield++ simulate multiple particles?](https://root-forum.cern.ch/t/can-garfield-simulate-multiple-particles/53528)

<div class="topic-metadata">

**Author:** [@Zhixuan\_He](https://root-forum.cern.ch/u/Zhixuan_He)\
**Replies:** 3\
**Last updated:** [February 9, 2023, 2:38pm UTC](https://root-forum.cern.ch/t/can-garfield-simulate-multiple-particles/53528 "2023-02-09T14:38:24Z")

</div>

I would like to simulate the ionization and collection of electrons using Garfield++ by assigning a trigger (or event) where two or more charged particles enter the same drift cell and produce tracks. Can Garfield++ simu…

---

## [Problem loading Garfield libraries in MacOs](https://root-forum.cern.ch/t/problem-loading-garfield-libraries-in-macos/53208)

<div class="topic-metadata">

**Author:** [@Javier\_Galan](https://root-forum.cern.ch/u/Javier_Galan)\
**Replies:** 6\
**Last updated:** [January 24, 2023, 12:41pm UTC](https://root-forum.cern.ch/t/problem-loading-garfield-libraries-in-macos/53208 "2023-01-24T12:41:58Z")

</div>

I am running into problems while trying to load Garfield libraries into ROOT. Just after the Garfield compilation succeeds, I load the Garfield setup.sh and try using gSystem-\>Load("libGarfield.dylib"). I get the follo…

---

## [How to kill an AvalanceMicroscopic track in user-defined volume](https://root-forum.cern.ch/t/how-to-kill-an-avalancemicroscopic-track-in-user-defined-volume/53055)

<div class="topic-metadata">

**Author:** [@CraigMarkwardt](https://root-forum.cern.ch/u/CraigMarkwardt)\
**Replies:** 6\
**Last updated:** [January 11, 2023, 8:23pm UTC](https://root-forum.cern.ch/t/how-to-kill-an-avalancemicroscopic-track-in-user-defined-volume/53055 "2023-01-11T20:23:22Z")

</div>

Hello– First of all, thanks for developing Garfield++, it’s really well designed and actually fun to use! On to my question. I’m simulating a Xenon gas chamber that has multiple cells. The cells are separated by cat…

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

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