GLAMERDOC++
Gravitational Lensing Code Library
|
7 #ifndef SERSIC_SOURCE_H_
8 #define SERSIC_SOURCE_H_
51 void ReSet(PosType mag,
Band band,PosType Reff,PosType PA,PosType my_index,PosType my_q,PosType my_z,
const PosType *theta=0);
54 inline PosType
FractionRadius (PosType f) {
return Reff*pow(-log (f)/bn,index);}
56 inline PosType getSersicIndex()
const {
return index; }
57 inline PosType getAxesRatio()
const {
return q; }
59 inline PosType
getReff()
const {
return Reff/arcsecTOradians; }
61 inline PosType getPA()
const {
return PA; }
63 inline void setSersicIndex(PosType x)
66 bn = 1.9992*index - 0.3271;
67 I_n = 1./index*pow(bn,2*index)/tgamma(2*index);
71 inline void setAxesRatio(PosType x)
77 inline void setReff(PosType x
80 Reff = x*arcsecTOradians;
81 I_r = 1./2./PI/Reff/Reff;
85 inline void setPA(PosType x)
92 void rotate(PosType theta){
104 inline void updateRadius()
108 setRadius((3.73 - 0.926*index + 1.164*index*index)*Reff);
120 PosType I_r, I_n, I_q;
void setRadius(PosType my_radius)
Reset the radius of the source in radians.
Definition: source.h:106
PosType FractionRadius(PosType f)
calculates radius where the surface brightness drops by a factor f with respect to the central peak i...
Definition: sersic_source.h:54
PosType getReff() const
in arcseconds
Definition: sersic_source.h:59
Class for sources described by a Sersic profile.
Definition: sersic_source.h:21
void ReSet(PosType mag, Band band, PosType Reff, PosType PA, PosType my_index, PosType my_q, PosType my_z, const PosType *theta=0)
Reset parameters but not the magnitude.
Definition: sersic.cpp:89
SourceSersic()
sets values to invalid values
Definition: sersic.cpp:9
PosType SurfaceBrightness(const PosType *x) const
Definition: sersic.cpp:121