From e70ffa3259fbfc2d92882055dc6d34748f69d4a1 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Sat, 22 Sep 2012 00:31:20 +0200 Subject: [PATCH] Adapt to new GammaLib interface. --- src/ctobssim/ctobssim.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ctobssim/ctobssim.cpp b/src/ctobssim/ctobssim.cpp index 95dbd99..e493742 100644 --- a/src/ctobssim/ctobssim.cpp +++ b/src/ctobssim/ctobssim.cpp @@ -21,7 +21,7 @@ /** * @file ctobssim.cpp * @brief CTA observation simulator tool implementation - * @author J. Knoedlseder + * @author Juergen Knoedlseder */ /* __ Includes ___________________________________________________________ */ @@ -675,7 +675,7 @@ void ctobssim::simulate_source(GCTAObservation* obs, const GModels& models, for (int i = 0; i < models.size(); ++i) { // Get sky model (NULL if not a sky model) - const GModelSky* model = dynamic_cast(&models[i]); + const GModelSky* model = dynamic_cast(models[i]); // If we have a sky model then simulate photons if (model != NULL) { @@ -846,7 +846,7 @@ void ctobssim::simulate_background(GCTAObservation* obs, const GModels& models, // Get model (NULL if not a radial acceptance model) const GCTAModelRadialAcceptance* model = - dynamic_cast(&models[i]); + dynamic_cast(models[i]); // If we have a radial acceptance model then simulate events if (model != NULL) { -- libgit2 0.21.4