# Garfield++

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

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

---

## [Questions about induction signal](https://root-forum.cern.ch/t/questions-about-induction-signal/55160)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 5\
**Last updated:** [June 5, 2023, 12:33pm UTC](https://root-forum.cern.ch/t/questions-about-induction-signal/55160 "2023-06-05T12:33:48Z")

</div>

Hello! The following pictures of the induction signal comes from Examples/Srim/trimsignal.C and Examples/DriftTube/mdt\_gamma.C respectively. The former medium is Si and the signal is caused by the drift of electrons and…

---

## [What is the exact mean of weighting potential?](https://root-forum.cern.ch/t/what-is-the-exact-mean-of-weighting-potential/55025)

<div class="topic-metadata">

**Author:** [@newconcept1979](https://root-forum.cern.ch/u/newconcept1979)\
**Replies:** 3\
**Last updated:** [June 5, 2023, 12:15pm UTC](https://root-forum.cern.ch/t/what-is-the-exact-mean-of-weighting-potential/55025 "2023-06-05T12:15:57Z")

</div>

The class ComponentNeBem3d was used to calculate the weighting field and weighting potential between two plane electrode with 2cm space, the result of the intermediate position between the two plane is: weighting field=…

---

## [Questions about DriftNegativeIon](https://root-forum.cern.ch/t/questions-about-driftnegativeion/55113)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 9\
**Last updated:** [June 2, 2023, 12:53am UTC](https://root-forum.cern.ch/t/questions-about-driftnegativeion/55113 "2023-06-02T00:53:40Z")

</div>

Hello I would like to confirm whether DriftLineRKF and AvalancheMC consider diffusion when simulating negative ion drift.

---

## [Questions about ViewSignal Class](https://root-forum.cern.ch/t/questions-about-viewsignal-class/55129)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 2\
**Last updated:** [June 2, 2023, 12:45am UTC](https://root-forum.cern.ch/t/questions-about-viewsignal-class/55129 "2023-06-02T00:45:37Z")

</div>

The following codes are from ViewSignal.hh // Colours. short m\_colTotal = kBlue + 3; short m\_colElectrons = kOrange - 3; short m\_colIons = kRed + 1; This is the induction signal diagram I draw. In my program…

---

## [I would like to get the energy spectrum of β particles in a proportional counting tube, do you have any suggestions?](https://root-forum.cern.ch/t/i-would-like-to-get-the-energy-spectrum-of-particles-in-a-proportional-counting-tube-do-you-have-any-suggestions/54940)

<div class="topic-metadata">

**Author:** [@zjun](https://root-forum.cern.ch/u/zjun)\
**Replies:** 14\
**Last updated:** [June 1, 2023, 11:06am UTC](https://root-forum.cern.ch/t/i-would-like-to-get-the-energy-spectrum-of-particles-in-a-proportional-counting-tube-do-you-have-any-suggestions/54940 "2023-06-01T11:06:42Z")

</div>

I tried modifying the Geant4GarfieldInterface in it, but each event took too long to calculate and the following issue occurred，I changed the gas file and kept the material in geant4 consistent, 1，is there a way to r…

---

## [Problems about loading comsol files](https://root-forum.cern.ch/t/problems-about-loading-comsol-files/54944)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 13\
**Last updated:** [May 20, 2023, 5:57am UTC](https://root-forum.cern.ch/t/problems-about-loading-comsol-files/54944 "2023-05-20T05:57:08Z")

</div>

I want to import the mesh file solved by comsol, but encountered the following problems This is my code This is my model I have tried to reinstall Garfield + +, but it still doesn 't work. Can you give me so…

---

## [Alpha particle with GEANT4 and GARFIELD](https://root-forum.cern.ch/t/alpha-particle-with-geant4-and-garfield/55036)

<div class="topic-metadata">

**Author:** [@acorsi](https://root-forum.cern.ch/u/acorsi)\
**Replies:** 7\
**Last updated:** [May 31, 2023, 11:33am UTC](https://root-forum.cern.ch/t/alpha-particle-with-geant4-and-garfield/55036 "2023-05-31T11:33:33Z")

</div>

Hello, I would like to simulate ionization induced by an alpha particle of about 1 MeV in a gas volume and the avalanche of the ionization electrons. I see two options: Generate alpha track with Heeds, and then Avalac…

---

## [Difference between TrackSrim and TrackTrim](https://root-forum.cern.ch/t/difference-between-tracksrim-and-tracktrim/55105)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 2\
**Last updated:** [May 31, 2023, 5:53am UTC](https://root-forum.cern.ch/t/difference-between-tracksrim-and-tracktrim/55105 "2023-05-31T05:53:05Z")

</div>

I’m still confused about using TrackSrim and TrackTrim class,both of which seem to simulate heavy charged particles. Which class should I use if I want to simulate the signal caused by the ionization of alpha particles i…

---

## [Problems about fieldView](https://root-forum.cern.ch/t/problems-about-fieldview/54957)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 4\
**Last updated:** [May 30, 2023, 1:26pm UTC](https://root-forum.cern.ch/t/problems-about-fieldview/54957 "2023-05-30T13:26:02Z")

</div>

The electric field map drawn by class ViewField is a little strange. This is my model, the upper pixel ( readout ) is applied voltage 0V, the lower layer is applied voltage -600V. The electric field map ( YZ plane )…

---

## ["Undefined symbols for architecture x86\_64" When running Garfield++ RPC example](https://root-forum.cern.ch/t/undefined-symbols-for-architecture-x86-64-when-running-garfield-rpc-example/55075)

<div class="topic-metadata">

**Author:** [@Khalil\_Alashy](https://root-forum.cern.ch/u/Khalil_Alashy)\
**Replies:** 3\
**Last updated:** [May 30, 2023, 7:47am UTC](https://root-forum.cern.ch/t/undefined-symbols-for-architecture-x86-64-when-running-garfield-rpc-example/55075 "2023-05-30T07:47:52Z")

</div>

I am trying to run RPC example in Garfield ++. I did the installation and other examples such as Gem, Silicon, and DriftTube work perfectly and the outputted ROOT graphs are perfect. But when I tried to run the RPC exam…

---

## [How to get electron position when using TrackSrim class?](https://root-forum.cern.ch/t/how-to-get-electron-position-when-using-tracksrim-class/55024)

<div class="topic-metadata">

**Author:** [@newconcept1979](https://root-forum.cern.ch/u/newconcept1979)\
**Replies:** 2\
**Last updated:** [May 25, 2023, 8:31am UTC](https://root-forum.cern.ch/t/how-to-get-electron-position-when-using-tracksrim-class/55024 "2023-05-25T08:31:16Z")

</div>

The signal induced by an alpha particle was simulated using Garfield++, the data file produced by Srim was imported in Garfield using the class TrackSrim, but it seems the class has no solution like GetElectron, so the e…

---

## [Is there a limit on the number of planes you can create in Garfield++?](https://root-forum.cern.ch/t/is-there-a-limit-on-the-number-of-planes-you-can-create-in-garfield/55001)

<div class="topic-metadata">

**Author:** [@Sebastian\_Regener](https://root-forum.cern.ch/u/Sebastian_Regener)\
**Replies:** 1\
**Last updated:** [May 23, 2023, 3:56pm UTC](https://root-forum.cern.ch/t/is-there-a-limit-on-the-number-of-planes-you-can-create-in-garfield/55001 "2023-05-23T15:56:25Z")

</div>

Hello all, I am in the process of learning Garfield++. I am currently working on trying to make set of planes each spaced a distance from each other and with there own defined potentials. I would like to look at the weig…

---

## [Problems about change source code](https://root-forum.cern.ch/t/problems-about-change-source-code/54939)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 2\
**Last updated:** [May 19, 2023, 6:31am UTC](https://root-forum.cern.ch/t/problems-about-change-source-code/54939 "2023-05-19T06:31:52Z")

</div>

I have made some changes to Source/ComponentComsol.cc, but the program does not change accordingly. What should I do？

---

## [The relationship between the diffusion coefficient of unit "sqrt(cm)" and "cm^2/s"](https://root-forum.cern.ch/t/the-relationship-between-the-diffusion-coefficient-of-unit-sqrt-cm-and-cm-2-s/54843)

<div class="topic-metadata">

**Author:** [@jiangjc-github](https://root-forum.cern.ch/u/jiangjc-github)\
**Replies:** 4\
**Last updated:** [May 16, 2023, 2:43am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-diffusion-coefficient-of-unit-sqrt-cm-and-cm-2-s/54843 "2023-05-16T02:43:18Z")

</div>

Dear experts, The unit of transverse (or longitudinal) diffusion coefficient obtained from Garfield++ is “sqrt(cm)”, if the value is a, which means charges diffusion distance of a (um) per sqrt(d (cm)). In general, th…

---

## [Problems about multithreading techniques using OpenMP and ComponentComsol](https://root-forum.cern.ch/t/problems-about-multithreading-techniques-using-openmp-and-componentcomsol/54777)

<div class="topic-metadata">

**Author:** [@Lan-sx](https://root-forum.cern.ch/u/Lan-sx)\
**Replies:** 4\
**Last updated:** [May 10, 2023, 10:21am UTC](https://root-forum.cern.ch/t/problems-about-multithreading-techniques-using-openmp-and-componentcomsol/54777 "2023-05-10T10:21:53Z")

</div>

Dear Garfield++ experts: I am trying to speed up my simulation by using the OpenMP. In the code below, I built my detector model in Comsol software, then imported the field maps to Garfiled++ and simulated the electr…

---

## [Dubious fluorescence energies in Heed](https://root-forum.cern.ch/t/dubious-fluorescence-energies-in-heed/54788)

<div class="topic-metadata">

**Author:** [@mjag](https://root-forum.cern.ch/u/mjag)\
**Replies:** 2\
**Last updated:** [May 10, 2023, 8:51am UTC](https://root-forum.cern.ch/t/dubious-fluorescence-energies-in-heed/54788 "2023-05-10T08:51:59Z")

</div>

Hello, I decided to check energies of fluorescence photons returned by Heed. Normally they would be reabsorbed and any deviations would go under the radar. I extracted them and their energies seem odd. Here is example …

---

## [AvalancheMC - error with SetDistanceSteps](https://root-forum.cern.ch/t/avalanchemc-error-with-setdistancesteps/54579)

<div class="topic-metadata">

**Author:** [@acorsi](https://root-forum.cern.ch/u/acorsi)\
**Replies:** 11\
**Last updated:** [May 2, 2023, 6:45am UTC](https://root-forum.cern.ch/t/avalanchemc-error-with-setdistancesteps/54579 "2023-05-02T06:45:44Z")

</div>

Hello, I would like to simulate an avalanche in a Ar-CO2 gas (file attached) with an electric field of 22800 V/cm and the attached arco2 file (taken rom the exemple), within garfield6. With the commands: AvalancheMC av…

---

## [On the dependence of the first townsend coeff. with pressure](https://root-forum.cern.ch/t/on-the-dependence-of-the-first-townsend-coeff-with-pressure/54679)

<div class="topic-metadata">

**Author:** [@AbdelrahmanMekawy](https://root-forum.cern.ch/u/AbdelrahmanMekawy)\
**Replies:** 2\
**Last updated:** [April 29, 2023, 2:01pm UTC](https://root-forum.cern.ch/t/on-the-dependence-of-the-first-townsend-coeff-with-pressure/54679 "2023-04-29T14:01:49Z")

</div>

Hello, I am a newbie to GARFIELD++ and I was trying to obtain the electron transport parameters for Argon under 2 different pressures (760, 3\*760) torr, but I did notice that the data obtained says that alpha is inversel…

---

## [Error to execute makefile](https://root-forum.cern.ch/t/error-to-execute-makefile/54654)

<div class="topic-metadata">

**Author:** [@Lucas\_Batista](https://root-forum.cern.ch/u/Lucas_Batista)\
**Replies:** 1\
**Last updated:** [April 26, 2023, 8:24pm UTC](https://root-forum.cern.ch/t/error-to-execute-makefile/54654 "2023-04-26T20:24:15Z")

</div>

ROOT Version: 6.26 Hi, I am having problems to create my executable file of my simulation after update my garfield version with git pull command. Now every time that I try to execute the code it gives this output: $…

---

## [Problem about LoadNegativeIonMobility](https://root-forum.cern.ch/t/problem-about-loadnegativeionmobility/54638)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 2\
**Last updated:** [April 26, 2023, 2:37pm UTC](https://root-forum.cern.ch/t/problem-about-loadnegativeionmobility/54638 "2023-04-26T14:37:57Z")

</div>

I set the gas to air by gas.SetComposition(“Ar”, 0.94, “CO2”, 0.03, “O2”,20.93,“N2”, 78.1). The emitted alpha particles interact with air molecules to produce ionization electrons, most of which will be attached to elect…

---

## [Energy Deposition for Photons](https://root-forum.cern.ch/t/energy-deposition-for-photons/54619)

<div class="topic-metadata">

**Author:** [@Yash\_Joshi](https://root-forum.cern.ch/u/Yash_Joshi)\
**Replies:** 2\
**Last updated:** [April 25, 2023, 5:47am UTC](https://root-forum.cern.ch/t/energy-deposition-for-photons/54619 "2023-04-25T05:47:52Z")

</div>

I’m trying to get a an energy deposition curve for a photon in a parallel plate ionisation chamber. I’m using track.TransportPhoton(0., 0., 0., 0., 5886., 1., 0., 0., ne) to generate a photon. And, I’m looping over th…

---

## [How to get cross section and energy distribution of electrons in Garfield++](https://root-forum.cern.ch/t/how-to-get-cross-section-and-energy-distribution-of-electrons-in-garfield/54567)

<div class="topic-metadata">

**Author:** [@jiangjc-github](https://root-forum.cern.ch/u/jiangjc-github)\
**Replies:** 2\
**Last updated:** [April 20, 2023, 10:39am UTC](https://root-forum.cern.ch/t/how-to-get-cross-section-and-energy-distribution-of-electrons-in-garfield/54567 "2023-04-20T10:39:12Z")

</div>

@hschindl Hi, hschindl, Are there some ways to get distribution of cross section versus electrons energy for given gas, and probability of energy distribution of electrons for given electric field in the Garfield++? Th…

---

## [How to get recombination rate in the Garfield++](https://root-forum.cern.ch/t/how-to-get-recombination-rate-in-the-garfield/54514)

<div class="topic-metadata">

**Author:** [@jiangjc-github](https://root-forum.cern.ch/u/jiangjc-github)\
**Replies:** 3\
**Last updated:** [April 20, 2023, 9:32am UTC](https://root-forum.cern.ch/t/how-to-get-recombination-rate-in-the-garfield/54514 "2023-04-20T09:32:46Z")

</div>

@hschindl Hi, hschindl, is there some way to obtain the recombination rate in the Garfield++？ Thanks very much. Best regard, Jiechen

---

## [Program run error](https://root-forum.cern.ch/t/program-run-error/54516)

<div class="topic-metadata">

**Author:** [@changjh12](https://root-forum.cern.ch/u/changjh12)\
**Replies:** 5\
**Last updated:** [April 19, 2023, 12:06pm UTC](https://root-forum.cern.ch/t/program-run-error/54516 "2023-04-19T12:06:13Z")

</div>

Hello, I was modifying the program when the error below occurred.I tried to modify it in other ways, but it didn’t work. Thank you! I added a line of code DriftElectron(x0, y0, z0, t0) in this zone. constexpr un…

---

## [I want to calculate the gas gain for gem](https://root-forum.cern.ch/t/i-want-to-calculate-the-gas-gain-for-gem/54546)

<div class="topic-metadata">

**Author:** [@Ferangiz\_Ata\_Kurban](https://root-forum.cern.ch/u/Ferangiz_Ata_Kurban)\
**Replies:** 3\
**Last updated:** [April 19, 2023, 10:40am UTC](https://root-forum.cern.ch/t/i-want-to-calculate-the-gas-gain-for-gem/54546 "2023-04-19T10:40:47Z")

</div>

Hello! I’m new user to Garfield++. Please tell me, I want to calculate the gas gain for gem, I have a couple of questions and clarifications. To calculate the gas gain, I run the code that was given on the website (Ex…

---

## [Can Garfield++ drift negative ions?](https://root-forum.cern.ch/t/can-garfield-drift-negative-ions/54524)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 7\
**Last updated:** [April 17, 2023, 2:17pm UTC](https://root-forum.cern.ch/t/can-garfield-drift-negative-ions/54524 "2023-04-17T14:17:19Z")

</div>

If the gas composition are set as (gas.SetComposition(“Ar”, 0.94, “CO2”, 0.03, “N2”, 78.1,“O2”,20.93); The emitted alpha particles interact with air molecules to produce ionization electrons, most of which will be attac…

---

## [How to obtain the transfer function for front end electronics?](https://root-forum.cern.ch/t/how-to-obtain-the-transfer-function-for-front-end-electronics/54409)

<div class="topic-metadata">

**Author:** [@Uruj](https://root-forum.cern.ch/u/Uruj)\
**Replies:** 2\
**Last updated:** [April 17, 2023, 10:00am UTC](https://root-forum.cern.ch/t/how-to-obtain-the-transfer-function-for-front-end-electronics/54409 "2023-04-17T10:00:31Z")

</div>

Hello, I am trying to simulate a drift chamber, but I don’t know how to write the transfer function for the front-end electronics. Can someone please provide me with some references for this? Thank you

---

## [Problems about drift time in a uniform field](https://root-forum.cern.ch/t/problems-about-drift-time-in-a-uniform-field/54475)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 6\
**Last updated:** [April 15, 2023, 10:02am UTC](https://root-forum.cern.ch/t/problems-about-drift-time-in-a-uniform-field/54475 "2023-04-15T10:02:30Z")

</div>

I intend to study the motion of electrons ionized by 6MeV alpha particles in the drift electric field ( assuming a uniform electric field ). I want to obtain the drift time of the electron ( moving from the top of the d…

---

## [Problems in simulation of drift chamber](https://root-forum.cern.ch/t/problems-in-simulation-of-drift-chamber/54429)

<div class="topic-metadata">

**Author:** [@Uruj](https://root-forum.cern.ch/u/Uruj)\
**Replies:** 18\
**Last updated:** [April 13, 2023, 4:52pm UTC](https://root-forum.cern.ch/t/problems-in-simulation-of-drift-chamber/54429 "2023-04-13T16:52:52Z")

</div>

Hello, I am trying to simulate a drift chamber, but I am facing some issues: The guard wires are not producing any drift lines. Some drift lines lie outside the chamber geometry. The code I am using: #include \<iostr…

---

## [Problems about ViewField](https://root-forum.cern.ch/t/problems-about-viewfield/54462)

<div class="topic-metadata">

**Author:** [@zql21](https://root-forum.cern.ch/u/zql21)\
**Replies:** 4\
**Last updated:** [April 13, 2023, 1:07pm UTC](https://root-forum.cern.ch/t/problems-about-viewfield/54462 "2023-04-13T13:07:02Z")

</div>

I use ComponentConstant to create a uniform electric field along the z direction and us ViewField for visualization to ensure that I have established the uniform electric field.But the view result is blank.How can I vi…

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

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