57 const int&
mc_id = -1);
71 const int&
mc_id(
void)
const;
Definition of interface for all GammaLib classes.
Energy value class definition.
bool operator!=(const GPhoton &a, const GPhoton &b)
Non-equality friend operator.
bool operator==(const GPhoton &a, const GPhoton &b)
Equality friend operator.
Sky direction class interface definition.
Time class interface definition.
Interface class for all GammaLib classes.
Class that handles energies in a unit independent way.
Class that handles photons.
void clear(void)
Clear photon.
GPhoton & operator=(const GPhoton &photon)
Assignment operator.
GPhoton(void)
Void constructor.
std::string print(const GChatter &chatter=NORMAL) const
Print photon.
const GTime & time(void) const
Return photon time.
GSkyDir m_dir
Photon arrival direction.
friend bool operator!=(const GPhoton &a, const GPhoton &b)
Non-equality friend operator.
void init_members(void)
Initialise class members.
int m_mc_id
Monte Carlo simulation origin.
const GSkyDir & dir(void) const
Return photon sky direction.
const int & mc_id(void) const
Return photon Monte-Carlo identifier.
void free_members(void)
Delete class members.
std::string classname(void) const
Return class name.
GTime m_time
Photon arrival time.
GEnergy m_energy
Photon energy.
GPhoton * clone(void) const
Clone photon.
virtual ~GPhoton(void)
Destructor.
friend bool operator==(const GPhoton &a, const GPhoton &b)
Equality friend operator.
const GEnergy & energy(void) const
Return photon energy.
void copy_members(const GPhoton &photon)
Copy class members.
double dist(const GSkyDir &dir) const
Compute angular distance between sky directions in radians.