GLAMERDOC++
Gravitational Lensing Code Library
Public Member Functions | Public Attributes | List of all members
SourceShapelets Class Reference

Class for sources described by shapelets. More...

#include <source.h>

Inherits SourceColored.

Public Member Functions

 SourceShapelets (PosType my_z, PosType my_mag, PosType my_scale, std::valarray< PosType > my_coeff, PosType *my_center, PosType my_ang, PosType zero_point)
 
 SourceShapelets (PosType my_z, PosType my_mag, std::string shap_file, PosType *my_center, PosType my_ang, PosType zero_point)
 
 SourceShapelets (std::string shap_file, PosType my_ang, PosType zero_point)
 
 SourceShapelets (const SourceShapelets &s)
 
SourceShapeletsoperator= (const SourceShapelets &s)
 
void rotate (PosType ang)
 rotate source More...
 
PosType SurfaceBrightness (const PosType *y) const
 
void printSource ()
 
PosType getRadius () const
 maximum size
 
void pepper (int n, double s, Utilities::RandomNumbers_NR &ran)
 
double sub_structure_sb (double *x)
 

Public Attributes

friend SourceMultiShapelets
 

Detailed Description

Class for sources described by shapelets.

The sources are created from magnitude, scale radius, and the coefficients of their decomposition into the shapelets basis functions (Refregier et al., 2001). The coefficients can be read from a fits square array. In case the magnitude is not given as input, the constructor will read an array of values from the shapelet file header. One can then choose the desired magnitude with setActiveMag.

Constructor & Destructor Documentation

◆ SourceShapelets() [1/3]

SourceShapelets::SourceShapelets ( PosType  my_z,
PosType  my_mag,
PosType  my_scale,
std::valarray< PosType >  my_coeff,
PosType *  my_center,
PosType  my_ang,
PosType  zeropoint 
)
Parameters
my_zredshift of the source
my_magmagnitude
my_scalescale of the shapelets decomposition
my_coeffcoefficients of the shapelets decomposition
my_centercenter (in rad)
my_angrotation angle (in rad)
zeropointmagnitude zero point

◆ SourceShapelets() [2/3]

SourceShapelets::SourceShapelets ( PosType  my_z,
PosType  my_mag,
std::string  shap_file,
PosType *  my_center,
PosType  my_ang,
PosType  zeropoint 
)
Parameters
my_zredshift of the source
my_magmagnitude
shap_filefits file with coefficients in a square array
my_centercenter (in rad)
my_angrotation angle (in rad)
zeropointmagnitude zero point

◆ SourceShapelets() [3/3]

SourceShapelets::SourceShapelets ( std::string  shap_file,
PosType  my_ang,
PosType  zeropoint 
)
Parameters
shap_filefits file with coefficients in a square array. Mag and redshift are read from the header.
my_angrotation angle (in rad)
zeropointmagnitude zero point

Member Function Documentation

◆ rotate()

void SourceShapelets::rotate ( PosType  ang)
inline

rotate source

Parameters
angangle in radians

◆ SurfaceBrightness()

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

Returns surface brightness in erg/cm2/sec/Hz, normalized by hplanck. Given the units of hplanck, the final units are 1/sec/cm2.

Implements Source.


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