From 2224015603fc2b153fb3842b9a24a831517ade68 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Fri, 10 Apr 2015 11:16:18 +0200 Subject: [PATCH] Adapt to new GammaLib interface --- src/ctobssim/ctobssim.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ctobssim/ctobssim.cpp b/src/ctobssim/ctobssim.cpp index 0f2949c..a22594a 100644 --- a/src/ctobssim/ctobssim.cpp +++ b/src/ctobssim/ctobssim.cpp @@ -730,8 +730,8 @@ void ctobssim::simulate_source(GCTAObservation* obs, const GModels& models, GEnergy e_true_min = emin; GEnergy e_true_max = emax; if (rsp->use_edisp()) { - e_true_min = rsp->ebounds_src(e_true_min).emin(); - e_true_max = rsp->ebounds_src(e_true_max).emax(); + e_true_min = rsp->ebounds(e_true_min).emin(); + e_true_max = rsp->ebounds(e_true_max).emax(); } // Dump energy range @@ -762,7 +762,6 @@ void ctobssim::simulate_source(GCTAObservation* obs, const GModels& models, // number of simulated photons to m_max_photons. // The photon rate is estimated from the model flux // and used to set the duration of the time slice. - //double flux = model->spectral()->flux(emin, emax); double flux = get_model_flux(model, emin, emax, dir, rad); double rate = flux * m_area; -- libgit2 0.21.4