Commit 8567f16c268e463de162a8e81923ca2455e64706

Authored by Jürgen Knödlseder
1 parent e69cd744

Correct for source cuts (68%)

Showing 1 changed file with 2 additions and 1 deletions
examples/show_response.py
... ... @@ -189,7 +189,8 @@ def show_one_sensitivity(rsp, name, color="r", duration=180000.0, alpha=0.2, sig
189 189 if Noff > 0:
190 190 Non = Non_lima(sigma, Noff)
191 191 src_counts = Non - bgd_counts
192   - flux[i] = src_counts / (aeff * duration) * E[i]*1.0e6 * gammalib.MeV2erg
  192 + flux[i] = src_counts / (0.68*aeff * duration) * E[i]*1.0e6 * gammalib.MeV2erg
  193 + print logE[i], flux[i]
193 194  
194 195 # Plot data
195 196 plt.loglog(E, flux, color+'-', label=name)
... ...