GLAMERDOC++
Gravitational Lensing Code Library
|
LensHalo class primarily used for fitting point source lenses. More...
#include <analytic_lens.h>
Public Member Functions | |
LensHaloFit (const COSMOLOGY &cosmo, int MyNmodes, PosType beta, PosType zlensref, PosType zsourceref) | |
Creates a AnaLens which initially has no mass, Use FindLensSimple() to give it mass. | |
void | PrintLens (bool show_substruct, bool show_stars) |
void | FindLensSimple (int Nimages, Point *image_positions, double *y, double **dx_sub) |
Wrapper that allows simple lens to be found with a single lens with a single source and translates result into data structures used in the other code. | |
bool | SafeFindLensSimple (int Nimages, Point *image_positions, double *y, double **dx_sub, int SafetyNum, PosType PixelSizeRad, std::vector< std::vector< PosType > > &PrecisionBackTracedPos, std::vector< std::vector< PosType > > &alphaTab, bool verbose) |
Same as FindLensSimple but with some tests in it. | |
void | FindLensSimple (ImageInfo *imageinfo, int Nimages, double *y, double **dx_sub) |
Wrapper that allows simple lens to be found with a single lens with a single source and translates result into data structures used in the other code. | |
virtual PosType | get_sigma () |
get the velocity dispersion | |
virtual PosType | get_fratio () |
get the axis ratio | |
virtual PosType | get_pa () |
get the position angle | |
virtual PosType | get_rcore () |
get the core radius | |
void | setNmodes (int my_Nmodes) |
set the number of perturbation modes – Does the same as LensHaloBaseNSIE::getPerturb_Nmodes(). | |
int | getNmodes () |
get the number of perturbation modes | |
void | set_perturbmodes (PosType *ListModes, const int Nmodes) |
set the perturbation modes | |
void | get_perturbmodes (PosType *ListModes, const int Nmodes) |
get the perturbation modes | |
void | get_perturbmodes (std::vector< PosType > &ListModes) |
Gets the perturbation modes in the LensHaloFit. | |
double * | getq () |
get the ouput of ElliptisizeLens : | |
void | set_sigma (PosType my_sigma) |
set the velocity dispersion | |
LensHalo class primarily used for fitting point source lenses.
The model is a power law with axial modes made to be as elliptical as possible.
void LensHaloFit::FindLensSimple | ( | ImageInfo * | imageinfo, |
int | Nimages, | ||
double * | y, | ||
double ** | dx_sub ) |
Wrapper that allows simple lens to be found with a single lens with a single source and translates result into data structures used in the other code.
The lens is centered on [0,0] source position in lens is updated along with all the modes.
imageinfo | Positions of images relative to center of lens. Only imageinfo[].centoid[] is used. Centroids must be in radians. |
Nimages | input number of images |
y | output source position |
dx_sub | dx_sub[Nimages][2] pre-calculated deflections caused by substructures or external masses at each image (in radians) |
void LensHaloFit::FindLensSimple | ( | int | Nimages, |
Point * | image_positions, | ||
double * | y, | ||
double ** | dx_sub ) |
Wrapper that allows simple lens to be found with a single lens with a single source and translates result into data structures used in the other code.
The lens is centered on [0,0] source position in lens is updated along with all the modes.
Nimages | Number of images to be fit |
image_positions | Array of points with point[i].x set to the image positions |
y | output source position |
dx_sub | dx_sub[Nimages][2] pre-calculated deflections caused by substructures or external masses at each image |
void LensHaloFit::get_perturbmodes | ( | PosType * | ListModes, |
const int | Nmodes ) |
get the perturbation modes
Gets the perturbation modes in the LensHaloFit.
bool LensHaloFit::SafeFindLensSimple | ( | int | Nimages, |
Point * | image_positions, | ||
double * | y, | ||
double ** | dx_sub, | ||
int | SafetyNum, | ||
PosType | PixelSizeRad, | ||
std::vector< std::vector< PosType > > & | PrecisionBackTracedPos, | ||
std::vector< std::vector< PosType > > & | alphaTab, | ||
bool | verbose ) |
Same as FindLensSimple but with some tests in it.
␓
Nimages | Number of images to be fit |
image_positions | Array of points with point[i].x set to the image positions |
y | output source position |
dx_sub | dx_sub[Nimages][2] pre-calculated deflections caused by substructures or external masses at each image |
SafetyNum | integer of the number of time you want to check the modes |
PixelSizeRad | Pixel size in radians used for the maps |
PrecisionBackTracedPos | Table that will receive the back-traced images uncertainty (in units of PixelSizeRad). |
alphaTab | Table that will receive the deviation angle in radians |
verbose | verbose mode switch |
void LensHaloFit::set_perturbmodes | ( | PosType * | ListModes, |
const int | Nmodes ) |
set the perturbation modes
Sets the perturbation modes in the LensHaloFit.