Conversation
|
The PR should be working, but it needs some testing. Besides me, I assigned @adesai90 so that he can check that the code is now producing the differential sensitivity that he's willing to compute. Maybe we could use Figure 5 of this paper to cross-check that the values we get are approximately correct, although that paper used only 7 years of data, whereas we have 10 (partially reprocessed) years in the public data release. |
|
Thinking about this a bit more... The energy range should be a property of the signal generator that we can change at run time without re-instantiating the analysis object. The public data implementation would naturally support an architecture in which the energy_range is treated as a kwarg that is passed at runtime. However, the function that calculates the factor to convert a number of signal events into a flux is a property of the analysis object, which doesn't use the signal generator. What we should do:
Note that the signal generator is created when the |
|
@adesai90, the conversion from ns to flux should be fixed now! There was some code restructuring involved. So here's a summary of how it works now: You pass the energy range to the Internally, this sets the signal generator's which correctly generates the signal events: So there is no The returns now different values: I also added 2 utility methods that are just wrappers around
|

Feature to address issue #249
This PR implements the option to inject a neutrino signal in a user-defined energy range.
The energy_range is now a property of the public data signal generator.
It can also be passed to the methods that generate trials or estimate sensitivity as
sig_kwargs