# Garfield++

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

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

---

## [Question about simulation of signals from MWPC in Garfield++](https://root-forum.cern.ch/t/question-about-simulation-of-signals-from-mwpc-in-garfield/63102)

<div class="topic-metadata">

**Author:** [@Timophey](https://root-forum.cern.ch/u/Timophey)\
**Replies:** 5\
**Last updated:** [March 19, 2025, 6:23am UTC](https://root-forum.cern.ch/t/question-about-simulation-of-signals-from-mwpc-in-garfield/63102 "2025-03-19T06:23:50Z")

</div>

Hello everyone ! I’m trying to understand more deeply, how Garfield simulates the signals in gaseous detectors, so I working with MWPC detector and i have some questions about it: What the difference between functions…

---

## [Problems in ViewDrift and ViewSignal](https://root-forum.cern.ch/t/problems-in-viewdrift-and-viewsignal/63124)

<div class="topic-metadata">

**Author:** [@kaka](https://root-forum.cern.ch/u/kaka)\
**Replies:** 4\
**Last updated:** [March 18, 2025, 6:35am UTC](https://root-forum.cern.ch/t/problems-in-viewdrift-and-viewsignal/63124 "2025-03-18T06:35:08Z")

</div>

Hi everyone, I am beginner of Garfieldpp.I tried to imitate Silicon in the example to output a gif of the drift lines and signals. I used the ComponentTcad2d and TrackHeed classes in the simulation, but the output remai…

---

## [Signal with Srim(using AvalancheMC)](https://root-forum.cern.ch/t/signal-with-srim-using-avalanchemc/63012)

<div class="topic-metadata">

**Author:** [@Migu](https://root-forum.cern.ch/u/Migu)\
**Replies:** 9\
**Last updated:** [March 13, 2025, 8:42am UTC](https://root-forum.cern.ch/t/signal-with-srim-using-avalanchemc/63012 "2025-03-13T08:42:48Z")

</div>

My code is as follows. I hope to collect electron and ion signals from sensors. int main(int argc, char \* argv\[\]) { TApplication app("app", &argc, argv); MediumMagboltz gas; gas.LoadGasFile("ar\_85\_co2\_15.gas"); const s…

---

## [How could I define the gas and ion not in the garfieldpp list](https://root-forum.cern.ch/t/how-could-i-define-the-gas-and-ion-not-in-the-garfieldpp-list/63106)

<div class="topic-metadata">

**Author:** [@dm-leo](https://root-forum.cern.ch/u/dm-leo)\
**Replies:** 7\
**Last updated:** [March 12, 2025, 2:34am UTC](https://root-forum.cern.ch/t/how-could-i-define-the-gas-and-ion-not-in-the-garfieldpp-list/63106 "2025-03-12T02:34:38Z")

</div>

Dear all, I am beginner of Garfieldpp. I want to simulate the induced ion signal in SeF6, which is not defined in the medium gas. So is there a method to define SeF6 besides hacking the file /garfield/Source/ MediumGas.…

---

## [Question about “SetMaxElectronEnergy()"](https://root-forum.cern.ch/t/question-about-setmaxelectronenergy/63074)

<div class="topic-metadata">

**Author:** [@Migu](https://root-forum.cern.ch/u/Migu)\
**Replies:** 10\
**Last updated:** [March 11, 2025, 2:29am UTC](https://root-forum.cern.ch/t/question-about-setmaxelectronenergy/63074 "2025-03-11T02:29:20Z")

</div>

I‘m using AvalancheMicroscopic to simulate the current signal output of a DriftTube. I found that the output signal varies when setting different energy limits. SetMaxElectronEnergy(800) SetMaxElectronEnergy(600) …

---

## [I am facing Magboltz installation issue or i may be doing something wrong](https://root-forum.cern.ch/t/i-am-facing-magboltz-installation-issue-or-i-may-be-doing-something-wrong/62950)

<div class="topic-metadata">

**Author:** [@Ujjwal-gh](https://root-forum.cern.ch/u/Ujjwal-gh)\
**Replies:** 13\
**Last updated:** [March 6, 2025, 4:53am UTC](https://root-forum.cern.ch/t/i-am-facing-magboltz-installation-issue-or-i-may-be-doing-something-wrong/62950 "2025-03-06T04:53:45Z")

</div>

Hello I Want to use Magboltz to write custom gas files, or I want to use Magboltz to do the analysis of a proportional counter properly. I think while installing the Garfield ++ the Magboltz didn’t installed properly be…

---

## [Unexpexted signal shape of MDT tube](https://root-forum.cern.ch/t/unexpexted-signal-shape-of-mdt-tube/63046)

<div class="topic-metadata">

**Author:** [@Linnuo](https://root-forum.cern.ch/u/Linnuo)\
**Replies:** 4\
**Last updated:** [March 3, 2025, 12:08pm UTC](https://root-forum.cern.ch/t/unexpexted-signal-shape-of-mdt-tube/63046 "2025-03-03T12:08:16Z")

</div>

Dear experts, I am working on the simulation for a MDT tube.And I useTrackHeed' and 'DriftLineRKFmodule. I expext the shape of the signal (without convolution) should have a rising edge sharper than falling edge but act…

---

## [How to get information of avalanche electron with AvalancheGridSpaceCharge class](https://root-forum.cern.ch/t/how-to-get-information-of-avalanche-electron-with-avalanchegridspacecharge-class/63051)

<div class="topic-metadata">

**Author:** [@masato](https://root-forum.cern.ch/u/masato)\
**Replies:** 5\
**Last updated:** [February 28, 2025, 1:50pm UTC](https://root-forum.cern.ch/t/how-to-get-information-of-avalanche-electron-with-avalanchegridspacecharge-class/63051 "2025-02-28T13:50:55Z")

</div>

Dear experts, Hello, I am a beginner of Garfield++ and want to get information about avalanche electrons in a parallel plate chamber with a space charge effect. I’m trying to use the AvalancheMicroscopic class to obtai…

---

## [Simulating ion drift trajectories with impact ionizations](https://root-forum.cern.ch/t/simulating-ion-drift-trajectories-with-impact-ionizations/63000)

<div class="topic-metadata">

**Author:** [@VictorM](https://root-forum.cern.ch/u/VictorM)\
**Replies:** 12\
**Last updated:** [February 28, 2025, 1:47pm UTC](https://root-forum.cern.ch/t/simulating-ion-drift-trajectories-with-impact-ionizations/63000 "2025-02-28T13:47:25Z")

</div>

Hello, I would like to know the number of liberated electrons along a positive ion (C3H8+ or N2+, for instance) drift trajectory in a high electric field in the (low-pressure, about 2 mbar) parent gas (C3H8 or N2). Do y…

---

## [Warning about AvalancheMC](https://root-forum.cern.ch/t/warning-about-avalanchemc/62951)

<div class="topic-metadata">

**Author:** [@pedro](https://root-forum.cern.ch/u/pedro)\
**Replies:** 3\
**Last updated:** [February 24, 2025, 3:31am UTC](https://root-forum.cern.ch/t/warning-about-avalanchemc/62951 "2025-02-24T03:31:31Z")

</div>

May I ask why these warnings appear in the calculation process?

---

## [Errors during Garfield++ installation](https://root-forum.cern.ch/t/errors-during-garfield-installation/62989)

<div class="topic-metadata">

**Author:** [@clouter](https://root-forum.cern.ch/u/clouter)\
**Replies:** 7\
**Last updated:** [February 21, 2025, 9:55am UTC](https://root-forum.cern.ch/t/errors-during-garfield-installation/62989 "2025-02-21T09:55:39Z")

</div>

Dear Experts, I am new to garfield. When i was installing garfield++, using code make -j8 I got errors below root@clouter-VMware-Virtual-Platform:/home/mydir/garfield# make -j8 \[ 0%\] Built target Degrade \[ 0%\] B…

---

## [Import electric field from COMSOL](https://root-forum.cern.ch/t/import-electric-field-from-comsol/62971)

<div class="topic-metadata">

**Author:** [@Linnuo](https://root-forum.cern.ch/u/Linnuo)\
**Replies:** 5\
**Last updated:** [February 18, 2025, 4:41pm UTC](https://root-forum.cern.ch/t/import-electric-field-from-comsol/62971 "2025-02-18T16:41:29Z")

</div>

Dear experts, I try to import the field map from COMSOL and I have checked that the voltage of different place has been import successfully. But the electric field isn’t defined. I also checked that the electric filed c…

---

## [Error for compiling when running garfield on lxplus](https://root-forum.cern.ch/t/error-for-compiling-when-running-garfield-on-lxplus/62865)

<div class="topic-metadata">

**Author:** [@Linnuo](https://root-forum.cern.ch/u/Linnuo)\
**Replies:** 2\
**Last updated:** [February 17, 2025, 11:51am UTC](https://root-forum.cern.ch/t/error-for-compiling-when-running-garfield-on-lxplus/62865 "2025-02-17T11:51:51Z")

</div>

Dear experts, I faced an error when compiling the files on lxplus. I did not faced this error last time I use it and I changed nothing. For the environment, source /cvmfs/sft-nightlies.cern.ch/lcg/views/dev3/latest/x8…

---

## [How to Set ElectricField in my code using Garfield++](https://root-forum.cern.ch/t/how-to-set-electricfield-in-my-code-using-garfield/62949)

<div class="topic-metadata">

**Author:** [@Yuyang](https://root-forum.cern.ch/u/Yuyang)\
**Replies:** 7\
**Last updated:** [February 17, 2025, 6:15am UTC](https://root-forum.cern.ch/t/how-to-set-electricfield-in-my-code-using-garfield/62949 "2025-02-17T06:15:32Z")

</div>

Hi, I had a problem with my simulation using Garfield++. I have a txt file that records the field distribution, and it’s formatted like this z r Er Ez 0.0000 0.0000 0.0000 0.0000 0.0000 …

---

## [Garfield++ error](https://root-forum.cern.ch/t/garfield-error/62948)

<div class="topic-metadata">

**Author:** [@xuzh](https://root-forum.cern.ch/u/xuzh)\
**Replies:** 9\
**Last updated:** [February 17, 2025, 2:18am UTC](https://root-forum.cern.ch/t/garfield-error/62948 "2025-02-17T02:18:21Z")

</div>

I am getting the following error reported when installing Garfield++: For this I reinstalled ROOT again and specifically added -DCMAKE\_CXX\_STANDARD=17 to the cmake command line. my version of ROOT is 6.30.4. I use…

---

## [NPONT Error for High Reduced Electric Field Gas File with Magboltz](https://root-forum.cern.ch/t/npont-error-for-high-reduced-electric-field-gas-file-with-magboltz/62776)

<div class="topic-metadata">

**Author:** [@NSos](https://root-forum.cern.ch/u/NSos)\
**Replies:** 16\
**Last updated:** [February 4, 2025, 2:09pm UTC](https://root-forum.cern.ch/t/npont-error-for-high-reduced-electric-field-gas-file-with-magboltz/62776 "2025-02-04T14:09:22Z")

</div>

Hi! I am currently working on calculating gas files with electric fields in a thin isobutane gas with thin wires at a high electric field for electron multiplication purposes. I get up to around 20-30 kV/cm, but then get…

---

## [Problem finding HEED\_DATABASE](https://root-forum.cern.ch/t/problem-finding-heed-database/62717)

<div class="topic-metadata">

**Author:** [@Burkhard](https://root-forum.cern.ch/u/Burkhard)\
**Replies:** 3\
**Last updated:** [January 22, 2025, 11:19am UTC](https://root-forum.cern.ch/t/problem-finding-heed-database/62717 "2025-01-22T11:19:09Z")

</div>

In my institute we switched from centos7 to almalinux 9.5. First I had problems finding some libraries so I switched from source /cvmfs/sft.cern.ch/lcg/views/LCG\_97/x86\_64-centos7-gcc9-opt/setup.sh to source /cvmfs/sft.…

---

## [Missing neBEM::neBEM during Garfield installation](https://root-forum.cern.ch/t/missing-nebem-nebem-during-garfield-installation/62723)

<div class="topic-metadata">

**Author:** [@clouter](https://root-forum.cern.ch/u/clouter)\
**Replies:** 6\
**Last updated:** [January 22, 2025, 11:05am UTC](https://root-forum.cern.ch/t/missing-nebem-nebem-during-garfield-installation/62723 "2025-01-22T11:05:18Z")

</div>

During my Garfield installation, i meet the error that shows The following imported targets are referenced, but are missing: neBEM::neBEM The outputs are like the picture below. I was following the guide on When…

---

## [DriftLineRKF will fail to operate when encountering a zero electric field region](https://root-forum.cern.ch/t/driftlinerkf-will-fail-to-operate-when-encountering-a-zero-electric-field-region/62701)

<div class="topic-metadata">

**Author:** [@pedro](https://root-forum.cern.ch/u/pedro)\
**Replies:** 2\
**Last updated:** [January 19, 2025, 5:45pm UTC](https://root-forum.cern.ch/t/driftlinerkf-will-fail-to-operate-when-encountering-a-zero-electric-field-region/62701 "2025-01-19T17:45:39Z")

</div>

Greetings, I’m having some issues with the simulation of DriftLineRKF in the electric field generated by COMSOL. When I normally add positive and negative high voltages, the operation is normal, and its electric potent…

---

## [Error! DriftLineRKF Step size is too Small](https://root-forum.cern.ch/t/error-driftlinerkf-step-size-is-too-small/62585)

<div class="topic-metadata">

**Author:** [@vrm7fj](https://root-forum.cern.ch/u/vrm7fj)\
**Replies:** 4\
**Last updated:** [January 18, 2025, 6:03am UTC](https://root-forum.cern.ch/t/error-driftlinerkf-step-size-is-too-small/62585 "2025-01-18T06:03:25Z")

</div>

Dear Experts, This is a R&D project im working on. Its essentially a MicroMegas detector. However, I have replaced the Micromesh with a wire layer where all the wires run parallel to each other. I have placed the Anode …

---

## [Li+ in a cylindrical DriftTube](https://root-forum.cern.ch/t/li-in-a-cylindrical-drifttube/62635)

<div class="topic-metadata">

**Author:** [@Migu](https://root-forum.cern.ch/u/Migu)\
**Replies:** 7\
**Last updated:** [January 14, 2025, 12:53pm UTC](https://root-forum.cern.ch/t/li-in-a-cylindrical-drifttube/62635 "2025-01-14T12:53:27Z")

</div>

I want to simulate the current signal output by Li+incident on a cylindrical drift tube. Using the SRIM program, I generated an energy loss file for Li in an environment of 80% Ar and 20% CO2. I modified the example in …

---

## [Problem about PlotFieldLines()](https://root-forum.cern.ch/t/problem-about-plotfieldlines/62642)

<div class="topic-metadata">

**Author:** [@wxj-imp](https://root-forum.cern.ch/u/wxj-imp)\
**Replies:** 3\
**Last updated:** [January 13, 2025, 5:33am UTC](https://root-forum.cern.ch/t/problem-about-plotfieldlines/62642 "2025-01-13T05:33:41Z")

</div>

Dear Experts i got some problem in ploting electric lines about mwpc,i add gate wires between the anodes,but i can’t see any field lines from anodes to gate wires(anodes:+1300V,gate wires:0V),my code is above,and i prin…

---

## [Using Heed and GEM Movie for Visualizing MWPC Cascade](https://root-forum.cern.ch/t/using-heed-and-gem-movie-for-visualizing-mwpc-cascade/62606)

<div class="topic-metadata">

**Author:** [@NSos](https://root-forum.cern.ch/u/NSos)\
**Replies:** 4\
**Last updated:** [January 9, 2025, 3:51pm UTC](https://root-forum.cern.ch/t/using-heed-and-gem-movie-for-visualizing-mwpc-cascade/62606 "2025-01-09T15:51:19Z")

</div>

Hi, I am trying to create a simulation of an isobutane-filled MWPC with two wire planes and a mylar cathode in between them. In this simulation, a 5-MeV alpha particle enters the volume of gas and leaves an ionization tr…

---

## [Installation issue](https://root-forum.cern.ch/t/installation-issue/62612)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 5\
**Last updated:** [January 9, 2025, 3:36pm UTC](https://root-forum.cern.ch/t/installation-issue/62612 "2025-01-09T15:36:34Z")

</div>

Dear experts I’m not sure this is an issue of ROOT or Garfield++, when I tried to install Garfield++ on server I got those errors: \[ 98%\] Building CXX object Tests/CMakeFiles/RandomNumberGenerators.dir/RandomNumberGene…

---

## [Questions with trackPAI in Garfield++](https://root-forum.cern.ch/t/questions-with-trackpai-in-garfield/62599)

<div class="topic-metadata">

**Author:** [@Linnuo](https://root-forum.cern.ch/u/Linnuo)\
**Replies:** 3\
**Last updated:** [January 7, 2025, 4:27pm UTC](https://root-forum.cern.ch/t/questions-with-trackpai-in-garfield/62599 "2025-01-07T16:27:57Z")

</div>

Dear experts, I want to use trackPAI to simulate process in the gas detector. However, I face problems when I try to define a trackPAI variable. The error is shown as the following: TrackPAI::SetupMedium: Could not …

---

## [Question when using AvalancheMicroscopic::DriftElectron()](https://root-forum.cern.ch/t/question-when-using-avalanchemicroscopic-driftelectron/62587)

<div class="topic-metadata">

**Author:** [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Replies:** 13\
**Last updated:** [January 7, 2025, 12:29am UTC](https://root-forum.cern.ch/t/question-when-using-avalanchemicroscopic-driftelectron/62587 "2025-01-07T00:29:41Z")

</div>

Dear experts I tried to use AvalancheMicroscopic to simulate the drifting of electrons in some drift chamber. I setup all fields, then: //setup fields, wires, etc. AvalancheMicroscopic\* drift = new AvalancheMicroscopic…

---

## [How to visualize the when 1.0 ev initial energy of electron hit the GEM wall also through tracks?](https://root-forum.cern.ch/t/how-to-visualize-the-when-1-0-ev-initial-energy-of-electron-hit-the-gem-wall-also-through-tracks/62525)

<div class="topic-metadata">

**Author:** [@Dk\_ntm](https://root-forum.cern.ch/u/Dk_ntm)\
**Replies:** 3\
**Last updated:** [January 6, 2025, 9:58am UTC](https://root-forum.cern.ch/t/how-to-visualize-the-when-1-0-ev-initial-energy-of-electron-hit-the-gem-wall-also-through-tracks/62525 "2025-01-06T09:58:59Z")

</div>

Hii, @Piet @hschindl sir, i want to simulate and make plot using GEM detector parameters when using and select Ar/CO2 as projectile and set its initial energy to 1.0 eV . The target consists of a single layer of GEM de…

---

## [Questions about Geant4-Garfield++ interface example](https://root-forum.cern.ch/t/questions-about-geant4-garfield-interface-example/62505)

<div class="topic-metadata">

**Author:** [@Lan-sx](https://root-forum.cern.ch/u/Lan-sx)\
**Replies:** 3\
**Last updated:** [December 19, 2024, 6:37am UTC](https://root-forum.cern.ch/t/questions-about-geant4-garfield-interface-example/62505 "2024-12-19T06:37:21Z")

</div>

:slight\_smile: ear experts： I’m currently working on simulations related to beam-induced backgrounds for future lepton colliders, with a focus on estimating their impact on gaseous tracker detectors, specifically Time P…

---

## [Spatial resolution and temporal resolution problem](https://root-forum.cern.ch/t/spatial-resolution-and-temporal-resolution-problem/62456)

<div class="topic-metadata">

**Author:** [@Dileshwar\_Netam](https://root-forum.cern.ch/u/Dileshwar_Netam)\
**Replies:** 9\
**Last updated:** [December 18, 2024, 10:43am UTC](https://root-forum.cern.ch/t/spatial-resolution-and-temporal-resolution-problem/62456 "2024-12-18T10:43:35Z")

</div>

Hi everyone , I am a newbie to GARFIELD++ and I need to calculate both the spatial resolution and the time resolution but I cannot find any direct class to calculate them, how can i calculate them. Can i calculate spati…

---

## [How calculate effectieve gain as function of voltage](https://root-forum.cern.ch/t/how-calculate-effectieve-gain-as-function-of-voltage/62357)

<div class="topic-metadata">

**Author:** [@Dk\_ntm](https://root-forum.cern.ch/u/Dk_ntm)\
**Replies:** 6\
**Last updated:** [December 10, 2024, 2:17pm UTC](https://root-forum.cern.ch/t/how-calculate-effectieve-gain-as-function-of-voltage/62357 "2024-12-10T14:17:24Z")

</div>

Hello! I’m new user to Garfield++. Please tell me, I want to calculate the effective gain for gem, I have a couple of questions and clarifications. To calculate the efffective gain, as i know Effective Gain= Number o…

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

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