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

Photon class definition. More...

#include <string>
#include "GBase.hpp"
#include "GSkyDir.hpp"
#include "GEnergy.hpp"
#include "GTime.hpp"

Go to the source code of this file.

Classes

class  GPhoton
 Class that handles photons. More...
 

Functions

bool operator== (const GPhoton &a, const GPhoton &b)
 Equality friend operator.
 
bool operator!= (const GPhoton &a, const GPhoton &b)
 Non-equality friend operator.
 

Detailed Description

Photon class definition.

Author
Juergen Knoedlseder

Definition in file GPhoton.hpp.

Function Documentation

◆ operator!=()

bool operator!= ( const GPhoton & a,
const GPhoton & b )
inline

Non-equality friend operator.

Parameters
[in]aFirst photon.
[in]bSecond photon.
Returns
True is first photon is not identical to second photon

Definition at line 227 of file GPhoton.hpp.

◆ operator==()

bool operator== ( const GPhoton & a,
const GPhoton & b )
inline

Equality friend operator.

Parameters
[in]aFirst photon.
[in]bSecond photon.
Returns
True is first photon is identical to second photon

Definition at line 212 of file GPhoton.hpp.