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;