sensitivity_gamma_efficiency_real_data

lstchain.mc.sensitivity.sensitivity_gamma_efficiency_real_data(dl2_file_on, dl2_file_off, gcut, tcut, n_bins_energy, energy, gamma_eff_gammaness, gamma_eff_theta2, noff, obstime=<Quantity 180000. s>)

Main function to calculate the sensitivity for cuts based on gamma efficiency using real data as ON and OFF events

Parameters:
dl2_file_g: `string` path to h5 file of ON events
dl2_file_p: `string’ path to h5 file of OFF events
ntelescopes_gammas: `int` number of telescopes used
ntelescopes_protons: `int` number of telescopes used
n_bins_energy: `int` number of bins in energy
gamma_eff_gammaness: `float` between 0 and 1 %/100
of gammas to be left after cut in gammaness
gamma_eff_theta2: `float` between 0 and 1 %/100
of gammas to be left after cut in theta2
noff: `float` ratio between the background and the signal region
obstime: `Quantity` Observation time in seconds
Returns:
energy: array center of energy bins
sensitivity: array sensitivity per energy bin