Class for storing galaxy cluster properties and members.
More...
#include <cluster_class.hpp>
Class for storing galaxy cluster properties and members.
This class stores Galaxy instances as galaxy cluster members and calculates the corresponding Cluster properties from the member properties.
◆ Cluster() [1/2]
Cluster::Cluster |
( |
int |
num_val | ) |
|
Initialise Cluster instance.
- Parameters
-
[in] | num_val | Integer value. |
◆ Cluster() [2/2]
◆ add_gal()
void Cluster::add_gal |
( |
Galaxy * |
gal | ) |
|
This method adds a Galaxy instance to a Cluster instance.
- Parameters
-
◆ assign_dist()
void Cluster::assign_dist |
( |
double |
c, |
|
|
double |
H0, |
|
|
double |
Omega_M, |
|
|
double |
Omega_L |
|
) |
| |
This method calculates the angular diameter distance of a Cluster instance for a given cosmology.
- Parameters
-
[in] | c | Speed of light [km/s]. |
[in] | H0 | Hubble parameter [km/s/Mpc]. |
[in] | Omega_M | Matter density. |
[in] | Omega_L | Dark energy density. |
◆ assign_props()
void Cluster::assign_props |
( |
| ) |
|
This method assigns properties based on those of the members to the Cluster instance.
◆ assign_sn()
void Cluster::assign_sn |
( |
double |
bg_expect | ) |
|
This method assigns a signal-to-noise value to a Cluster instance given a value of the expected background number density.
- Parameters
-
[in] | bg_expect | Background number density [n_gal / arcmin^2] |
◆ clear()
This method clears all members from a Cluster instance.
◆ rename()
void Cluster::rename |
( |
int |
num_val | ) |
|
This method resets the number associated to a Cluster instance.
- Parameters
-
[in] | num_val | Integer value. |
◆ unique()
This method removes all duplicate members from a Cluster instance.
◆ update_size()
void Cluster::update_size |
( |
const std::string |
size_units | ) |
|
This method updates the units of the cluster size to those specified.
- Parameters
-
◆ operator<
Bool < operator for Cluster class.
Compares the number of members between two Cluster instances.
◆ area
Area of Cluster instance in specified units.
◆ astro
◆ cosmo
◆ da
Angular diameter distance of Cluster instance.
◆ dec
◆ dec_err
Declination error of Cluster instance.
◆ mem
std::vector<Galaxy*> Cluster::mem |
◆ ngal
Number of members in Cluster instance.
◆ num
Number asscosiated to Cluster instance.
◆ ra
Right ascension of Cluster instance.
◆ ra_err
Right ascension error of Cluster instance.
◆ size
Size of Cluster instance in specified units.
◆ sn
Signal-to-noise of Cluster instance.
◆ z_err
Redshift error of Cluster instance.
The documentation for this class was generated from the following files: