# Q Garfield++ Example/RPC: Issues with Small Avalanche Size and Single Gas Gap Avalanche

**URL:** <https://root-forum.cern.ch/t/q-garfield-example-rpc-issues-with-small-avalanche-size-and-single-gas-gap-avalanche/63661>\
**Category:** Garfield++\
**Created:** [June 3, 2025, 7:51am UTC](https://root-forum.cern.ch/t/q-garfield-example-rpc-issues-with-small-avalanche-size-and-single-gas-gap-avalanche/63661 "2025-06-03T07:51:39Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [June 5, 2025, 4:25am UTC](https://root-forum.cern.ch/t/q-garfield-example-rpc-issues-with-small-avalanche-size-and-single-gas-gap-avalanche/63661/3 "2025-06-05T04:25:52Z")

</div>

Hi,  
by default, `TrackHeed` will stop simulating a track as soon as it encounters an inactive medium. Can you add a line

```cpp
track.CrossInactiveMedia(true);

```

to your program (to the part where you set up HEED)? With this option enabled, the track should continue through the resistive layers and produce ionization in all gas gaps.

---

_[View the full topic](https://root-forum.cern.ch/t/q-garfield-example-rpc-issues-with-small-avalanche-size-and-single-gas-gap-avalanche/63661)._
