# Warning energy out of range, increase electron energy integration range

**URL:** <https://root-forum.cern.ch/t/warning-energy-out-of-range-increase-electron-energy-integration-range/42823>\
**Category:** Garfield++\
**Created:** [December 21, 2020, 6:13pm UTC](https://root-forum.cern.ch/t/warning-energy-out-of-range-increase-electron-energy-integration-range/42823 "2020-12-21T18:13:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [December 21, 2020, 10:16pm UTC](https://root-forum.cern.ch/t/warning-energy-out-of-range-increase-electron-energy-integration-range/42823/2 "2020-12-21T22:16:01Z")

</div>

Hi,  
you’re right, by default Magboltz tries to guess a suitable upper limit of the electron energy range. This seems to fail in your case (not sure why, will take a look, but it might be because of the low pressure).  
As a quick fix, you could switch off the automatic determination of the energy range, adding a line

```auto
gas.EnableAutoEnergyLimit(false);

```

and set the upper energy limit (in eV) explicitly, e. g.

```auto
gas.SetMaxElectronEnergy(100.);

```

---

_[View the full topic](https://root-forum.cern.ch/t/warning-energy-out-of-range-increase-electron-energy-integration-range/42823)._
