GammaLib  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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. More...
 
bool operator!= (const GPhoton &a, const GPhoton &b)
 Non-equality friend operator. More...
 

Detailed Description

Photon class definition.

Author
Juergen Knoedlseder

Definition in file GPhoton.hpp.

Function Documentation

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.

References GSkyDir::dist(), GPhoton::m_dir, GPhoton::m_energy, and GPhoton::m_time.

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.

References GSkyDir::dist(), GPhoton::m_dir, GPhoton::m_energy, and GPhoton::m_time.