73 const GTime& time,
const int& mc_id)
135 if (
this != &photon) {
202 result.append(
"GPhoton(");
void copy_members(const GPhoton &photon)
Copy class members.
GTime m_time
Photon arrival time.
double dec_deg(void) const
Returns Declination in degrees.
std::string print(const GChatter &chatter=NORMAL) const
Print photon.
GEnergy m_energy
Photon energy.
void free_members(void)
Delete class members.
void clear(void)
Clear time.
const int & mc_id(void) const
Return photon Monte-Carlo identifier.
Class that handles photons.
std::string print(const GChatter &chatter=NORMAL) const
Print energy.
void clear(void)
Clear photon.
virtual ~GPhoton(void)
Destructor.
double ra_deg(void) const
Returns Right Ascension in degrees.
GPhoton(void)
Void constructor.
const GTime & time(void) const
Return photon time.
void init_members(void)
Initialise class members.
std::string print(const GChatter &chatter=NORMAL) const
Print time.
GPhoton * clone(void) const
Clone photon.
int m_mc_id
Monte Carlo simulation origin.
void clear(void)
Clear sky direction.
GSkyDir m_dir
Photon arrival direction.
const GEnergy & energy(void) const
Return photon energy.
const GSkyDir & dir(void) const
Return photon sky direction.
void clear(void)
Clear instance.
Class that handles energies in a unit independent way.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.
GPhoton & operator=(const GPhoton &photon)
Assignment operator.