Class for storing galaxy properties.
More...
#include <galaxy_class.hpp>
|
| Galaxy (int num_val, unsigned long id_val, double ra_val, double dec_val, double z_val) |
| Initialise Galaxy instance. More...
|
|
| Galaxy (int num_val, unsigned long id_val, double ra_val, double dec_val, double z_val, double z_err_val) |
| Initialise Galaxy instance. More...
|
|
void | assign_dist (double, double, double, double) |
| This method calculates the angular diameter distance of a Galaxy instance for a given cosmology. More...
|
|
void | assign_bin (double, double) |
| This method assigns the Zbin instance corresponding to the Galaxy instance. More...
|
|
void | assign_bins (double, double, double) |
| This method assigns the Zbin instances corresponding to the Galaxy instance. More...
|
|
void | set_cluster_status (int) |
| This method sets the initial Cluster instance membership of the Galaxy instance to False. More...
|
|
Class for storing galaxy properties.
This class calculates and stores Galaxy properties.
◆ Galaxy() [1/2]
Galaxy::Galaxy |
( |
int |
num_val, |
|
|
unsigned long |
id_val, |
|
|
double |
ra_val, |
|
|
double |
dec_val, |
|
|
double |
z_val |
|
) |
| |
Initialise Galaxy instance.
[FoF mode: "spec"]
- Parameters
-
[in] | num_val | Integer value. |
[in] | id_val | Galaxy ID. |
[in] | ra_val | Galaxy right ascension. |
[in] | dec_val | Galaxy declination. |
[in] | z_val | Galaxy spectroscopic redshift. |
◆ Galaxy() [2/2]
Galaxy::Galaxy |
( |
int |
num_val, |
|
|
unsigned long |
id_val, |
|
|
double |
ra_val, |
|
|
double |
dec_val, |
|
|
double |
z_val, |
|
|
double |
z_err_val |
|
) |
| |
Initialise Galaxy instance.
[FoF mode: "phot"]
- Parameters
-
[in] | num_val | Integer value. |
[in] | id_val | Galaxy ID. |
[in] | ra_val | Galaxy right ascension. |
[in] | dec_val | Galaxy declination. |
[in] | z_val | Galaxy photometric redshift. |
[in] | z_err_val | Galaxy photometric redshift error. |
◆ assign_bin()
void Galaxy::assign_bin |
( |
double |
min_value, |
|
|
double |
bin_size |
|
) |
| |
This method assigns the Zbin instance corresponding to the Galaxy instance.
- Parameters
-
[in] | min_value | Minimum value in redshift range. |
[in] | bin_size | Redshift bin size. |
◆ assign_bins()
void Galaxy::assign_bins |
( |
double |
min_value, |
|
|
double |
bin_size, |
|
|
double |
delta_z |
|
) |
| |
This method assigns the Zbin instances corresponding to the Galaxy instance.
- Parameters
-
[in] | min_value | Minimum value in redshift range. |
[in] | bin_size | Redshift bin size. |
[in] | delta_z | Bin width. |
◆ assign_dist()
void Galaxy::assign_dist |
( |
double |
c, |
|
|
double |
H0, |
|
|
double |
Omega_M, |
|
|
double |
Omega_L |
|
) |
| |
This method calculates the angular diameter distance of a Galaxy 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. |
◆ set_cluster_status()
void Galaxy::set_cluster_status |
( |
int |
nbins | ) |
|
This method sets the initial Cluster instance membership of the Galaxy instance to False.
- Parameters
-
[in] | nbins | Number of redshift bins. |
◆ operator<
Bool < operator for Galaxy class.
Compares the ID between two Cluster instances.
◆ operator==
bool operator== |
( |
const Galaxy & |
gal1, |
|
|
const Galaxy & |
gal2 |
|
) |
| |
|
friend |
Bool == operator for Galaxy class.
Compares the ID between two Cluster instances.
◆ astro
◆ bin
◆ bins
std::vector<int> Galaxy::bins |
◆ cosmo
◆ da
Angular diameter distance of Galaxy instance.
◆ id
◆ in_cluster
std::vector<bool> Galaxy::in_cluster |
Vector of flags indicating if the Galaxy instance is a member of a Cluster instance for a given Zbin instance.
◆ num
Number associated to Galaxy instance.
coordinates of the Galaxy instance: the entries corresponds to Right ascension and Declination respectively
◆ uf
Class structure for galaxy properties.
Include UnionFind class.
◆ z_err
Photometric redshift error of Galaxy instance.
The documentation for this class was generated from the following files: