# Can't get delayed signal from Tcad component by delayed weighting field

**URL:** <https://root-forum.cern.ch/t/cant-get-delayed-signal-from-tcad-component-by-delayed-weighting-field/64361>\
**Category:** Garfield++\
**Created:** [October 28, 2025, 9:34am UTC](https://root-forum.cern.ch/t/cant-get-delayed-signal-from-tcad-component-by-delayed-weighting-field/64361 "2025-10-28T09:34:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Leong](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/john_leong/32/35495_2.png) [@John\_Leong](https://root-forum.cern.ch/u/John_Leong)\
**Post date:** [October 28, 2025, 9:34am UTC](https://root-forum.cern.ch/t/cant-get-delayed-signal-from-tcad-component-by-delayed-weighting-field/64361/1 "2025-10-28T09:34:30Z")

</div>

AvalancheMC class can calculate delayed signal via accepting either dynamic weighting potential or weighting field, however I can’t get delayed signal after setting weighting field. I’ve found where the problem is.

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/b/7/b7616ab73610135eef16368199c28ee4a86d2c5a.png)

The picture shows line 140 in “Include/Garfield/ComponentTcadBase.hh” file, which is function “DelayedSignalTimes”. This function only judge whether “m\_dwtp” contains electrode label “label”. However if sets dynamic weighting field instead of dynamic weighting potential, this function should check whether “m\_dwtf” contains electrode lable. Thus I added a line like this:

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/6/f/6f9d24cd909033cf0b401919dd8055dbe54f28ff.png)

It works well, but I wonder whether this is a bug or intentionally designed?

---

<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:** [October 28, 2025, 9:56am UTC](https://root-forum.cern.ch/t/cant-get-delayed-signal-from-tcad-component-by-delayed-weighting-field/64361/2 "2025-10-28T09:56:47Z")

</div>

Good question… @djjansse can you take a look?

---

<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:** [November 8, 2025, 9:34am UTC](https://root-forum.cern.ch/t/cant-get-delayed-signal-from-tcad-component-by-delayed-weighting-field/64361/3 "2025-11-08T09:34:41Z")

</div>

Dear @John_Leong,

Thank you for your comment and suggested fix. We pushed a fix to the main branch [[!557](https://gitlab.cern.ch/garfield/garfieldpp/-/merge_requests/557)] which addresses this issue. Let us know if you something we overlooked.

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:** [November 22, 2025, 9:34am UTC](https://root-forum.cern.ch/t/cant-get-delayed-signal-from-tcad-component-by-delayed-weighting-field/64361/4 "2025-11-22T09:34:50Z")

</div>

Closed on November 22, 2025, 9:34am UTC

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