List of all members | Public Member Functions | Private Attributes
utl::Photon Class Reference

#include <Photon.h>

Public Member Functions

const utl::VectorGetDirection () const
 
const utl::PointGetPosition () const
 
int GetSource () const
 source of the photons. Should use Eye::LightSource enum types More...
 
utl::TimeInterval GetTime () const
 
double GetWavelength () const
 
double GetWeight () const
 weight assigned to the photon More...
 
 Photon ()=default
 
 Photon (const utl::Point &p, const utl::Vector &n, const double lambda, const double weight, const int source=0)
 
void SetDirection (const utl::Vector &v)
 
void SetPosition (const utl::Point &p)
 
void SetSource (const int source)
 
void SetTime (const utl::TimeInterval &t)
 
void SetWavelength (const double wl)
 
void SetWeight (const double w)
 source of the photons. Should use Eye::LightSource enum types More...
 

Private Attributes

utl::Vector fDirection
 
utl::Point fPosition
 
int fSource = 0
 
utl::TimeInterval fTime
 
double fWavelength = 0
 
double fWeight = 0
 

Detailed Description

Definition at line 11 of file Photon.h.

Constructor & Destructor Documentation

utl::Photon::Photon ( )
default
utl::Photon::Photon ( const utl::Point p,
const utl::Vector n,
const double  lambda,
const double  weight,
const int  source = 0 
)
inline

Definition at line 16 of file Photon.h.

Member Function Documentation

const utl::Vector& utl::Photon::GetDirection ( ) const
inline
const utl::Point& utl::Photon::GetPosition ( ) const
inline
int utl::Photon::GetSource ( ) const
inline

source of the photons. Should use Eye::LightSource enum types

Definition at line 24 of file Photon.h.

References fSource.

Referenced by MultipleScatterer::AddPhotons(), and TelescopeSimulatorKG2::RayTracer::Trace().

utl::TimeInterval utl::Photon::GetTime ( ) const
inline
double utl::Photon::GetWavelength ( ) const
inline
double utl::Photon::GetWeight ( ) const
inline
void utl::Photon::SetDirection ( const utl::Vector v)
inline
void utl::Photon::SetPosition ( const utl::Point p)
inline
void utl::Photon::SetSource ( const int  source)
inline
void utl::Photon::SetTime ( const utl::TimeInterval t)
inline
void utl::Photon::SetWavelength ( const double  wl)
inline

Definition at line 35 of file Photon.h.

References fWavelength.

Referenced by io::Photon_ROOT::operator>>().

void utl::Photon::SetWeight ( const double  w)
inline

Member Data Documentation

utl::Vector utl::Photon::fDirection
private

Definition at line 42 of file Photon.h.

Referenced by GetDirection(), and SetDirection().

utl::Point utl::Photon::fPosition
private

Definition at line 41 of file Photon.h.

Referenced by GetPosition(), and SetPosition().

int utl::Photon::fSource = 0
private

Definition at line 40 of file Photon.h.

Referenced by GetSource(), and SetSource().

utl::TimeInterval utl::Photon::fTime
private

Definition at line 44 of file Photon.h.

Referenced by GetTime(), and SetTime().

double utl::Photon::fWavelength = 0
private

Definition at line 43 of file Photon.h.

Referenced by GetWavelength(), and SetWavelength().

double utl::Photon::fWeight = 0
private

Definition at line 39 of file Photon.h.

Referenced by GetWeight(), and SetWeight().


The documentation for this class was generated from the following file:

, generated on Tue Sep 26 2023.