28#ifndef __GyotoPhoton_H_
29#define __GyotoPhoton_H_
35 namespace Astrobj {
class Generic; }
111 Photon(Photon* orig, size_t i0, int dir, double step_max);
115 Photon(SmartPointer<Metric::Generic> gg, SmartPointer<Astrobj::Generic> obj,
119 Photon(SmartPointer<Metric::Generic> gg, SmartPointer<Astrobj::Generic> obj,
120 SmartPointer<Screen> screen, double d_alpha, double d_delta);
133 void
metric(SmartPointer<Metric::Generic>);
167 SmartPointer<Astrobj::Generic> obj,
168 const double coord[8]) ;
190 SmartPointer<Astrobj::Generic> obj,
191 const double coord[8],
192 const double Ephi[4],
193 const double Etheta[4]) ;
208 SmartPointer<Astrobj::Generic> obj,
209 SmartPointer<Screen> screen,
219 int
hit(Astrobj::Properties *data=NULL);
239 double
findMin(Functor::Double_constDoubleArray* object,
240 double t1, double t2, double &tmin,
241 double threshold = DBL_MIN) ;
256 void
findValue(Functor::Double_constDoubleArray* object,
258 double tinside, double &toutside) ;
260#ifdef GYOTO_USE_XERCES
305 virtual void
transfer(double * Inu, double * Qnu, double * Unu, double * Vnu,
306 double const * aInu, double const * aQnu,
307 double const * aUnu, double const * aVnu,
308 double const * rQnu, double const * rUnu, double const * rVnu) ;
348 virtual void transfer(
double * Inu,
double * Qnu,
double * Unu,
double * Vnu,
349 double const * aInu,
double const * aQnu,
350 double const * aUnu,
double const * aVnu,
351 double const * rQnu,
double const * rUnu,
double const * rVnu) ;
Gyoto ubiquitous macros and typedefs.
Classes with an operator() method.
Base class for metric description.
#define GYOTO_OBJECT_THREAD_SAFETY
Declare virtual bool isThreadSafe() const.
Definition: GyotoObject.h:99
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition: GyotoObject.h:84
Description of the observer screen.
Timelike or null geodesics.
#define GYOTO_WORLDLINE
Declare the Worldline interface wrappers.
Definition: GyotoWorldline.h:156
Object with properties.
Definition: GyotoObject.h:152
Refine last step of integration in a Photon.
Definition: GyotoPhoton.h:340
Refined(Photon *parent, size_t i, int dir, double step_max)
Constructor.
virtual void transfer(double *Inu, double *Qnu, double *Unu, double *Vnu, double const *aInu, double const *aQnu, double const *aUnu, double const *aVnu, double const *rQnu, double const *rUnu, double const *rVnu)
Perform one step of radiative transfer.
virtual void transmit(size_t i, double t)
Update transmission both in *this and in *parent_.
Photon * parent_
Parent Photon.
Definition: GyotoPhoton.h:342
A null geodesic transporting light.
Definition: GyotoPhoton.h:56
double freq_obs_
Photon's frequency in observer's frame.
Definition: GyotoPhoton.h:72
virtual std::string className_l() const
"photon"
void _allocateTransmission()
Allocate Photon::transmission_.
SmartPointer< Metric::Generic > metric() const
Get metric.
void resetTransmission()
Set transmission to 1 for each channel as well as scalar transmission.
SmartPointer< Spectrometer::Generic > spectrometer() const
Get Photon::spectro_.
int hit(Astrobj::Properties *data=NULL)
Integrate the geodesic.
virtual double getMass() const
Return 0.
Photon * clone() const
Cloner.
double getTransmissionMax() const
Get maximum transmission;.
void setInitialCondition(SmartPointer< Metric::Generic > gg, SmartPointer< Astrobj::Generic > obj, const double coord[8])
Set or re-set the initial condition prior to integration.
double transmission_freqobs_
Integrated optical transmission.
Definition: GyotoPhoton.h:78
virtual void setParameters(FactoryMessenger *fmp)
Main loop for parsing Properties from XML description.
double * transmission_
Integrated optical transmissions.
Definition: GyotoPhoton.h:92
virtual void transmit(size_t i, double t)
Update transmission in a given channel.
virtual void transfer(double *Inu, double *Qnu, double *Unu, double *Vnu, double const *aInu, double const *aQnu, double const *aUnu, double const *aVnu, double const *rQnu, double const *rUnu, double const *rVnu)
Perform one step of radiative transfer.
double freqObs() const
Get Photon::freq_obs__.
SmartPointer< Spectrometer::Generic > spectro_
Observer's spectrometer.
Definition: GyotoPhoton.h:85
virtual std::string className() const
"Photon"
SmartPointer< Astrobj::Generic > astrobj() const
Get Photon::object_.
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.
double findMin(Functor::Double_constDoubleArray *object, double t1, double t2, double &tmin, double threshold=DBL_MIN)
Find minimum of photon–object distance.
SmartPointer< Gyoto::Astrobj::Generic > object_
The astronomical target.
Definition: GyotoPhoton.h:66
double const * getTransmission() const
Get Photon::transmission_.
Can be pointed to by a SmartPointer.
Definition: GyotoSmartPointer.h:81
Pointers performing reference counting.
Definition: GyotoSmartPointer.h:135
Timelike or null geodesics.
Definition: GyotoWorldline.h:228
SmartPointer< Metric::Generic > metric() const
Get metric.
void setInitialCondition(SmartPointer< Metric::Generic > gg, const double coord[8], const int dir, double const Ephi[4], double const Etheta[4])
Set or re-set the initial condition prior to integration.
SmartPointer< Astrobj::Generic > Subcontractor(FactoryMessenger *fmp, std::vector< std::string > const &plugin)
A template for Subcontractor_t functions.
Definition: GyotoAstrobj.h:76
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43