# Garfield++ AvalancheSize problem

**URL:** <https://root-forum.cern.ch/t/garfield-avalanchesize-problem/54010>\
**Category:** Garfield++\
**Created:** [March 14, 2023, 7:47am UTC](https://root-forum.cern.ch/t/garfield-avalanchesize-problem/54010 "2023-03-14T07:47:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zql21](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/zql21/32/33487_2.png) [@zql21](https://root-forum.cern.ch/u/zql21)\
**Post date:** [March 14, 2023, 7:47am UTC](https://root-forum.cern.ch/t/garfield-avalanchesize-problem/54010/1 "2023-03-14T07:47:46Z")

</div>

Hi experts!  
I run triplegem.C in example/Ansys123 and encounter some problems.  
1.the output of aval.GetAvalancheSize ( ne, ni ) is sometimes 0. Can anyone explain why this happened ?  
2.aval. EnableAvalancheSizeLimit (1000) is set in the program, but it does not seem to work, because ne is still greater than 1000.Why？  
 ![图片](https://root-forum.cern.ch/uploads/default/original/3X/1/8/1808b38f675b6b29ef44661400a7b02834e181a6.png)

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [March 14, 2023, 8:12am UTC](https://root-forum.cern.ch/t/garfield-avalanchesize-problem/54010/2 "2023-03-14T08:12:32Z")

</div>

I guess @hschindl can help.

---

<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:** [March 15, 2023, 6:00am UTC](https://root-forum.cern.ch/t/garfield-avalanchesize-problem/54010/3 "2023-03-15T06:00:05Z")

</div>

Hi,

1: that can happen because of attachment.

2: I need to take look at the code but it’s possible that the way the size limit is implemented you can get slightly higher avalanche sizes than imposed by the cut.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [March 29, 2023, 6:01am UTC](https://root-forum.cern.ch/t/garfield-avalanchesize-problem/54010/4 "2023-03-29T06:01:03Z")

</div>

Closed on March 29, 2023, 6:01am UTC

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