diff_events_after_cut

lstchain.mc.sensitivity.diff_events_after_cut(events, rates, obstime, feature, cut, gamma_efficiency)

This function calculates the difference between the number of events after the cut in feature and gamma_efficiency*total number of events

Parameters:
events: `pd.dataframe` Dataframe of events
rates: `np.ndarray` gamma rates
obstime: `observation time`
feature: `string` feature for cut: gammaness or theta2
cut: `float` cut in feature
gamma_efficiency: `float` target gamma efficiency for the cut
Returns:
midpoint: float cut in feature