# RPC simulation using stripreadout

**URL:** <https://root-forum.cern.ch/t/rpc-simulation-using-stripreadout/63927>\
**Category:** Garfield++\
**Created:** [July 22, 2025, 8:53am UTC](https://root-forum.cern.ch/t/rpc-simulation-using-stripreadout/63927 "2025-07-22T08:53:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![feiyuyu](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/958977/32.png) [@feiyuyu](https://root-forum.cern.ch/u/feiyuyu)\
**Post date:** [July 22, 2025, 8:53am UTC](https://root-forum.cern.ch/t/rpc-simulation-using-stripreadout/63927/1 "2025-07-22T08:53:21Z")

</div>

Hello everyone,

I’ve been using Garfield++ for RPC simulations. When I directly run the RPC example, it executes quickly and produces results. However, after changing the plane readout (`RPC->AddPlane(label)`) in the example to a strip readout (`RPC->AddStrips(label)`), the runtime becomes extremely slow – even when I configure only a single readout strip.

Could you help me understand why this happens and suggest solutions to resolve it?

 ![QQ_1753174195874](https://root-forum.cern.ch/uploads/default/original/3X/e/f/ef6040bffcbd79169bfb5de7fde71f6909183220.png)  
 ![QQ_1753174293735](https://root-forum.cern.ch/uploads/default/original/3X/f/7/f75d4f2bb566d24de9300e493fad7018df683d04.png)

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [July 22, 2025, 9:02am UTC](https://root-forum.cern.ch/t/rpc-simulation-using-stripreadout/63927/2 "2025-07-22T09:02:14Z")

</div>

Welcome to the ROOT Forum!  
I think @hschindl can help you

---

<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:** [July 22, 2025, 10:12am UTC](https://root-forum.cern.ch/t/rpc-simulation-using-stripreadout/63927/3 "2025-07-22T10:12:28Z")

</div>

Adding @djjansse

---

<div class="post-metadata">

**Author:** ![djjansse](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/d/8baadc/32.png) [@djjansse](https://root-forum.cern.ch/u/djjansse)\
**Post date:** [July 22, 2025, 1:35pm UTC](https://root-forum.cern.ch/t/rpc-simulation-using-stripreadout/63927/4 "2025-07-22T13:35:10Z")

</div>

Dear @feiyuyu,

Yes, that is correct. Unfortunately, a side effect of the weighting potential for a strip in this geometry is that it results in a non-closed solution and **requires evaluating an integral for every weighting potential call**.

One way to address this is to use the `ComponentGrid` class to save the weighting potential to a text file. This allows you to compute it only once and import the result for every subsequent run, which can significantly improve the runtime.

Kind regards,  
Djunes

---

<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:** [August 5, 2025, 1:35pm UTC](https://root-forum.cern.ch/t/rpc-simulation-using-stripreadout/63927/5 "2025-08-05T13:35:39Z")

</div>

Closed on August 5, 2025, 1:35pm UTC

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