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

A LensPlane with a list of LensHalo's in it.
More...

#include <planes.h>

Inheritance diagram for LensPlaneSingular:
Collaboration diagram for LensPlaneSingular:

Public Member Functions

 LensPlaneSingular (float z, LensHaloHndl *my_halos, IndexType Nhalos)
 
 LensPlaneSingular (const LensPlaneSingular &p)
 
 LensPlaneSingular (LensPlaneSingular &&p)
 
LensPlaneSingularoperator= (const LensPlaneSingular &p)
 
LensPlaneSingularoperator= (LensPlaneSingular &&p)
 
void force (PosType *alpha, KappaType *kappa, KappaType *gamma, KappaType *phi, PosType *xx)
 returns the lensing quantities of a ray in physical coordinates
 
void addHalo (LensHalo *halo)
 It is assumed that the position of halo is in physical Mpc.
 
void removeHalo (LensHalo *halo)
 
std::vector< LensHalo * > getHalos ()
 
std::vector< const LensHalo * > getHalos () const
 
void getNeighborHalos (PosType ray[], PosType rmax, std::vector< LensHalo * > &neighbors) const
 
- Public Member Functions inherited from LensPlane
 LensPlane (float redshift)
 

Additional Inherited Members

- Public Attributes inherited from LensPlane
float z
 

Detailed Description

A LensPlane with a list of LensHalo's in it.

The deflection is calculated by direct summation which can be slow for large numbers of LensHalo's.
Main lenses are put onto these planes when they are added to the Lens.

Member Function Documentation

◆ addHalo()

void LensPlaneSingular::addHalo ( LensHalo * halo)
virtual

It is assumed that the position of halo is in physical Mpc.

Implements LensPlane.

◆ force()

void LensPlaneSingular::force ( PosType * alpha,
KappaType * kappa,
KappaType * gamma,
KappaType * phi,
PosType * xx )
virtual

returns the lensing quantities of a ray in physical coordinates

Warning : Be careful, the sign of alpha is changed after the call of force_halo !

Parameters
phiin mass

Implements LensPlane.

◆ getHalos() [1/2]

std::vector< LensHalo * > LensPlaneSingular::getHalos ( )
virtual

Implements LensPlane.

◆ getHalos() [2/2]

std::vector< const LensHalo * > LensPlaneSingular::getHalos ( ) const
virtual

Implements LensPlane.

◆ getNeighborHalos()

void LensPlaneSingular::getNeighborHalos ( PosType ray[],
PosType rmax,
std::vector< LensHalo * > & neighbors ) const
virtual

Reimplemented from LensPlane.

◆ removeHalo()

void LensPlaneSingular::removeHalo ( LensHalo * halo)
virtual

Implements LensPlane.


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