# Magboltz::SetW() doesn't work

**URL:** <https://root-forum.cern.ch/t/magboltz-setw-doesnt-work/50329>\
**Category:** Garfield++\
**Created:** [June 9, 2022, 8:44am UTC](https://root-forum.cern.ch/t/magboltz-setw-doesnt-work/50329 "2022-06-09T08:44:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crisps](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/crisps/32/39101_2.png) [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Post date:** [June 9, 2022, 8:44am UTC](https://root-forum.cern.ch/t/magboltz-setw-doesnt-work/50329/1 "2022-06-09T08:44:38Z")

</div>

Dear experts

I tried to set W value of the gas mixture, I use 90/10 He/iC4H10 which gives W value of 39.51 eV, where 30.02eV is calculated from PDG values. So I try to set the W value to 100 (just to see if it works) and 100000, but nothing changed after simulation. Is this function aborted? If so how can I get the W value in the gas mixture

---

<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 9, 2022, 1:02pm UTC](https://root-forum.cern.ch/t/magboltz-setw-doesnt-work/50329/2 "2022-06-09T13:02:56Z")

</div>

In what way does it not work? I just tried with a modified version of the `edep.C` example in the “Examples/Heed” directory of the project source tree, and I do see a change in the average number of electrons when I change the W value of the gas.

---

<div class="post-metadata">

**Author:** ![Crisps](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/crisps/32/39101_2.png) [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Post date:** [June 9, 2022, 1:39pm UTC](https://root-forum.cern.ch/t/magboltz-setw-doesnt-work/50329/3 "2022-06-09T13:39:40Z")

</div>

Yes you are right, I might make some mistake in my program…

---

<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:** [June 23, 2022, 1:40pm UTC](https://root-forum.cern.ch/t/magboltz-setw-doesnt-work/50329/4 "2022-06-23T13:40:34Z")

</div>

Closed on June 23, 2022, 1:40pm UTC

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