Commit 92df60c8d7c911eba03b3bb11368890f9c2dfcb0

Authored by Jürgen Knödlseder
1 parent 262c8961

Make compatible to GammaLib-00-08-00

GammaLib is undergoing a major interface change which requires adaption of the ctools code.
ChangeLog
  1 +2013-02-21 Juergen Knoedlseder <jurgen.knodlseder@irap.omp.eu>
  2 +
  3 + * Version 0.7.0 released
  4 + ========================
  5 +
  6 + Adapt to GammaLib-00-08-00 interface
  7 +
1 8 2012-12-21 Juergen Knoedlseder <jurgen.knodlseder@irap.omp.eu>
2 9  
3 10 * Version 0.6.0 released
... ...
1   -New Features and Important Changes in ctools 00-06-00
  1 +New Features and Important Changes in ctools 00-07-00
2 2  
3 3 Author(s) : Juergen Knoedlseder
4 4  
5   -December 21th, 2012
  5 +February 21th, 2013
6 6  
7 7  
8 8 1. Introduction
... ... @@ -10,6 +10,10 @@ December 21th, 2012
10 10 This document briefly summarizes executable by executable the most
11 11 important changes made since the last release of ctools.
12 12  
  13 +With version 00-08-00, GammaLib has undergone a major interface
  14 +change. The adaption of ctools to this interface changed will not be
  15 +detailed below as they do not impact the functionalities.
  16 +
13 17  
14 18 2. Configuration
15 19 -----------------
... ... @@ -23,20 +27,12 @@ None
23 27  
24 28 4. ctobssim - CTA observation simulation
25 29 ----------------------------------------
26   -Adapt to new GTime interface. The time parameters are now given in the CTA
27   -time reference.
28   -
29   -A bug was corrected that prevented correct usage of the seed value. The
30   -introduction of OpenMP support in version 0.5.0 led to an internal seed
31   -value of 0 event if different seed parameters were specified. The bug
32   -was corrected and the internal seed values that are used are now dumped
33   -into the log file.
  30 +None
34 31  
35 32  
36 33 5. ctselect - CTA event selection
37 34 ---------------------------------
38   -Adapt to new GTime interface. The time parameters are now given in the CTA
39   -time reference.
  35 +None
40 36  
41 37  
42 38 6. ctbin - CTA event binning
... ... @@ -56,11 +52,7 @@ None
56 52  
57 53 9. ctmodel - CTA counts map modelling
58 54 -------------------------------------
59   -The executable ctmodel has been added. ctmodel takes a model XML file
60   -and computes the corresponding model map. The definiton of the model
61   -map is either taken from an input counts map or an observation
62   -definiton file, or from the task parameters with an interface that
63   -is similiar to that of ctbin.
  55 +None
64 56  
65 57  
66 58 10. Examples
... ...
configure.ac
... ... @@ -2,7 +2,7 @@
2 2 # Configuration for ctools - a set of tools for science analysis of CTA #
3 3 # data #
4 4 # ------------------------------------------------------------------------- #
5   -# Copyright (C) 2011-2012 Juergen Knoedlseder #
  5 +# Copyright (C) 2011-2013 Juergen Knoedlseder #
6 6 # ------------------------------------------------------------------------- #
7 7 # #
8 8 # This program is free software: you can redistribute it and/or modify #
... ... @@ -29,7 +29,7 @@
29 29 #############################################################################
30 30 # Initialisation #
31 31 #############################################################################
32   -AC_INIT([ctools], [0.6.0], [jurgen.knodlseder@irap.omp.eu], [ctools])
  32 +AC_INIT([ctools], [0.7.0], [jurgen.knodlseder@irap.omp.eu], [ctools])
