icecube / skyllh

https://icecube.github.io/skyllh/
GNU General Public License v3.0
11 stars 5 forks source link

Add background generation method CompositeMCDataSamplingBkgGenMethod #199

Closed martwo closed 10 months ago

martwo commented 10 months ago

It might be necessary for an analysis to generate background events from monte-carlo, where different background components depend on the sky location, and hence need to be re-calculated for each trial. This means that the MC sample needs to be scrambled before the background components rates are calculated.

I propose the new class core.background_generation.CompositeMCDataSamplingBkgGenMethod derived from core.background_generation.MCDataSamplingBkgGenMethod with an overwritten method generate_events. The additional property bkg_component_rate_calc_func_dict should be a dictionary holding the rate calculation function for each background component, where the key is the name of the background component and the value is the rate calculation function.