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.
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 fromcore.background_generation.MCDataSamplingBkgGenMethod
with an overwritten methodgenerate_events
. The additional propertybkg_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.