Global defines

HEASP uses the include file “heasp.h” to set a number of global definitions.

typedef int Integer;
typedef double Real;

set Integer and Real which are used in all classes. It also sets some helpful definitions of vectors and arrays

typedef std::valarray<Real> RealArray;
typedef std::vector<Real> RealVector;
typedef std::vector<Integer> IntegerVector;
typedef std::vector<string> StringVector;

This include file also contains the enumeration all error statuses.

enum{OK, NoSuchFile, NoData, NoChannelData, NoStatError, CannotCreate,
     NoEnergLo, NoEnergHi, NoSpecresp, NoEboundsExt, NoEmin, NoEmax,
     NoMatrixExt, NoNgrp, NoFchan, NoNchan, NoMatrix, CannotCreateMatrixExt,
     CannotCreateEboundsExt, InconsistentGrouping, InconsistentEnergies,
     InconsistentChannels, InconsistentUnits, UnknownXUnits, UnknownYUnits,
     InconsistentNumelt, InconsistentNumgrp, InconsistentNumTableParams,
     TableParamValueOutsideRange, VectorIndexOutsideRange, 
     InconsistentKeywordValues, CannotCopyColumn, CannotWriteMatrix,
     InconsistentTableFilter, NoChannels, InconsistentChannelMin,
     InconsistentFChan, InconsistentNChan};




HEASARC Home | Observatories | Archive | Calibration | Software | Tools | Students/Teachers/Public

Last modified: Wednesday, 28-Aug-2024 16:49:29 EDT

HEASARC Staff Scientist Position - Applications are now being accepted for a Staff Scientist with significant experience and interest in the technical aspects of astrophysics research, to work in the High Energy Astrophysics Science Archive Research Center (HEASARC) at NASA Goddard Space Flight Center (GSFC) in Greenbelt, MD. Refer to the AAS Job register for full details.