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

Structure for holding parameters for one or more galaxy images according to the Overzier model. More...

#include <overzier_source.h>

Inheritance diagram for SourceOverzier:
Inheritance graph
[legend]
Collaboration diagram for SourceOverzier:
Collaboration graph
[legend]

Public Member Functions

 SourceOverzier (PosType mag, PosType mag_bulge, Band band, double zero_point, PosType Reff, PosType Rdisk, PosType PA, PosType inclination, unsigned long my_id, PosType my_z, const PosType *theta)
 
 SourceOverzier (const SourceOverzier &s)
 
SourceOverzieroperator= (const SourceOverzier &s)
 
void setInternals (PosType mag, PosType mag_bulge, Band band, PosType Reff, PosType Rdisk, PosType PA, PosType inclination, unsigned long my_id, PosType my_z, const PosType *my_theta)
 Sets internal variables. If default constructor is used this must be called before the surface brightness function.
 
virtual PosType SurfaceBrightness (const PosType *x) const
 Surface brightness in erg/cm^2/sec/rad^2/Hz. More...
 
PosType getTotalFlux () const
 
void printSource ()
 
PosType getMag () const
 get magnitude of whole galaxy. Which band this is in depends on which was passed in the constructor
 
PosType getMag (Band band) const
 
PosType getMagBulge () const
 
PosType getMagBulge (Band band) const
 
virtual void setMag (PosType my_mag, Band band, PosType zero_point)
 magnitude in specific band
 
virtual void setMagBulge (PosType my_mag, Band band, PosType zero_point)
 magnitude in specific band
 
PosType getReff () const
 bulge half light radius in arcseconds
 
PosType getRdisk () const
 disk scale height in arcseconds
 
PosType getBtoT () const
 the bulge to total flux ratio
 
PosType getPA () const
 position angle in radians
 
PosType getInclination () const
 inclination in radians
 
float getSEDtype () const
 
void setSEDtype (float s)
 
virtual void changeBand (Band band)
 change the working band
 
PosType getMinSize (PosType f)
 
- Public Member Functions inherited from Source
 Source (PosType r, Point_2d x, PosType z, PosType SBlimit, PosType zero_point)
 shell constructor
 
 Source (const Source &s)
 
Sourceoperator= (const Source &s)
 
double SBlimit_magarcsec (double limit)
 convert mag/arcsec^2 to flux units
 
PosType getSBlimit ()
 Gets sb_limit in erg/cm^2/sec/rad^2/Hz.
 
PosType getSBlimit_magarcsec ()
 Gets sb_limit in mag/arcsec^2.
 
PosType getZ () const
 Redshift of source.
 
void setZ (PosType my_z)
 
PosType getRadius () const
 Radius of source in radians.
 
void setRadius (PosType my_radius)
 Reset the radius of the source in radians.
 
Point_2d getTheta () const
 position of source in radians
 
void getTheta (PosType *x) const
 position of source in radians
 
void getTheta (Point_2d &x) const
 position of source in radians
 
void setTheta (PosType *xx)
 Reset the position of the source in radians.
 
void setTheta (PosType my_x, PosType my_y)
 
void setTheta (const Point_2d &p)
 
void setSBlimit (float limit)
 Sets sb_limit in erg/cm^2/sec/rad^2/Hz.
 
void setMagZeroPoint (float zeropoint)
 
double getMagZeroPoint ()
 
PosType changeFilter (std::string filter_in, std::string filter_out, std::string sed)
 Calculates the difference in magnitude when changing the observing filter. More...
 
PosType integrateFilter (std::vector< PosType > wavel_fil, std::vector< PosType > fil)
 Calculates the integral of the filter curve given as an array of (x,y) values. More...
 
PosType integrateFilterSED (std::vector< PosType > wavel_fil, std::vector< PosType > fil, std::vector< PosType > wavel_sed, std::vector< PosType > sed)
 Calculates the integral of the sed multiplied by the filter curve. More...
 
double TEST_surface_brightness (double res, int N)
 test if flux in pixels matches total flux
 
long getID () const
 
void setID (long i)
 

Static Public Member Functions

static PosType * getx (SourceOverzier &sourceo)
 
- Static Public Member Functions inherited from Source
static PosType * getx (Source &source)
 

Protected Member Functions

void renormalize_current ()
 
void assignParams (InputParams &params)
 
- Protected Member Functions inherited from Source
double flux_to_mag (double flux) const
 

Protected Attributes

SourceSersic spheroid
 
float sedtype = -1
 
Params current
 
- Protected Attributes inherited from Source
PosType source_r
 charactoristic source size
 
Point_2d source_x
 center of source
 
PosType zsource
 redshift of source
 
PosType sb_limit
 
long id
 
double mag_zero_point
 

Static Protected Attributes

static std::map< Band, PosType > zeropoints
 

Detailed Description

Structure for holding parameters for one or more galaxy images according to the Overzier model.

Constructor & Destructor Documentation

◆ SourceOverzier()

SourceOverzier::SourceOverzier ( PosType  my_mag,
PosType  mag_bulge,
Band  band,
double  zeropoint,
PosType  Reff,
PosType  Rdisk,
PosType  PA,
PosType  inclination,
unsigned long  my_id,
PosType  my_z,
const PosType *  theta 
)
Parameters
my_magTotal magnitude
mag_bulgemagnitude of bulge
zeropointmagnitude zero point
ReffBulge half light radius (arcs)
Rdiskdisk scale hight (arcs)
PAPosition angle (radians)
inclinationinclination of disk (radians)
my_idid number
my_zoptional redshift
thetaoptional angular position on the sky

Member Function Documentation

◆ getMinSize()

PosType SourceOverzier::getMinSize ( PosType  f)
inline

Returns minimum of the radii at which disk and bulge have a surf. brightness equal to a fraction f of the central one TODO: Fabio: Needs to be tested and improved (Bulge is so steep in the center that output values are very small)

◆ SurfaceBrightness()

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

Surface brightness in erg/cm^2/sec/rad^2/Hz.

Parameters
yposition in radians

Implements Source.

Reimplemented in SourceOverzierPlus.


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