• A new parameter was introduce to specify the acceptable function decrease in an iteration. Acceptable means that the new parameters are kept for continuing the iterations. This behaviour existed already before, but a low threshold of 1e-6 did not really activate it. Now the threshold was raised to 1.0 and this help ctlike to converge quicker. Methods accept_dec() have been implemented to get and set the acceptable threshold.
    Jürgen Knödlseder authored
     
    Browse Dir »




  • 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.
    Jürgen Knödlseder authored
     
    Browse Dir »


  • 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.
    Christoph Deil authored
     
    Browse Dir »






  • The GFitsHeader class now derives from GContainer and implements all generic container class methods (at(), size(), isempty(), append(), insert(), remove(), reserve(), extend()). The hascard() methods have been renamed to contains() for compliance with other container classes. The card() methods have been renamed to at(), also for compliance. The card access operators and methods now return the cards by reference. Card access operators[] have been implemented to access header cards without range checking.
    
    The cards are now stored using a std::vector structure.
    Jürgen Knödlseder authored
     
    Browse Dir »

  • 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.
    Jürgen Knödlseder authored
     
    Browse Dir »
  • 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.
    Jürgen Knödlseder authored
     
    Browse Dir »

  • A major revision of the GFitsTable class interface has been done, making it more similar to the interface of other container classes. In particular, the column access operator now returns a pointer instead of a reference, preventing code slicing. The set() method has been introduced to set columns in a table. The append_column() and insert_column() methods have been renamed to append() and insert() as they act on columns, and a table is a column container. Some arguments or return values are now also declared as const references. A size() method has been added that return the number of table columns.
    
    As the GFitsTable class is widely used throughout GammaLib, a number of classes had to be adapted to this new interface.
    Jürgen Knödlseder authored
     
    Browse Dir »





  • Add GChatter argument to print() method.
    
    The print() method now takes an argument of type GChatter to control the chattiness of the output in a homogenous manner.
    Pass NORMAL chatter level in __str__ method.
    Add chatter argument to print() methods.
    Use GLog::chatter() method to control the chattiness of the log stream operator.
    Add chatter() methods and provide member access through const references.
    Add chatter() methods, provide member access through const references, and declare one liners as inline methods.
    
    The chatter() methods control the new m_chatter attribute that is used to control the chattiness of the object's print() methods.
    name() and version() methods return const references.
    logFileOpen() method now sets the chattiness from the applications's chatter parameter, and name() and version() methods now return a const reference.
    Jürgen Knödlseder authored
     
    Browse Dir »