How to get cross section and energy distribution of electrons in Garfield++

@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++?
Thanks very much.

BR,
Jiechen

Hi,
if you call EnableCrossSectionOutput before loading the cross-sections from Magboltz, MediumMagboltz saves a table of the cross-sections as function of energy to a text file.
In PyROOT you can do something like this:

gas = ROOT.Garfield.MediumMagboltz("ar")
gas.SetMaxElectronEnergy(200.)
gas.EnableCrossSectionOutput()
gas.Initialise()

For a quick plot you can also use this tool on the Garfield++ website:

To fill a histogram of the electron energy distribution in an avalanche you can use the function AvalancheMicroscopic::EnableElectronEnergyHistogramming, see this example or this example.

That’s so great and convenient, many thank hschindl.

BR,
Jiechen

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.