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