Go to the documentation of this file.
7 #ifndef CLUSTER_CLASS_H
8 #define CLUSTER_CLASS_H
67 std::vector<Galaxy*>
mem;
172 #endif // CLUSTER_CLASS_H
Class for storing galaxy properties.
Definition: galaxy_class.hpp:71
friend bool operator<(const Cluster &clt1, const Cluster &clt2)
Bool < operator for Cluster class.
Definition: cluster_class.hpp:168
void assign_props()
This method assigns properties based on those of the members to the Cluster instance.
Definition: cluster_class.cpp:24
double area
Area of Cluster instance in specified units.
Definition: cluster_class.hpp:58
Astro astro
Include Astro class.
Definition: cluster_class.hpp:157
double sn
Signal-to-noise of Cluster instance.
Definition: cluster_class.hpp:61
Class containing basic functions required for astronomy.
Definition: astro.hpp:22
double z_err
Redshift error of Cluster instance.
Definition: cluster_class.hpp:52
double ra_err
Right ascension error of Cluster instance.
Definition: cluster_class.hpp:40
int ngal
Number of members in Cluster instance.
Definition: cluster_class.hpp:34
double ra
Right ascension of Cluster instance.
Definition: cluster_class.hpp:37
int num
Number asscosiated to Cluster instance.
Definition: cluster_class.hpp:31
double da
Angular diameter distance of Cluster instance.
Definition: cluster_class.hpp:64
void assign_sn(double)
This method assigns a signal-to-noise value to a Cluster instance given a value of the expected backg...
Definition: cluster_class.cpp:48
void rename(int)
This method resets the number associated to a Cluster instance.
Definition: cluster_class.cpp:77
double size
Size of Cluster instance in specified units.
Definition: cluster_class.hpp:55
void clear()
This method clears all members from a Cluster instance.
Definition: cluster_class.cpp:72
void unique()
This method removes all duplicate members from a Cluster instance.
Definition: cluster_class.cpp:82
Class containing basic functions required for Cosmology.
Definition: cosmo.hpp:19
double dec
Declination of Cluster instance.
Definition: cluster_class.hpp:43
void assign_dist(double, double, double, double)
This method calculates the angular diameter distance of a Cluster instance for a given cosmology.
Definition: cluster_class.cpp:12
double z
Redshift of Cluster instance.
Definition: cluster_class.hpp:49
double dec_err
Declination error of Cluster instance.
Definition: cluster_class.hpp:46
void update_size(const std::string)
This method updates the units of the cluster size to those specified.
Definition: cluster_class.cpp:63
bool operator<(const Cluster &clt1, const Cluster &clt2)
Bool < operator for Cluster class.
Definition: cluster_class.hpp:168
Cosmo cosmo
Include Cosmo class.
Definition: cluster_class.hpp:160
std::vector< Galaxy * > mem
Vector of Cluster member Galaxy instances.
Definition: cluster_class.hpp:67
Class for storing galaxy cluster properties and members.
Definition: cluster_class.hpp:26
Cluster()
Definition: cluster_class.hpp:87
void add_gal(Galaxy *)
This method adds a Galaxy instance to a Cluster instance.
Definition: cluster_class.cpp:7
Cluster(int num_val)
Initialise Cluster instance.
Definition: cluster_class.hpp:73