Remove multiplication/division by 0.2 MeV in generate_time_series
and SimpleRate
#219
Labels
suggestion
An idea that needs to be discussed/approved before starting implementaion
Milestone
In the implementation of
snowglobes_interface.SimpleRate
I see that we're dividing by 0.2 MeVsnewpy/python/snewpy/snowglobes_interface.py
Lines 173 to 175 in b353799
because earlier we multiplied by this value in
snowglobes.generate_time_series
:snewpy/python/snewpy/snowglobes.py
Lines 119 to 122 in b353799
and
snowglobes.generate_fluence
:snewpy/python/snewpy/snowglobes.py
Lines 286 to 288 in b353799
If I understand correctly, this factor exists as an approximation of integral over the energy bin. The problem is that the energy bins can be different, so this hardcoded value is no longer valid in some cases (for example using smaller bins for presupernova flux). And this leads to physically invalid output of the
generate_*
for those cases - if anyone uses this output apart from feeding it toSimpleRate
.SimpleRate
makes it's own approximation of the energy integration, which could be improved (in a separate issue), and doesn't use thisWhat I suggest
Remove this
0.2 MeV
factor everywhere.The text was updated successfully, but these errors were encountered: