28 #ifndef __GyotoPhoton_H_
29 #define __GyotoPhoton_H_
35 namespace Astrobj {
class Generic; }
110 Photon(Photon* orig, size_t i0, int dir, double step_max);
114 Photon(SmartPointer<Metric::Generic> gg, SmartPointer<Astrobj::Generic> obj,
118 Photon(SmartPointer<Metric::Generic> gg, SmartPointer<Astrobj::Generic> obj,
119 SmartPointer<Screen> screen, double d_alpha, double d_delta);
123 virtual double
getMass() const ;
126 void
astrobj(SmartPointer<Astrobj::Generic>);
132 void
metric(SmartPointer<Metric::Generic>);
136 void
spectrometer(SmartPointer<Spectrometer::Generic> spr);
150 void operator=(const Photon&) ;
164 SmartPointer<Astrobj::Generic> obj,
165 const double coord[8]) ;
178 SmartPointer<Astrobj::Generic> obj,
179 SmartPointer<Screen> screen,
189 int
hit(Astrobj::Properties *data=NULL);
209 double
findMin(Functor::Double_constDoubleArray* object,
210 double t1, double t2, double &tmin,
211 double threshold = DBL_MIN) ;
226 void
findValue(Functor::Double_constDoubleArray* object,
228 double tinside, double &toutside) ;
230 #ifdef GYOTO_USE_XERCES
231 virtual void setParameters(FactoryMessenger *fmp) ;
272 virtual void
transmit(size_t i, double t);
310 virtual void transmit(
size_t i,
double t);
virtual std::string className_l() const
"photon"
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition: GyotoObject.h:83
double freq_obs_
Photon's frequency in observer's frame.
Definition: GyotoPhoton.h:72
double getTransmissionMax() const
Get maximum transmission;.
Timelike or null geodesics.
Definition: GyotoWorldline.h:207
double * transmission_
Integrated optical transmissions.
Definition: GyotoPhoton.h:92
SmartPointer< Spectrometer::Generic > spectro_
Observer's spectrometer.
Definition: GyotoPhoton.h:85
A null geodesic transporting light.
Definition: GyotoPhoton.h:52
Classes with an operator() method.
Photon * clone() const
Cloner.
SmartPointer< Astrobj::Generic > Subcontractor(FactoryMessenger *fmp)
A template for Subcontractor_t functions.
Definition: GyotoAstrobj.h:76
SmartPointer< Spectrometer::Generic > spectrometer() const
Get Photon::spectro_.
virtual std::string className() const
"Photon"
Photon * parent_
Parent Photon.
Definition: GyotoPhoton.h:306
SmartPointer< Metric::Generic > metric() const
Get metric.
double const * getTransmission() const
Get Photon::transmission_.
Refine last step of integration in a Photon.
Definition: GyotoPhoton.h:304
void setInitialCondition(SmartPointer< Metric::Generic > gg, SmartPointer< Astrobj::Generic > obj, const double coord[8])
Set or re-set the initial condition prior to integration.
Gyoto ubiquitous macros and typedefs.
Timelike or null geodesics.
Base class for metric description.
int hit(Astrobj::Properties *data=NULL)
Integrate the geodesic.
double findMin(Functor::Double_constDoubleArray *object, double t1, double t2, double &tmin, double threshold=DBL_MIN)
Find minimum of photon–object distance.
void _allocateTransmission()
Allocate Photon::transmission_.
SmartPointer< Gyoto::Astrobj::Generic > object_
The astronomical target.
Definition: GyotoPhoton.h:66
#define GYOTO_WORLDLINE
Declare the Worldline interface wrappers.
Definition: GyotoWorldline.h:139
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43
double transmission_freqobs_
Integrated optical transmission.
Definition: GyotoPhoton.h:78
void resetTransmission()
Set transmission to 1 for each channel as well as scalar transmission.
Pointers performing reference counting.
Definition: GyotoProperty.h:41
Can be pointed to by a SmartPointer.
Definition: GyotoSmartPointer.h:78
virtual double getMass() const
Return 0.
void findValue(Functor::Double_constDoubleArray *object, double value, double tinside, double &toutside)
Find date for which the photon is at a given distance from the object.
Object with properties.
Definition: GyotoObject.h:136
Description of the observer screen.
virtual void transmit(size_t i, double t)
Update transmission in a given channel.
double freqObs() const
Get Photon::freq_obs__.
SmartPointer< Astrobj::Generic > astrobj() const
Get Photon::object_.