Commit e8b56c8737802d1be88a62af160adf69f0c3799d

Authored by knodlseder
1 parent e708dbc3

add offset() and energy() methods

inst/lat/include/GLATMeanPsf.hpp
1 1 /***************************************************************************
2 2 * GLATMeanPsf.hpp - Fermi LAT mean PSF *
3 3 * ----------------------------------------------------------------------- *
4   - * copyright (C) 2010 by Jurgen Knodlseder *
  4 + * copyright (C) 2010-2011 by Jurgen Knodlseder *
5 5 * ----------------------------------------------------------------------- *
6 6 * *
7   - * This program is free software; you can redistribute it and/or modify *
8   - * it under the terms of the GNU General Public License as published by *
9   - * the Free Software Foundation; either version 2 of the License, or *
10   - * (at your option) any later version. *
  7 + * This program is free software: you can redistribute it and/or modify *
  8 + * it under the terms of the GNU General Public License as published by *
  9 + * the Free Software Foundation, either version 3 of the License, or *
  10 + * (at your option) any later version. *
  11 + * *
  12 + * This program is distributed in the hope that it will be useful, *
  13 + * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  14 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  15 + * GNU General Public License for more details. *
  16 + * *
  17 + * You should have received a copy of the GNU General Public License *
  18 + * along with this program. If not, see <http://www.gnu.org/licenses/>. *
11 19 * *
12 20 ***************************************************************************/
13 21 /**
... ... @@ -65,6 +73,8 @@ public:
65 73 void set(const GSkyDir& dir, const GLATObservation& obs);
66 74 int noffsets(void) const { return m_offset.size(); }
67 75 int nenergies(void) const { return m_energy.size(); }
  76 + double offset(const int& inx) { return m_offset[inx]; }
  77 + double energy(const int& inx) { return m_energy[inx]; }
68 78 GSkyDir dir(void) const { return m_dir; }
69 79 std::string name(void) const { return m_name; }
70 80 void name(const std::string& name) { m_name=name; }
... ...