get_weights

lstchain.mc.sensitivity.get_weights(mc_par, spectral_par)

Calculate the weight to transform from MC spectra to target spectra

Parameters:
mc_par: `dict` MC spectral parameters
spectral_par: `dict`spectral parameters of desired spectrum
Returns:
w: float weight