GammaLib  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

 gammalib
 

Functions

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

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

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.

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.

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.

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.

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.