phaII class public methods

  •   phaII()
    
      phaII(const phaII& a)
    
      phaII(const string filename, const Integer PHAnumber = 1,
            const IntegerVector& SpectrumNumber = IntegerVector())
    

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

  •   ~phaII()
    

    Default destructor.

  •  Integer read(const string filename, const Integer PHAnumber = 1, 
                  const IntegerVector& SpectrumNumber = IntegerVector())
    

    Read a PHA type II file into an object. If PHAnumber is given then read from the SPECTRUM extension with EXTVER=PHAnumber. If the SpectrumNumber array is given then read those rows in the extension otherwise read all spectra.

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

    Deep copy.

  •  pha get(Integer number) const
    

    Get pha object (counts from zero).

  •  pha push(pha sp)
    

    Push pha object into phaII object

  •  string disp() const
    

    Display information about the spectra - return as a string.

  •  void clear()
    

    Clear information about the spectra

  •  string check() const
    

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

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

    Write spectra as type II file. Note that if the output filename exists and already has a SPECTRUM extension then this method will write an additional SPECTRUM extension. 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 NumberSpectra()
    
     Integer getNumberSpectra()
    

    Return the number of spectra in the object.


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

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