Commit a89a318dd91358f8197f1dfd8cdd450bcdabce71
1 parent
74af6b7c
Revert "Revert "Adapt to new GammaLib-00-08-00 interface.""
This reverts commit 74af6b7c3902e2286d5c2f57a799c5e9e704b742.
Showing
2 changed files
with
5 additions
and
5 deletions
src/ctobssim/ctobssim.cpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * ctobssim - CTA observation simulator tool * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2011-2012 by Juergen Knoedlseder * | |
| 4 | + * copyright (C) 2011-2013 by Juergen Knoedlseder * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * 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, |
| 690 | 690 | |
| 691 | 691 | // Get sky model (NULL if not a sky model) |
| 692 | 692 | const GModelSky* model = |
| 693 | - dynamic_cast<const GModelSky*>(models[i]); | |
| 693 | + dynamic_cast<const GModelSky*>(&models[i]); | |
| 694 | 694 | |
| 695 | 695 | // If we have a sky model then simulate photons |
| 696 | 696 | if (model != NULL) { |
| ... | ... | @@ -868,7 +868,7 @@ void ctobssim::simulate_background(GCTAObservation* obs, |
| 868 | 868 | |
| 869 | 869 | // Get model (NULL if not a radial acceptance model) |
| 870 | 870 | const GCTAModelRadialAcceptance* model = |
| 871 | - dynamic_cast<const GCTAModelRadialAcceptance*>(models[i]); | |
| 871 | + dynamic_cast<const GCTAModelRadialAcceptance*>(&models[i]); | |
| 872 | 872 | |
| 873 | 873 | // If we have a radial acceptance model then simulate events |
| 874 | 874 | if (model != NULL) { | ... | ... |
src/ctobssim/ctobssim.hpp
| 1 | 1 | /*************************************************************************** |
| 2 | 2 | * ctobssim - CTA observation simulator tool * |
| 3 | 3 | * ----------------------------------------------------------------------- * |
| 4 | - * copyright (C) 2011-2012 by Juergen Knoedlseder * | |
| 4 | + * copyright (C) 2011-2013 by Juergen Knoedlseder * | |
| 5 | 5 | * ----------------------------------------------------------------------- * |
| 6 | 6 | * * |
| 7 | 7 | * This program is free software: you can redistribute it and/or modify * |
| ... | ... | @@ -33,7 +33,7 @@ |
| 33 | 33 | |
| 34 | 34 | /* __Definitions _________________________________________________________ */ |
| 35 | 35 | #define CTOBSSIM_NAME "ctobssim" |
| 36 | -#define CTOBSSIM_VERSION "00-07-00" | |
| 36 | +#define CTOBSSIM_VERSION "00-08-00" | |
| 37 | 37 | |
| 38 | 38 | |
| 39 | 39 | /***********************************************************************//** | ... | ... |