33 33 AC_CONFIG_SRCDIR([src/ctselect/ctselect.cpp])
34 34 AC_CONFIG_MACRO_DIR([m4])
35 35 #AM_INIT_AUTOMAKE([gnu no-dependencies])
... ...
ctools.pc.in
... ... @@ -6,9 +6,9 @@ includedir=${prefix}/include
6 6 Name: ctools
7 7 Description: CTA science analysis tools
8 8 URL: http://cta.irap.omp.eu/ctools
9   -Version: 0.6.0
  9 +Version: 0.7.0
10 10 Requires:
11   -Requires.private: GammaLib >= 0.7.0
  11 +Requires.private: GammaLib >= 0.8.0
12 12 Conflicts:
13 13 Cflags: -I${includedir}/ctools
14 14 Libs: -L${libdir} -lctools
... ...
scripts/cssens.py
... ... @@ -347,53 +347,50 @@ class cssens(GApplication):
347 347  
348 348 # Set source
349 349 if type == "point":
350   - spatial = GModelSpatialPtsrc(location)
  350 + spatial = GModelSpatialPointSource(location)
351 351 if fitpos:
352 352 spatial["RA"].free()
353 353 spatial["DEC"].free()
354 354 else:
355 355 spatial["RA"].fix()
356 356 spatial["DEC"].fix()
357   - source = GModelPointSource(spatial, spectrum)
358 357 elif type == "gauss":
359   - radial = GModelRadialGauss(location, self.m_radius)
  358 + spatial = GModelSpatialRadialGauss(location, self.m_radius)
360 359 if fitpos:
361   - radial["RA"].free()
362   - radial["DEC"].free()
363   - radial["Sigma"].free()
  360 + spatial["RA"].free()
  361 + spatial["DEC"].free()
  362 + spatial["Sigma"].free()
364 363 else:
365   - radial["RA"].fix()
366   - radial["DEC"].fix()
367   - radial["Sigma"].fix()
368   - source = GModelExtendedSource(radial, spectrum)
  364 + spatial["RA"].fix()
  365 + spatial["DEC"].fix()
  366 + spatial["Sigma"].fix()
369 367 elif type == "disk":
370   - radial = GModelRadialDisk(location, self.m_radius)
  368 + spatial = GModelSpatialRadialDisk(location, self.m_radius)
371 369 if fitpos:
372   - radial["RA"].free()
373   - radial["DEC"].free()
374   - radial["Radius"].free()
  370 + spatial["RA"].free()
  371 + spatial["DEC"].free()
  372 + spatial["Radius"].free()
375 373 else:
376   - radial["RA"].fix()
377   - radial["DEC"].fix()
378   - radial["Radius"].fix()
379   - source = GModelExtendedSource(radial, spectrum)
  374 + spatial["RA"].fix()
  375 + spatial["DEC"].fix()
  376 + spatial["Radius"].fix()
380 377 elif type == "shell":
381   - radial = GModelRadialShell(location, self.m_radius, self.m_width)
  378 + spatial = GModelSpatialRadialShell(location, self.m_radius, self.m_width)
382 379 if fitpos:
383   - radial["RA"].free()
384   - radial["DEC"].free()
385   - radial["Radius"].free()
386   - radial["Width"].free()
  380 + spatial["RA"].free()
  381 + spatial["DEC"].free()
  382 + spatial["Radius"].free()
  383 + spatial["Width"].free()
387 384 else:
388   - radial["RA"].fix()
389   - radial["DEC"].fix()
390   - radial["Radius"].fix()
391   - radial["Width"].fix()
392   - source = GModelExtendedSource(radial, spectrum)
  385 + spatial["RA"].fix()
  386 + spatial["DEC"].fix()
  387 + spatial["Radius"].fix()
  388 + spatial["Width"].fix()
393 389 else:
394 390 self.log("ERROR: Unknown source type '"+type+"'.\n")
395 391 return None
396   -
  392 + source = GModelSky(spatial, spectrum)
  393 +
397 394 # Set source name
398 395 source.name("Test")
399 396  
... ...
scripts/cstsdist.py
... ... @@ -324,32 +324,29 @@ class cstsdist(GApplication):
324 324  
325 325 # Set source
326 326 if type == "point":
327   - spatial = GModelSpatialPtsrc(location)
  327 + spatial = GModelSpatialPointSource(location)
