GammaLib 2.0.0
Loading...
Searching...
No Matches
GPha.hpp File Reference

XSPEC Pulse Height Analyzer class definition. More...

#include <string>
#include "GBase.hpp"
#include "GEbounds.hpp"
#include "GFilename.hpp"
#include "GNdarray.hpp"
#include "GFitsHeader.hpp"

Go to the source code of this file.

Classes

class  GPha
 Pulse Height Analyzer class. More...
 

Namespaces

namespace  gammalib
 

Functions

GPha operator+ (const GPha &a, const GPha &b)
 Spectrum addition operator friend.
 
GPha operator- (const GPha &a, const GPha &b)
 Spectrum subtraction operator friend.
 
GPha operator* (const GPha &pha, const double &scale)
 Spectrum scaling operator friend.
 
GPha operator* (const double &scale, const GPha &pha)
 Spectrum scaling operator friend.
 
GPha operator/ (const GPha &pha, const double &scale)
 Spectrum division operator friend.
 

Variables

const std::string gammalib::extname_pha = "SPECTRUM"
 

Detailed Description

XSPEC Pulse Height Analyzer class definition.

Author
Juergen Knoedlseder

Definition in file GPha.hpp.

Function Documentation

◆ operator*() [1/2]

GPha operator* ( const double & scale,
const GPha & pha )
inline

Spectrum scaling operator friend.

Parameters
[in]scaleScale factor.
[in]phaPulse Height Analyzer spectrum.
Returns
Scaled Pulse Height Analyzer spectrum.

Definition at line 633 of file GPha.hpp.

◆ operator*() [2/2]

GPha operator* ( const GPha & pha,
const double & scale )
inline

Spectrum scaling operator friend.

Parameters
[in]phaPulse Height Analyzer spectrum.
[in]scaleScale factor.
Returns
Scaled Pulse Height Analyzer spectrum.

Definition at line 617 of file GPha.hpp.

◆ operator+()

GPha operator+ ( const GPha & a,
const GPha & b )
inline

Spectrum addition operator friend.

Parameters
[in]aFirst Pulse Height Analyzer spectrum.
[in]bSecond Pulse Height Analyzer spectrum.
Returns
Sum of Pulse Height Analyzer spectra.

Definition at line 585 of file GPha.hpp.

◆ operator-()

GPha operator- ( const GPha & a,
const GPha & b )
inline

Spectrum subtraction operator friend.

Parameters
[in]aFirst Pulse Height Analyzer spectrum.
[in]bSecond Pulse Height Analyzer spectrum.
Returns
Difference of Pulse Height Analyzer spectra.

Definition at line 601 of file GPha.hpp.

◆ operator/()

GPha operator/ ( const GPha & pha,
const double & scale )
inline

Spectrum division operator friend.

Parameters
[in]phaPulse Height Analyzer spectrum.
[in]scaleDivision factor.
Returns
Divided Pulse Height Analyzer spectrum.

Definition at line 649 of file GPha.hpp.