arfII class public methods

  •   arfII()
    
      arfII(const arfII& a)
    
      arfII(const string filename, const Integer ARFnumber = 1,
            const IntegerVector& RowNumber = IntegerVector())
    

    Constructors. The first is the default constructor and the other two are constructor versions of the copy and read methods described below.

  •   ~arfII()
    

    Default destructor.

  •  Integer read(string filename, Integer ARFnumber = 1, 
                  IntegerVector& RowNumber = IntegerVector())
    

    Read an ARF type II file into an object. If ARFnumber is given then read from the SPECRESP extension with EXTVER=ARFnumber. If the RowNumber array is given then read those in the extension otherwise read all the arfs.

  •  arfII& copy(const arfII&)
    
     arfII& operator= (const arfII&)
    

    Deep copy.

  •  arf get(Integer number) const
    

    Get arf object (counts from zero).

  •  void push(arf ea)
    

    Push arf object into arfII object

  •  string disp() const
    

    Display information about the ARFs. - return as a string.

  •  void clear()
    

    Clear information from the ARFs.

  •  string check() const
    

    Check completeness and consistency of information in the arfs, if there is a problem then return diagnostic in string.

  •  Integer write(const string filename, const string sourceFilename="")
    

    Write ARFs as type II file. Note that if the output filename exists and already has a SPECRESP extension then this method will write an additional SPECRESP extension provided no sourceFilename is given. If sourceFilename is given then the primary HDU and any other extra HDUs are copied into the output file as well as any extra keywords or columns in the spectrum extension.

  •  Integer NumberARFs() const
    
  •  Integer getNumberARFs() const
    

    Return the number of ARFs in the object.


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

Last modified: Wednesday, 28-Aug-2024 16:49:31 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.