# How to run the Example "lem" to obtain the induced signal

**URL:** <https://root-forum.cern.ch/t/how-to-run-the-example-lem-to-obtain-the-induced-signal/57871>\
**Category:** Garfield++\
**Created:** [January 17, 2024, 8:48am UTC](https://root-forum.cern.ch/t/how-to-run-the-example-lem-to-obtain-the-induced-signal/57871 "2024-01-17T08:48:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiangjc-github](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jiangjc-github/32/27278_2.png) [@jiangjc-github](https://root-forum.cern.ch/u/jiangjc-github)\
**Post date:** [January 17, 2024, 8:48am UTC](https://root-forum.cern.ch/t/how-to-run-the-example-lem-to-obtain-the-induced-signal/57871/1 "2024-01-17T08:48:43Z")

</div>

@hschindl  
Hi hschindl,

I try to run the example “garfieldpp/Examples/Elmer/lem” to obtain the induced signal, however, the result file is always blank whatever I tried.  
Here are my modified lines comparing to original files:

1. gas-\>SetPressure(160.)[reduce gas pressure to simply increase the gain];  
2.elm-\>SetWeightingField(“gemcell/gemcell\_WTlel.result”, “wtlel”); [remove the original comment].  
3.sensor-\>AddElectrode(elm, “wtlel”); [remove the original comment].  
4.sensor-\>SetTimeWindow(0., tEnd / nsBins, nsBins);[remove the original comment].

Could you please help me to check why it is not work?  
Thank you very much.

Best regards,  
Jiechen

---

<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:** [January 17, 2024, 10:58am UTC](https://root-forum.cern.ch/t/how-to-run-the-example-lem-to-obtain-the-induced-signal/57871/2 "2024-01-17T10:58:29Z")

</div>

Hi,  
does the program work as expected if you don’t make any modifications to it?  
I don’t think the weighting field map (`gemcell_WTlel.result`) is included in the repository, so I believe you would need to (re-)run Elmer to produce it.

---

<div class="post-metadata">

**Author:** ![jiangjc-github](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jiangjc-github/32/27278_2.png) [@jiangjc-github](https://root-forum.cern.ch/u/jiangjc-github)\
**Post date:** [January 17, 2024, 11:38am UTC](https://root-forum.cern.ch/t/how-to-run-the-example-lem-to-obtain-the-induced-signal/57871/3 "2024-01-17T11:38:34Z")

</div>

Hi, hschindl,

Thank you for reminding, there is indeed no weighting field map (`gemcell_WTlel.result` ), I tried to re-run all director within Elmer, however, no field map （‘gemcell\_WTlel.result’）was generated. Is this file imported from external files?

Best wishes

---

<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:** [January 17, 2024, 5:50pm UTC](https://root-forum.cern.ch/t/how-to-run-the-example-lem-to-obtain-the-induced-signal/57871/4 "2024-01-17T17:50:49Z")

</div>

To produce a weighting field map, you need to change the boundary conditions, applying 1 V to the electrode to be read out and 0 V to the others and resolve. See section 2.5 in [this note](https://garfieldpp.web.cern.ch/garfieldpp/examples/elmer/garfield_elmer_doc.pdf) for a more detailed explanation/recipe.

---

<div class="post-metadata">

**Author:** ![jiangjc-github](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jiangjc-github/32/27278_2.png) [@jiangjc-github](https://root-forum.cern.ch/u/jiangjc-github)\
**Post date:** [January 18, 2024, 1:23am UTC](https://root-forum.cern.ch/t/how-to-run-the-example-lem-to-obtain-the-induced-signal/57871/5 "2024-01-18T01:23:59Z")

</div>

Thank you very much for your useful information, I’ll try it.

Best wishes.

---

<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:** [February 1, 2024, 1:24am UTC](https://root-forum.cern.ch/t/how-to-run-the-example-lem-to-obtain-the-induced-signal/57871/6 "2024-02-01T01:24:14Z")

</div>

Closed on February 1, 2024, 1:24am UTC

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