XENONnT / fuse

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

Keep interactions even if outside NEST validity #241

Closed cfuselli closed 2 months ago

cfuselli commented 3 months ago

Instead of removing the interaction, keep it and just give the warning.

I find the "Remove interaction" much more dangerous than using a yield model that is not completely validated by data from NEST. The function can return values also for energies much above the validity range, and seems to give reasonable results.

Instead, removing interactions can result into tricky results if the analyst is not fully aware of the possibility.

Here attached the model validity and the results of nc.GetYields() for energy ranges outside the validity ( 3MeV for gamma and beta, 200keV for NR).

test_fuse_yields_nest_nr_yields test_fuse_yields_nest_gamma_yields test_fuse_yields_nest_beta_yields

Just to make it extra clear:

The functions that define the yields model come from here in NEST.

coveralls commented 3 months ago

Pull Request Test Coverage Report for Build 9484437464

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
fuse/plugins/micro_physics/yields.py 1 2 50.0%
<!-- Total: 1 2 50.0% -->
Files with Coverage Reduction New Missed Lines %
fuse/plugins/micro_physics/yields.py 28 76.43%
<!-- Total: 28 -->
Totals Coverage Status
Change from base Build 9451990213: 0.08%
Covered Lines: 2326
Relevant Lines: 2967

💛 - Coveralls
coveralls commented 3 months ago

Pull Request Test Coverage Report for Build 9484444416

Details


Totals Coverage Status
Change from base Build 9451990213: 0.08%
Covered Lines: 2326
Relevant Lines: 2967

💛 - Coveralls
HenningSE commented 3 months ago

Ohh and one more thing: Can you bump the plugin version?

coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 9647500637

Details


Totals Coverage Status
Change from base Build 9647484856: 0.08%
Covered Lines: 2337
Relevant Lines: 2979

💛 - Coveralls
coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 9694111370

Details


Totals Coverage Status
Change from base Build 9694094094: -0.02%
Covered Lines: 2602
Relevant Lines: 3231

💛 - Coveralls
coveralls commented 2 months ago

Pull Request Test Coverage Report for Build 9694124065

Details


Totals Coverage Status
Change from base Build 9694094094: -0.02%
Covered Lines: 2602
Relevant Lines: 3231

💛 - Coveralls