328 328 if fitpos:
329 329 spatial[0].free()
330 330 spatial[1].free()
331   - source = GModelPointSource(spatial, spectrum)
332 331 elif type == "gauss":
333   - radial = GModelRadialGauss(location, sigma)
  332 + spatial = GModelSpatialRadialGauss(location, sigma)
334 333 if fitpos:
335   - radial[0].free()
336   - radial[1].free()
337   - source = GModelExtendedSource(radial, spectrum)
  334 + spatial[0].free()
  335 + spatial[1].free()
338 336 elif type == "disk":
339   - radial = GModelRadialDisk(location, radius)
  337 + spatial = GModelSpatialRadialDisk(location, radius)
340 338 if fitpos:
341   - radial[0].free()
342   - radial[1].free()
343   - source = GModelExtendedSource(radial, spectrum)
  339 + spatial[0].free()
  340 + spatial[1].free()
344 341 elif type == "shell":
345   - radial = GModelRadialShell(location, radius, width)
  342 + spatial = GModelSpatialRadialShell(location, radius, width)
346 343 if fitpos:
347   - radial[0].free()
348   - radial[1].free()
349   - source = GModelExtendedSource(radial, spectrum)
  344 + spatial[0].free()
  345 + spatial[1].free()
350 346 else:
351 347 self.log("ERROR: Unknown source type '"+type+"'.\n")
352 348 return None
  349 + source = GModelSky(spatial, spectrum)
353 350  
354 351 # Set source name
355 352 source.name("Test")
... ...
src/ctbin/ctbin.cpp
1 1 /***************************************************************************
2 2 * ctbin - CTA data binning tool *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2012 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2013 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -21,7 +21,7 @@
21 21 /**
22 22 * @file ctbin.cpp
23 23 * @brief CTA data binning tool implementation
24   - * @author J. Knoedlseder
  24 + * @author Juergen Knoedlseder
25 25 */
26 26  
27 27 /* __ Includes ___________________________________________________________ */
... ... @@ -277,7 +277,7 @@ void ctbin::run(void)
277 277 m_infiles.push_back("");
278 278  
279 279 // Get CTA observation
280   - GCTAObservation* obs = dynamic_cast<GCTAObservation*>(&m_obs[i]);
  280 + GCTAObservation* obs = dynamic_cast<GCTAObservation*>(m_obs[i]);
281 281  
282 282 // Continue only if observation is a CTA observation
283 283 if (obs != NULL) {
... ... @@ -481,12 +481,9 @@ void ctbin::bin_events(GCTAObservation* obs)
481 481 }
482 482  
483 483 // Setup energy range covered by data
484   - GEnergy emin;
485   - GEnergy emax;
486   - GEbounds ebds;
487   - emin.TeV(m_emin);
488   - emax.TeV(m_emax);
489   - ebds.setlog(emin, emax, m_enumbins);
  484 + GEnergy emin(m_emin, "TeV");
  485 + GEnergy emax(m_emax, "TeV");
  486 + GEbounds ebds(m_enumbins, emin, emax);
490 487  
491 488 // Get Good Time intervals
492 489 GGti gti = obs->events()->gti();
... ... @@ -713,7 +710,7 @@ void ctbin::save_fits(void)
713 710 m_outfile = (*this)["outfile"].filename();
714 711  
715 712 // Get CTA observation from observation container
716   - GCTAObservation* obs = dynamic_cast<GCTAObservation*>(&m_obs[0]);
  713 + GCTAObservation* obs = dynamic_cast<GCTAObservation*>(m_obs[0]);
