From a89a318dd91358f8197f1dfd8cdd450bcdabce71 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Thu, 21 Feb 2013 07:22:43 +0100 Subject: [PATCH] Revert "Revert "Adapt to new GammaLib-00-08-00 interface."" --- src/ctobssim/ctobssim.cpp | 6 +++--- src/ctobssim/ctobssim.hpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ctobssim/ctobssim.cpp b/src/ctobssim/ctobssim.cpp index 747c2fc..2d6c4d5 100644 --- a/src/ctobssim/ctobssim.cpp +++ b/src/ctobssim/ctobssim.cpp @@ -1,7 +1,7 @@ /*************************************************************************** * ctobssim - CTA observation simulator tool * * ----------------------------------------------------------------------- * - * copyright (C) 2011-2012 by Juergen Knoedlseder * + * copyright (C) 2011-2013 by Juergen Knoedlseder * * ----------------------------------------------------------------------- * * * * This program is free software: you can redistribute it and/or modify * @@ -690,7 +690,7 @@ void ctobssim::simulate_source(GCTAObservation* obs, const GModels& models, // Get sky model (NULL if not a sky model) const GModelSky* model = - dynamic_cast(models[i]); + dynamic_cast(&models[i]); // If we have a sky model then simulate photons if (model != NULL) { @@ -868,7 +868,7 @@ void ctobssim::simulate_background(GCTAObservation* obs, // 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) { diff --git a/src/ctobssim/ctobssim.hpp b/src/ctobssim/ctobssim.hpp index 7b60214..368e54f 100644 --- a/src/ctobssim/ctobssim.hpp +++ b/src/ctobssim/ctobssim.hpp @@ -1,7 +1,7 @@ /*************************************************************************** * ctobssim - CTA observation simulator tool * * ----------------------------------------------------------------------- * - * copyright (C) 2011-2012 by Juergen Knoedlseder * + * copyright (C) 2011-2013 by Juergen Knoedlseder * * ----------------------------------------------------------------------- * * * * This program is free software: you can redistribute it and/or modify * @@ -33,7 +33,7 @@ /* __Definitions _________________________________________________________ */ #define CTOBSSIM_NAME "ctobssim" -#define CTOBSSIM_VERSION "00-07-00" +#define CTOBSSIM_VERSION "00-08-00" /***********************************************************************//** -- libgit2 0.21.4