next-exp / nexus

Geant4 simulation framework of the NEXT Collaboration
5 stars 55 forks source link

Assign attachment to electric field #240

Closed paolafer closed 6 months ago

paolafer commented 6 months ago

With this PR we change the way we simulate the electron lifetime in our gas (a.k.a. attachment). In the current code, the value is read by the ATTACHMENT optical property of the material where the ionization electrons start their drift. However, this is a problem if we simulate the grids as made of steel instead of as made of a thin dielectric gas with the same properties as xenon, as done so far. One way of solving this issue is to assign the lifetime property directly to the electric field; it is still read from the optical property of the xenon gas, but now it is decoupled from the specific material the grids are made of.

I also changed the term attachment to lifetime in the code, because I think it describes better what it represents.