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

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

#include <planes.h>

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

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 More...
 
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

◆ 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.


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