717 714  
718 715 // Save event list
719 716 save_counts_map(obs, m_outfile);
... ... @@ -744,7 +741,7 @@ void ctbin::save_xml(void)
744 741 for (int i = 0; i < m_obs.size(); ++i) {
745 742  
746 743 // Get CTA observation
747   - GCTAObservation* obs = dynamic_cast<GCTAObservation*>(&m_obs[i]);
  744 + GCTAObservation* obs = dynamic_cast<GCTAObservation*>(m_obs[i]);
748 745  
749 746 // Handle only CTA observations
750 747 if (obs != NULL) {
... ...
src/ctbin/ctbin.hpp
1 1 /***************************************************************************
2 2 * ctbin - CTA data binning tool *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2012 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2013 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -21,7 +21,7 @@
21 21 /**
22 22 * @file ctbin.hpp
23 23 * @brief CTA data binning tool definition
24   - * @author J. Knoedlseder
  24 + * @author Juergen Knoedlseder
25 25 */
26 26  
27 27 #ifndef CTBIN_HPP
... ... @@ -33,7 +33,7 @@
33 33  
34 34 /* __Definitions _________________________________________________________ */
35 35 #define CTBIN_NAME "ctbin"
36   -#define CTBIN_VERSION "00-03-01"
  36 +#define CTBIN_VERSION "00-04-00"
37 37  
38 38  
39 39 /***********************************************************************//**
... ...
src/ctlike/ctlike.cpp
1 1 /***************************************************************************
2 2 * ctlike - CTA maximum likelihood tool *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2012 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2013 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -21,7 +21,7 @@
21 21 /**
22 22 * @file ctlike.cpp
23 23 * @brief CTA maximum likelihood tool implementation
24   - * @author J. Knoedlseder
  24 + * @author Juergen Knoedlseder
25 25 */
26 26  
27 27 /* __ Includes ___________________________________________________________ */
... ... @@ -259,7 +259,7 @@ void ctlike::run(void)
259 259 // Compute number of observed events in all observations
260 260 double num_events = 0.0;
261 261 for (int i = 0; i < m_obs.size(); ++i) {
262   - num_events += m_obs[i].events()->number();
  262 + num_events += m_obs[i]->events()->number();
263 263 }
264 264  
265 265 // Write results into logger
... ...
src/ctlike/ctlike.hpp
1 1 /***************************************************************************
2 2 * ctlike - CTA maximum likelihood tool *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2012 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2013 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -21,7 +21,7 @@
21 21 /**
22 22 * @file ctlike.hpp
23 23 * @brief CTA maximum likelihood tool interface definition
24   - * @author J. Knoedlseder
  24 + * @author Juergen Knoedlseder
25 25 */
26 26  
27 27 #ifndef CTLIKE_HPP
... ... @@ -34,7 +34,7 @@
34 34  
35 35 /* __Definitions _________________________________________________________ */
36 36 #define CTLIKE_NAME "ctlike"
37   -#define CTLIKE_VERSION "00-04-00"
  37 +#define CTLIKE_VERSION "00-05-00"
38 38  
39 39  
40 40 /***********************************************************************//**
... ...
src/ctmodel/ctmodel.cpp
... ... @@ -279,7 +279,7 @@ void ctmodel::run(void)
279 279 m_infiles.push_back("");
280 280  
281 281 // Get CTA observation
282   - GCTAObservation* obs = dynamic_cast<GCTAObservation*>(&m_obs[i]);
  282 + GCTAObservation* obs = dynamic_cast<GCTAObservation*>(m_obs[i]);
283 283  
284 284 // Continue only if observation is a CTA observation
285 285 if (obs != NULL) {
... ... @@ -483,12 +483,9 @@ void ctmodel::setup_obs(void)
483 483 pnt.dir(skydir);
484 484  
485 485 // Setup energy range covered by model
486   - GEnergy emin;
487   - GEnergy emax;
488   - GEbounds ebds;
489   - emin.TeV(m_emin);
490   - emax.TeV(m_emax);
491   - ebds.setlog(emin, emax, m_enumbins);
  486 + GEnergy emin(m_emin, "TeV");
  487 + GEnergy emax(m_emax, "TeV");
  488 + GEbounds ebds(m_enumbins, emin, emax);
492 489  
493 490 // Setup time interval covered by model
494 491 GGti gti;
... ... @@ -571,7 +568,7 @@ void ctmodel::setup_obs(void)
571 568 for (int i = 0; i < m_obs.size(); ++i) {
572 569  
573 570 // Is this observation a CTA observation?
574   - GCTAObservation* obs = dynamic_cast<GCTAObservation*>(&m_obs[i]);
  571 + GCTAObservation* obs = dynamic_cast<GCTAObservation*>(m_obs[i]);
575 572  
576 573 // Yes ...
577 574 if (obs != NULL) {
... ... @@ -792,7 +789,7 @@ void ctmodel::save_fits(void)
792 789 m_outfile = (*this)["outfile"].filename();
793 790  
794 791 // Get CTA observation from observation container
795   - GCTAObservation* obs = dynamic_cast<GCTAObservation*>(&m_obs[0]);
  792 + GCTAObservation* obs = dynamic_cast<GCTAObservation*>(m_obs[0]);
796 793  
797 794 // Save model map
798 795 save_model_map(obs, m_outfile);
... ... @@ -823,7 +820,7 @@ void ctmodel::save_xml(void)
823 820 for (int i = 0; i < m_obs.size(); ++i) {
824 821  
825 822 // Get CTA observation
826   - GCTAObservation* obs = dynamic_cast<GCTAObservation*>(&m_obs[i]);
  823 + GCTAObservation* obs = dynamic_cast<GCTAObservation*>(m_obs[i]);
827 824  
828 825 // Handle only CTA observations
829 826 if (obs != NULL) {
... ...
src/ctmodel/ctmodel.hpp
... ... @@ -33,7 +33,7 @@
33 33  
34 34 /* __Definitions _________________________________________________________ */
35 35 #define CTMODEL_NAME "ctmodel"
36   -#define CTMODEL_VERSION "00-01-01"
  36 +#define CTMODEL_VERSION "00-02-00"
37 37  
38 38  
39 39 /***********************************************************************//**
... ...
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 *
... ... @@ -295,7 +295,7 @@ void ctobssim::run(void)
295 295 for (int i = 0; i < m_obs.size(); ++i) {
296 296  
297 297 // Get CTA observation
298   - GCTAObservation* obs = dynamic_cast<GCTAObservation*>(&m_obs[i]);
  298 + GCTAObservation* obs = dynamic_cast<GCTAObservation*>(m_obs[i]);
299 299  
300 300 // Continue only if observation is a CTA observation
301 301 if (obs != NULL) {
... ... @@ -1036,7 +1036,7 @@ void ctobssim::save_fits(void)
1036 1036 m_outfile = (*this)["outfile"].filename();
1037 1037  
1038 1038 // Get CTA observation from observation container
1039   - GCTAObservation* obs = dynamic_cast<GCTAObservation*>(&m_obs[0]);
  1039 + GCTAObservation* obs = dynamic_cast<GCTAObservation*>(m_obs[0]);
1040 1040  
1041 1041 // Save observation into FITS file
1042 1042 obs->save(m_outfile, clobber());
... ... @@ -1069,7 +1069,7 @@ void ctobssim::save_xml(void)
1069 1069 for (int i = 0; i < m_obs.size(); ++i) {
1070 1070  
1071 1071 // Get CTA observation
1072   - GCTAObservation* obs = dynamic_cast<GCTAObservation*>(&m_obs[i]);
  1072 + GCTAObservation* obs = dynamic_cast<GCTAObservation*>(m_obs[i]);
1073 1073  
1074 1074 // Handle only CTA observations
1075 1075 if (obs != 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 /***********************************************************************//**
... ...
src/ctselect/ctselect.cpp
1 1 /***************************************************************************
2 2 * ctselect - CTA data selection tool *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2012 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2013 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -269,7 +269,7 @@ void ctselect::run(void)
269 269 m_infiles.push_back("");
270 270  
271 271 // Get CTA observation
272   - GCTAObservation* obs = dynamic_cast<GCTAObservation*>(&m_obs[i]);
  272 + GCTAObservation* obs = dynamic_cast<GCTAObservation*>(m_obs[i]);
273 273  
274 274 // Continue only if observation is a CTA observation
275 275 if (obs != NULL) {
... ... @@ -872,7 +872,7 @@ void ctselect::save_fits(void)
872 872 m_outfile = (*this)["outfile"].filename();
873 873  
874 874 // Get CTA observation from observation container
875   - GCTAObservation* obs = dynamic_cast<GCTAObservation*>(&m_obs[0]);
  875 + GCTAObservation* obs = dynamic_cast<GCTAObservation*>(m_obs[0]);
876 876  
877 877 // Save event list
878 878 save_event_list(obs, m_infiles[0], m_outfile);
... ... @@ -902,7 +902,7 @@ void ctselect::save_xml(void)
902 902 for (int i = 0; i < m_obs.size(); ++i) {
903 903  
904 904 // Get CTA observation
905   - GCTAObservation* obs = dynamic_cast<GCTAObservation*>(&m_obs[i]);
  905 + GCTAObservation* obs = dynamic_cast<GCTAObservation*>(m_obs[i]);
906 906  
907 907 // Handle only CTA observations
908 908 if (obs != NULL) {
... ...
src/ctselect/ctselect.hpp
1 1 /***************************************************************************
2 2 * ctselect - CTA data selection tool *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2012 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2013 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -35,7 +35,7 @@
35 35  
36 36 /* __Definitions _________________________________________________________ */
37 37 #define CTSELECT_NAME "ctselect"
38   -#define CTSELECT_VERSION "00-04-00"
  38 +#define CTSELECT_VERSION "00-05-00"
39 39  
40 40  
41 41 /***********************************************************************//**
... ...
src/ctskymap/ctskymap.cpp
1 1 /***************************************************************************
2 2 * ctskymap - CTA sky mapping tool *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2011 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 *
... ... @@ -21,7 +21,7 @@
21 21 /**
22 22 * @file ctskymap.cpp
23 23 * @brief CTA sky mapping tool implementation
24   - * @author J. Knoedlseder
  24 + * @author Juergen Knoedlseder
25 25 */
26 26  
27 27 /* __ Includes ___________________________________________________________ */
... ... @@ -272,7 +272,7 @@ void ctskymap::run(void)
272 272 for (int i = 0; i < m_obs.size(); ++i) {
273 273  
274 274 // Get CTA observation
275   - GCTAObservation* obs = dynamic_cast<GCTAObservation*>(&m_obs[i]);
  275 + GCTAObservation* obs = dynamic_cast<GCTAObservation*>(m_obs[i]);
276 276  
277 277 // Continue only if observation is a CTA observation
278 278 if (obs != NULL) {
... ...
src/ctskymap/ctskymap.hpp
1 1 /***************************************************************************
2 2 * ctskymap - CTA sky mapping tool *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010-2011 by Juergen Knoedlseder *
  4 + * copyright (C) 2010-2013 by Juergen Knoedlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7 7 * This program is free software: you can redistribute it and/or modify *
... ... @@ -21,7 +21,7 @@
21 21 /**
22 22 * @file ctskymap.hpp
23 23 * @brief CTA sky mapping tool definition
24   - * @author J. Knoedlseder
  24 + * @author Juergen Knoedlseder
25 25 */
26 26  
27 27 #ifndef CTSKYMAP_HPP
... ... @@ -33,7 +33,7 @@
33 33  
34 34 /* __Definitions _________________________________________________________ */
35 35 #define CTSKYMAP_NAME "ctskymap"
36   -#define CTSKYMAP_VERSION "00-01-00"
  36 +#define CTSKYMAP_VERSION "00-02-00"
37 37  
38 38  
39 39 /***********************************************************************//**
... ...