-
…ll GModelData derivatives
-
…or the observation Python module. The classname() method returns in a human readable format the class name. This method is needed for full automatic typecasting in Python. Full automatic typecasting has for the moment been implemented for the observation module.
-
Automatic type casting was implemented in the GObservations.i interface using the runtime type casting information that is maintained by the SWIG interface. The function relies on a newly introduced type() method in GObservation that provides as a string the class type. The former GCTAObservation type casting constructor has been removed as it now should be obsolete.
-
The CTA response was refactored. GCTAResponse was renamed GCTAResponseIrf, and GCTAResponse became an abstract base class for all possible CTA response functions. GCTAResponseIrf derives from GCTAResponse. Also GCTAResponseCube derives from GCTAResponse. To make this work, the GObservation::response() method now returns a pointer instead of a reference. The interface definition is such that the pointer never can be NULL. The code has been adapted to comply to this new interface. Upon reading an XML file, GCTAObservation now determines the appropriate reponse type and calls its reader. If no response is specified in the XML file, GCTAResponseIrf will be used by default.
-
Adapt the code to the usage of GCaldb for response access.
-
Conflicts: inst/cta/include/GCTAResponse.hpp inst/cta/src/GCTAResponse.cpp
-
Now, GCaldb only reads the CALDB environment variable when needed. This allows changing the CALDB environment variable during runtime. Rename GCaldb::dir to GCaldb::rootdir.
-
This change was prompted by the addition of the ctobssim option to apply energy dispersion. Even if an instrument has an energy dispersion, it is useful to be able to apply it or not. So the meaning now is roughly this: use_edisp = (has_edisp && apply_edisp) although the apply_edisp flag has so far been only added to GCTAResponse, use_edisp = False. GResponse::has_tdisp() was also renamed to GResponse::use_tdisp() for consistency.
-
The coding and design conventions (CDC) document was also updated.
-
The GCOMPointing class is now obsolete as no GPointing class is required anymore. The pointing can now simply be stored in a GSkyDir object.
-
All methods returning a solid angle are now named solidangle().
-
The abstract pointing class has been removed as so far no abstract pointing interface is needed.
-
GEvents GEventList The clobber argument of the save() method is now passed as const reference. GEventCube The clobber argument of the save() method and the axis argument of the naxis() method are now passed as const references.
-
The GFits class now derives from GContainer and implements all generic container class methods (at(), size(), isempty(), set(), append(), insert(), remove(), reserve(), extend()). The hashdu() method has been renamed to contains() for compliance with other container classes. The hdu() methods have been renamed to at(), also for compliance. Boolean arguments are now passed as const references, and members are returned as const references. HDU access operators[] have been implemented to access FITS extensions without range checking.
-
GTestSuites The GTestSuites class now derives from GContainer and implements the usual container class methods (at(), size(), isempty(), set(), append(), insert(), remove(), reserve() and extend()). The operator[] now returns pointers to GTestSuite. The name() and timestamp() methods now return const references. GTestSuite The GTestSuite class now derives from GBase. This implies that the clone() method needs to be implemented for derived classes. The test_assert() method now takes a const reference for the boolean argument. The name(), errors(), failures(), and timestamp() methods return const references. The obsolete add_test() method has been removed. The unit tests have been updated to conform to the new interfaces.
-
The GSkyPixel class now handles 1D and 2D sky indices. This made the distinctive 1D and 2D methods in GSkyProjection and the derived classes obsolete. Now, all projection classes take GSkyPixel as argument. The GSkymap class now uses the universal GSkyPixel class. Methods have been renamed consistently. An integer index is now consistently called "sky map index" and the GSkyPixel object is named a "sky map pixel". Methods operating on indices contain now "inx", method operating on sky map pixels "pix".
-
The GWcslib class has been renamed to GWcs for consistency with the naming convention for GammaLib base classes. All WCS implementations derive now from GWcs. The code has been adapted to this new naming convention.
-
After renaming GWcs to GSkyProjection the code has been adapted to the new naming convention.
-
The old scheme with the deadtime correction in the base class led to some irf/npred methods having deadtime correction and others without correction. This definitely was a source of confusion and potential errors. Now, deadtime corrections have to be done at the instrument level, enhancing clarity of the interfaces and flexibility, at the expense of some burden on the instrument specific response class implementation that now has to take care of the proper handling of deadtime.
-
…ble in unit tests and use PACKAGE_SOURCE determine in configure instead of abs_top_srcdir as the latter does not exist on older systems.
-
The previous scheme had some risk of running out of the response array.