GLATEdisp.i 3.12 KB
/***************************************************************************
 *            GLATEdisp.i - Fermi/LAT energy dispersion class              *
 * ----------------------------------------------------------------------- *
 *  copyright (C) 2012-2016 by Juergen Knoedlseder                         *
 * ----------------------------------------------------------------------- *
 *                                                                         *
 *  This program is free software: you can redistribute it and/or modify   *
 *  it under the terms of the GNU General Public License as published by   *
 *  the Free Software Foundation, either version 3 of the License, or      *
 *  (at your option) any later version.                                    *
 *                                                                         *
 *  This program is distributed in the hope that it will be useful,        *
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of         *
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
 *  GNU General Public License for more details.                           *
 *                                                                         *
 *  You should have received a copy of the GNU General Public License      *
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.  *
 *                                                                         *
 ***************************************************************************/
/**
 * @file GLATEdisp.i
 * @brief Fermi/LAT energy dispersion class definition
 * @author Juergen Knoedlseder
 */
%{
/* Put headers and other declarations here that are needed for compilation */
#include "GLATEdisp.hpp"
%}


/***********************************************************************//**
 * @class GLATEdisp
 *
 * @brief Interface for the Fermi/LAT energy dispersion
 ***************************************************************************/
class GLATEdisp : public GBase {

public:
    // Constructors and destructors
    GLATEdisp(void);
    explicit GLATEdisp(const GFilename& filename);
    GLATEdisp(const GLATEdisp& edisp);
    virtual ~GLATEdisp(void);

    // Operators
    //double operator()(const double& logE, const double& ctheta);

    // Methods
    void         clear(void);
    GLATEdisp*   clone(void) const;
    std::string  classname(void) const;
    void         load(const GFilename& filename);
    void         save(const GFilename& filename,
                      const bool&      clobber = false);
    void         read(const GFits& file);
    void         write(GFits& file) const;
    int          size(void) const;
    int          nenergies(void) const;
    int          ncostheta(void) const;
    //double       costhetamin(void) const;
    //void         costhetamin(const double& ctheta);
    bool         has_phi(void) const;
};


/***********************************************************************//**
 * @brief GLATEdisp class extension
 ***************************************************************************/
%extend GLATEdisp {
    GLATEdisp copy() {
        return (*self);
    }
};