GLAMERDOC++
Gravitational Lensing Code Library
Loading...
Searching...
No Matches
SourceSersic Class Reference

Class for sources described by a Sersic profile. More...

#include <sersic_source.h>

Public Member Functions

 SourceSersic ()
 sets values to invalid values
 
 SourceSersic (double my_mag, double my_Reff, double my_PA, double my_index, double my_q, double my_z, Band band)
 
 SourceSersic (double my_mag, double my_Reff, double my_PA, double my_index, double my_q, double my_z, double my_zeropoint, Band band)
 
 SourceSersic (const SourceSersic &p)
 
SourceSersicoperator= (const SourceSersic &p)
 
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.
 
PosType FractionRadius (PosType f)
 calculates radius where the surface brightness drops by a factor f with respect to the central peak in radians
 
PosType getSersicIndex () const
 
PosType getAxesRatio () const
 
PosType getReff () const
 in arcseconds
 
PosType getPA () const
 
void setSersicIndex (PosType x)
 
void setAxesRatio (PosType x)
 
void setReff (PosType x)
 
void setPA (PosType x)
 
void rotate (PosType theta)
 
PosType SurfaceBrightness (const PosType *x) const
 
void printSource ()
 

Detailed Description

Class for sources described by a Sersic profile.

The sources are constructed from magnitude, half light radius Reff, Sersic index, axis ratio q and main axis orientation PA. For q = 1, the source is circular and the surface brightness profile is I(r) = Ieff * exp(-bn*((r/Reff)^(1/index)-1)) The elliptical model is defined for axis ratio q < 1.

Constructor & Destructor Documentation

◆ SourceSersic() [1/3]

SourceSersic::SourceSersic ( )

sets values to invalid values

set to values that hopefully will cause an error if it is used

◆ SourceSersic() [2/3]

SourceSersic::SourceSersic ( double my_mag,
double my_Reff,
double my_PA,
double my_index,
double my_q,
double my_z,
Band band )
Parameters
my_magTotal magnitude
my_ReffBulge half light radius (arcs)
my_PAPosition angle (radians)
my_indexSersic index
my_qaxes ratio
my_zredshift
bandband of my_mag

◆ SourceSersic() [3/3]

SourceSersic::SourceSersic ( double my_mag,
double my_Reff,
double my_PA,
double my_index,
double my_q,
double my_z,
double my_zeropoint,
Band band )
Parameters
my_magTotal magnitude
my_ReffBulge half light radius (arcs)
my_PAPosition angle (radians)
my_indexSersic index
my_qaxes ratio
my_zredshift
my_zeropointzeropoint
bandband

Member Function Documentation

◆ printSource()

void SourceSersic::printSource ( )
virtual

Implements Source.

◆ ReSet()

void SourceSersic::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.

Parameters
magTotal magnitude
ReffBulge half light radius (arcs)
PAPosition angle (radians)
my_indexSersic index
my_qaxes ratio
my_zredshift
thetaoptional angular position on the sky

◆ SurfaceBrightness()

PosType SourceSersic::SurfaceBrightness ( const PosType * y) const
virtual

Surface brightness of source in grid coordinates not source centered coordinates.

The units shuld be ergs / s / Hz / cm^2

Implements Source.


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