7#ifndef SERSIC_SOURCE_H_
8#define SERSIC_SOURCE_H_
50 void ReSet(PosType mag,
Band band,PosType Reff,PosType PA,PosType my_index,PosType my_q,PosType my_z,
const PosType *theta=0);
53 inline PosType
FractionRadius (PosType f) {
return Reff*pow(-log (f)/bn,index);}
55 inline PosType getSersicIndex()
const {
return index; }
56 inline PosType getAxesRatio()
const {
return q; }
58 inline PosType
getReff()
const {
return Reff/arcsecTOradians; }
60 inline PosType getPA()
const {
return PA; }
62 inline void setSersicIndex(PosType x)
65 bn = 1.9992*index - 0.3271;
66 I_n = 1./index*pow(bn,2*index)/tgamma(2*index);
70 inline void setAxesRatio(PosType x)
76 inline void setReff(PosType x
79 Reff = x*arcsecTOradians;
80 I_r = 1./2./PI/Reff/Reff;
84 inline void setPA(PosType x)
91 void rotate(PosType theta){
103 inline void updateRadius()
107 setRadius((3.73 - 0.926*index + 1.164*index*index)*Reff);
119 PosType I_r, I_n, I_q;
void setRadius(PosType my_radius)
Reset the radius of the source in radians.
Definition source.h:105
Class for sources described by a Sersic profile.
Definition sersic_source.h:21
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:53
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
PosType getReff() const
in arcseconds
Definition sersic_source.h:58
PosType SurfaceBrightness(const PosType *x) const
Definition sersic.cpp:121
SourceSersic()
sets values to invalid values
Definition sersic.cpp:9