# Addition of oxygen with not substantial effect on a 2 ll plate detector

**URL:** <https://root-forum.cern.ch/t/addition-of-oxygen-with-not-substantial-effect-on-a-2-ll-plate-detector/63315>\
**Category:** Garfield++\
**Created:** [April 7, 2025, 10:36am UTC](https://root-forum.cern.ch/t/addition-of-oxygen-with-not-substantial-effect-on-a-2-ll-plate-detector/63315 "2025-04-07T10:36:31Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Piet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/piet/32/12536_2.png) [@Piet](https://root-forum.cern.ch/u/Piet)\
**Post date:** [April 23, 2025, 1:32pm UTC](https://root-forum.cern.ch/t/addition-of-oxygen-with-not-substantial-effect-on-a-2-ll-plate-detector/63315/11 "2025-04-23T13:32:04Z")

</div>

Dear @gtsileda

If I look at your plots I see you have a gain of ~4500 in both gas mixtures. Having 5x more electrons on the readout pad would mean that also your gain with AvalancheMC (for electrons) is 5 times higher. What is the gain you expect for this detector for these gasmixtures and this electric field (64kV/cm)? 5000 or 25000?

A loss of 30% due to 1% oxygen is probably too high. The problem with Oxygen is that the attachment mostly happens in the three-body process. This 3-body attachment is implemented in Magboltz as if it was for a gasmixture of 100% O2. Therefore you have to change manually the value for the variable `T3B` in the `magboltz.f` file, setting it to the fraction of Oxygen, in your case it would be 0.01. Thereafter you have to recompile your garfieldpp code and source it with `setupGarfield.sh`. Of course also correct gasfiles for 1% oxygen should be generated with this modified compiled garfieldpp version.

> C THREE BODY ATTACHMENT  
> C \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
> C ENTER HERE SCALING FACTOR FOR THREE BODY ATTACHMENT IN MIXTURES:  
> C FOR NORMAL SCALING T3B=1.0  
> T3B=1.0  
> C SCALING FACTOR NORMALLY PROPORTIONAL TO OXYGEN FRACTION  
> C IN RARE GAS MIXTURES  
> C  
> C\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

More details are in [this post.](https://root-forum.cern.ch/t/total-ionization-and-free-electron-fraction-fef/59115/21)

greets  
Piet

---

_[View the full topic](https://root-forum.cern.ch/t/addition-of-oxygen-with-not-substantial-effect-on-a-2-ll-plate-detector/63315)._
