# Primary Ionization Calculations

**URL:** <https://root-forum.cern.ch/t/primary-ionization-calculations/55194>\
**Category:** Garfield++\
**Created:** [June 6, 2023, 3:43am UTC](https://root-forum.cern.ch/t/primary-ionization-calculations/55194 "2023-06-06T03:43:30Z")\
**Posts on this page:** 4\
**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:** [June 6, 2023, 3:43am UTC](https://root-forum.cern.ch/t/primary-ionization-calculations/55194/1 "2023-06-06T03:43:30Z")

</div>

@ [hschindl](https://root-forum.cern.ch/u/hschindl)  
Dear hschindl,

I want to calculate primary ionization of DME (or mixture gas with DME), are some examples in Garfield++？  
Thanks very much for your help.

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:** [June 6, 2023, 6:22am UTC](https://root-forum.cern.ch/t/primary-ionization-calculations/55194/2 "2023-06-06T06:22:01Z")

</div>

There is no specific example for DME, but you can use the examples in [this folder](https://gitlab.cern.ch/garfield/garfieldpp/-/tree/master/Examples/Heed) as a starting point and adapt them.

---

<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:** [June 6, 2023, 8:53am UTC](https://root-forum.cern.ch/t/primary-ionization-calculations/55194/3 "2023-06-06T08:53:32Z")

</div>

Dear [hschindl](https://root-forum.cern.ch/u/hschindl)  
Thanks very much for your help, I changed the gas to “DME” in your recommended file (plotdedx.C), the number of electrons from primary ionization are auto calculated.

Best regards,  
Jiechen

---

<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 20, 2023, 8:54am UTC](https://root-forum.cern.ch/t/primary-ionization-calculations/55194/4 "2023-06-20T08:54:17Z")

</div>

Closed on June 20, 2023, 8:54am UTC

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