XENONnT / fuse

XENON Framework for Unified Simulations of Events
BSD 3-Clause "New" or "Revised" License
6 stars 1 forks source link

Fix lineage algo - RadioactiveDecayBase #254

Closed cfuselli closed 1 week ago

cfuselli commented 1 month ago

With this PR we fix some issues with the treatment of RadioactiveDecayBase (RDB) interactions. I realised that the results of simulating one gamma and simulating the gamma from Xe131 gave very different results. That is not good. Now they both give similar results.

Specifically, we had to add special treatment for gammas emitted from excited nuclei that are treated by RDB library. Low energy gammas will not produce a gamma-phot/compt interaction in G4 just like hig energy gammas, but just some electron tracks and some gamma tracks will be produced. Now, we decide based on the secondaries what yield to assign to a certain cluster. The modifications match perfectly the distributions of Xe129 and Xe133 ( they were completely off before this PR ) and also match much better Pb212.

Details of changes:

Xe129 - 39keV gamma

It makes some electron tracks and some gamma-phots. We want to keep them all together into a one gamma cluster.

Xe129_39kev

Xe129 - 196keV gamma

It makes some electron tracks. Again, we want to keep them all together into a one gamma cluster.

Xe129_196kev

Bi214 - 609keV gamma

It makes a real gamma. The gamma produces two compton clusters ( beta yield ) and one photoabsorbtion ( gamma yield )

BiPo_609kev

Summary of clustering for different situations

Left: NEW clustering Right: OLD clustering

Gamma simulations 163keV in TPC

Expect just one gamma cluster, sometimes compton + gamma

Gamma_summary

Pb212

It's gammas+beta most of the times, with 238keV gamma

Pb212_summary

Xe131

It's one 163keV gamma

Xe131_summary

Xe129

It's two different gammas

Xe129_summary

BiPo

there is gamma+beta and then alpha

BiPo_summary
cfuselli commented 4 weeks ago

As you can see in the BiPo comparison, there was a difference that I did not notice between the A and Z values of the alpha cluster of Po214. It should be 4-2 and it was getting 214-84. This has an impact on the yields. I realised the only problem was that we were not splitting anymore for alpha types, adding that back all the rest is the same (checked for all the cases) but the alpha cluster now gets 4-2 for A-Z as it should.

cfuselli commented 4 weeks ago

Btw I am still discussing with Micha about this PR and we are still not sure how we want to treat those cases.

cfuselli commented 3 weeks ago

With the latest commit we do a bit of "dietrofront" on the treatment of RDB decays. I will update the description of the PR asap.

New treatment involves: