86 {
return {
"Random",
"Mock",
"Halo",
"Galaxy",
"Cluster",
"Void",
"HostHalo",
"ChainMeshCell"}; }
95 {
return castFromValue<ObjectType>(objectTypeIndex); }
104 {
return castFromName<ObjectType>(objectTypeName,
ObjectTypeNames()); }
112 inline std::vector<ObjectType>
ObjectTypeCast (
const std::vector<int> objectTypeIndeces)
113 {
return castFromValues<ObjectType>(objectTypeIndeces); }
121 inline std::vector<ObjectType>
ObjectTypeCast (
const std::vector<std::string> objectTypeNames)
122 {
return castFromNames<ObjectType>(objectTypeNames,
ObjectTypeNames()); }
243 Object (
const comovingCoordinates coord,
const double weight=1.,
const long region=
par::defaultLong,
const int ID=
par::defaultInt,
const std::string
field=
par::defaultString,
const double x_displacement=
par::defaultDouble,
const double y_displacement=
par::defaultDouble,
const double z_displacement=
par::defaultDouble,
const double redshiftMin=
par::defaultDouble,
const double redshiftMax=
par::defaultDouble,
const double sn=
par::defaultDouble)
244 :
m_xx(coord.
xx),
m_yy(coord.
yy),
m_zz(coord.
zz),
m_ra(par::
defaultDouble),
m_dec(par::
defaultDouble),
m_redshift(par::
defaultDouble),
m_dc(par::
defaultDouble),
m_weight(
weight),
m_region(
region),
m_ID(
ID),
m_field(
field),
m_x_displacement(
x_displacement),
m_y_displacement(
y_displacement),
m_z_displacement(
z_displacement),
m_redshiftMin(
redshiftMin),
m_redshiftMax(
redshiftMax),
m_sn(
sn) {}
281 Object (
const comovingCoordinates coord,
const cosmology::Cosmology &cosm,
const double z1_guess=0.,
const double z2_guess=10.,
const double weight=1.,
const long region=
par::defaultLong,
const int ID=
par::defaultInt,
const std::string
field=
par::defaultString,
const double x_displacement=
par::defaultDouble,
const double y_displacement=
par::defaultDouble,
const double z_displacement=
par::defaultDouble,
const double redshiftMin=
par::defaultDouble,
const double redshiftMax=
par::defaultDouble,
const double sn=
par::defaultDouble)
282 :
m_xx(coord.
xx),
m_yy(coord.
yy),
m_zz(coord.
zz),
m_weight(
weight),
m_region(
region),
m_ID(
ID),
m_field(
field),
m_x_displacement(
x_displacement),
m_y_displacement(
y_displacement),
m_z_displacement(
z_displacement),
m_redshiftMin(
redshiftMin),
m_redshiftMax(
redshiftMax),
m_sn(
sn)
315 Object (
const observedCoordinates coord,
const double weight=1.,
const long region=
par::defaultLong,
const int ID=
par::defaultInt,
const std::string
field=
par::defaultString,
const double x_displacement=
par::defaultDouble,
const double y_displacement=
par::defaultDouble,
const double z_displacement=
par::defaultDouble,
const double redshiftMin=
par::defaultDouble,
const double redshiftMax=
par::defaultDouble,
const double sn=
par::defaultDouble)
316 :
m_ra(coord.
ra),
m_dec(coord.
dec),
m_redshift(coord.
redshift),
m_dc(par::
defaultDouble),
m_weight(
weight),
m_region(
region),
m_ID(
ID),
m_field(
field),
m_x_displacement(
x_displacement),
m_y_displacement(
y_displacement),
m_z_displacement(
z_displacement),
m_redshiftMin(
redshiftMin),
m_redshiftMax(
redshiftMax),
m_sn(
sn) {}
348 Object (
const observedCoordinates coord,
const CoordinateUnits inputUnits,
const double weight=1.,
const long region=
par::defaultLong,
const int ID=
par::defaultInt,
const std::string
field=
par::defaultString,
const double x_displacement=
par::defaultDouble,
const double y_displacement=
par::defaultDouble,
const double z_displacement=
par::defaultDouble,
const double redshiftMin=
par::defaultDouble,
const double redshiftMax=
par::defaultDouble,
const double sn=
par::defaultDouble)
349 :
m_ra(
radians(coord.
ra, inputUnits)),
m_dec(
radians(coord.
dec, inputUnits)),
m_redshift(coord.
redshift),
m_dc(par::
defaultDouble),
m_weight(
weight),
m_region(
region),
m_ID(
ID),
m_field(
field),
m_x_displacement(
x_displacement),
m_y_displacement(
y_displacement),
m_z_displacement(
z_displacement),
m_redshiftMin(
redshiftMin),
m_redshiftMax(
redshiftMax),
m_sn(
sn) {}
383 Object (
const observedCoordinates coord,
const cosmology::Cosmology &cosm,
const double weight=1.,
const long region=
par::defaultLong,
const int ID=
par::defaultInt,
const std::string
field=
par::defaultString,
const double x_displacement=
par::defaultDouble,
const double y_displacement=
par::defaultDouble,
const double z_displacement=
par::defaultDouble,
const double redshiftMin=
par::defaultDouble,
const double redshiftMax=
par::defaultDouble,
const double sn=
par::defaultDouble)
384 :
m_ra(coord.
ra),
m_dec(coord.
dec),
m_redshift(coord.
redshift),
m_dc(par::
defaultDouble),
m_weight(
weight),
m_region(
region),
m_ID(
ID),
m_field(
field),
m_x_displacement(
x_displacement),
m_y_displacement(
y_displacement),
m_z_displacement(
z_displacement),
m_redshiftMin(
redshiftMin),
m_redshiftMax(
redshiftMax),
m_sn(
sn)
423 Object (
const observedCoordinates coord,
const CoordinateUnits inputUnits,
const cosmology::Cosmology &cosm,
const double weight=1.,
const long region=
par::defaultLong,
const int ID=
par::defaultInt,
const std::string
field=
par::defaultString,
const double x_displacement=
par::defaultDouble,
const double y_displacement=
par::defaultDouble,
const double z_displacement=
par::defaultDouble,
const double redshiftMin=
par::defaultDouble,
const double redshiftMax=
par::defaultDouble,
const double sn=
par::defaultDouble)
424 :
m_ra(
radians(coord.
ra, inputUnits)),
m_dec(
radians(coord.
dec, inputUnits)),
m_redshift(coord.
redshift),
m_dc(par::
defaultDouble),
m_weight(
weight),
m_region(
region),
m_ID(
ID),
m_field(
field),
m_x_displacement(
x_displacement),
m_y_displacement(
y_displacement),
m_z_displacement(
z_displacement),
m_redshiftMin(
redshiftMin),
m_redshiftMax(
redshiftMax),
m_sn(
sn)
451 Object (
const double xx,
const double yy,
const double zz,
const double ra,
const double dec,
const double redshift,
const double weight=1.,
const long region=
par::defaultLong,
const int ID=
par::defaultInt,
const std::string
field=
par::defaultString,
const double x_displacement=
par::defaultDouble,
const double y_displacement=
par::defaultDouble,
const double z_displacement=
par::defaultDouble,
const double redshiftMin=
par::defaultDouble,
const double redshiftMax=
par::defaultDouble,
const double sn=
par::defaultDouble)
452 :
m_xx(
xx),
m_yy(
yy),
m_zz(
zz),
m_ra(
ra),
m_dec(
dec),
m_redshift(
redshift),
m_dc(sqrt(
xx*
xx+
yy*
yy+
zz*
zz)),
m_weight(
weight),
m_region(
region),
m_ID(
ID),
m_field(
field),
m_x_displacement(
x_displacement),
m_y_displacement(
y_displacement),
m_z_displacement(
z_displacement),
m_redshiftMin(
redshiftMin),
m_redshiftMax(
redshiftMax),
m_sn(
sn)
464 return std::make_shared<Object>(*
this);
553 static std::shared_ptr<Object>
Create (
const ObjectType ObjectType,
const comovingCoordinates coord,
const cosmology::Cosmology &cosm,
const double z1_guess=0.,
const double z2_guess=10.,
const double weight=1.,
const long region=
par::defaultLong,
const int ID=
par::defaultInt,
const std::string
field=
par::defaultString,
const double x_displacement=
par::defaultDouble,
const double y_displacement=
par::defaultDouble,
const double z_displacement=
par::defaultDouble);
677 static std::shared_ptr<Object>
Create (
const ObjectType ObjectType,
const observedCoordinates coord,
const CoordinateUnits inputUnits,
const cosmology::Cosmology &cosm,
const double weight=1.,
const long region=
par::defaultLong,
const int ID=
par::defaultInt,
const std::string
field=
par::defaultString,
const double x_displacement=
par::defaultDouble,
const double y_displacement=
par::defaultDouble,
const double z_displacement=
par::defaultDouble);
716 static std::shared_ptr<Object>
Create (
const ObjectType ObjectType,
const double xx,
const double yy,
const double zz,
const double ra,
const double dec,
const double redshift,
const double weight=1.,
const long region=
par::defaultLong,
const int ID=
par::defaultInt,
const std::string
field=
par::defaultString,
const double x_displacement=
par::defaultDouble,
const double y_displacement=
par::defaultDouble,
const double z_displacement=
par::defaultDouble);
884 ErrorCBL(
"one or more of the m_xx, m_yy, m_zz variables is not defined!",
"coords",
"Object.h");
894 virtual double vx ()
const
903 virtual double vy ()
const
912 virtual double vz ()
const
1033 {
return cbl::ErrorCBL(
"",
"mass_proxy_error",
"Object.h"); }
1080 virtual double generic ()
const
1097 {
return cbl::ErrorCBL(
"",
"densityContrast",
"Object.h"); }
1121 {
return cbl::ErrorCBL(
"",
"radius_estimate",
"Object.h"); }
1129 {
return cbl::ErrorCBL(
"",
"veldisp_estimate",
"Object.h"); }
1239 virtual std::vector<unsigned int>
part ()
const
1247 virtual std::vector<std::vector<unsigned int>>
nearCells ()
const
1345 if (update_coordinates) {
1522 { (void)value;
cbl::ErrorCBL(
"",
"set_proxyerror",
"Object.h"); }
1603 { (void)
generic;
cbl::ErrorCBL(
"",
"set_generic",
"Object.h"); }
1740 { (void)satellite;
cbl::ErrorCBL(
"",
"set_satellite",
"Object.h"); }
1898 {
return cbl::ErrorCBL(
"",
"isSet_lensingWeight",
"Object.h"); }
1907 {
return cbl::ErrorCBL(
"",
"isSet_lensingCalib",
"Object.h"); }
2020 {
return cbl::ErrorCBL(
"",
"isSet_magnitude",
"Object.h"); }
2030 {
return cbl::ErrorCBL(
"",
"isSet_magnitudeU",
"Object.h"); }
2040 {
return cbl::ErrorCBL(
"",
"isSet_magnitudeG",
"Object.h"); }
2050 {
return cbl::ErrorCBL(
"",
"isSet_magnitudeR",
"Object.h"); }
2060 {
return cbl::ErrorCBL(
"",
"isSet_magnitudeI",
"Object.h"); }
2089 {
return cbl::ErrorCBL(
"",
"isSet_mass_proxy",
"Object.h"); }
2099 {
return cbl::ErrorCBL(
"",
"isSet_mass_proxy_error",
"Object.h"); }
2139 {
return cbl::ErrorCBL(
"",
"isSet_densityContrast",
"Object.h"); }
2149 {
return cbl::ErrorCBL(
"",
"isSet_centralDensity",
"Object.h"); }
2159 {
return cbl::ErrorCBL(
"",
"isSet_mass_estimate",
"Object.h"); }
2169 {
return cbl::ErrorCBL(
"",
"isSet_radius_estimate",
"Object.h"); }
2179 {
return cbl::ErrorCBL(
"",
"isSet_veldisp_estimate",
"Object.h"); }
2325 {
return cbl::ErrorCBL(
"",
"isSet_galaxyTag",
"Object.h"); }
2345 {
return cbl::ErrorCBL(
"",
"isSet_massinfall",
"Object.h"); }
virtual double vmax_rad() const
get the private member m_vmax_rad
bool isSet_redshiftMax()
check if the member m_redshiftMax is set
virtual void set_bias(const double bias)
set the member m_bias
void set_xx(const double xx)
set the member m_xx
virtual bool isSet_vmax_rad()
check if the member m_vmax_rad is set
bool isSet_region()
check if the member m_region is set
virtual bool isSet_mstar()
check if the member m_mstar is set
virtual double mass() const
get the member m_mass
virtual void set_generic(const double generic)
set the member m_generic
Object(const observedCoordinates coord, const CoordinateUnits inputUnits, const cosmology::Cosmology &cosm, const double weight=1., const long region=par::defaultLong, const int ID=par::defaultInt, const std::string field=par::defaultString, const double x_displacement=par::defaultDouble, const double y_displacement=par::defaultDouble, const double z_displacement=par::defaultDouble, const double redshiftMin=par::defaultDouble, const double redshiftMax=par::defaultDouble, const double sn=par::defaultDouble)
constructor that uses observed coordinates and a cosmological model to estimate the comoving coordina...
virtual double magnitudeG() const
get the member m_magnitudeG
virtual bool isSet_magnitudeR()
check if the member m_magnitudeR is set
virtual bool isSet_vy()
check if the member m_vy is set
virtual double ycm() const
get the private member m_ycm
virtual void set_radius_estimate(const double radius_estimate)
set the private member m_radius_estimate
void set_x_displacement(const double x_displacement)
set the member m_x_displacement
virtual void set_vz(const double vz)
set the member m_vz
virtual double magnitude() const
get the member m_magnitude
virtual void set_nearCells(const std::vector< std::vector< unsigned int >> nearCells)
set the virtual private member m_nearCells (member of ChainMeshCell)
bool isSet_redshift()
check if the member m_redshift is set
virtual double bias() const
get the member m_bias
void set_redshift(const double redshift, const cosmology::Cosmology cosmology, const bool update_coordinates=true)
set the member m_redshift, updating the comoving coordinates accordingly (if already set)
double m_ra
Right Ascension.
virtual int parent() const
get the private member m_parent
virtual void set_magnitudeG(const double magnitudeG)
set the member m_magnitudeG
double dec_tile() const
get the member m_dec_tile
virtual void set_vmax(const double vmax)
set the private member m_vmax
virtual bool isSet_vx()
check if the member m_vx is set
virtual void set_zcm(const double zcm)
set the private member m_zcm
void set_field(const std::string field)
set the member m_field
virtual bool isSet_massinfall()
check if the member m_massinfall is set
void set_sn(const double sn)
set the member m_sn
virtual void set_magnitudeI(const double magnitudeI)
set the member m_magnitudeI
virtual bool isSet_veldisp()
check if the member m_veldisp is set
virtual void set_lensingWeight(const double lensingWeight)
set the member m_lensingWeight
virtual double zcm() const
get the private member m_zcm
double m_y_displacement
displacement along the y-axis
virtual double vmax() const
get the private member m_vmax
virtual double odds() const
get the member m_odds
virtual void set_tot_mass(const double tot_mass)
set the private member m_tot_mass
virtual double massinfall() const
get the member m_massinfall
virtual void set_shear2(const double shear2)
set the member m_shear2
virtual std::shared_ptr< Object > getShared()
function that allows copying private variables of the class when an object of class Catalogue is copi...
virtual double tot_mass() const
get the private member m_tot_mass
virtual double vz() const
get the member m_vz
double zz() const
get the member m_zz
virtual void set_radius(const double radius)
set the member m_radius
Object()=default
default constructor
Object(const observedCoordinates coord, const CoordinateUnits inputUnits, const double weight=1., const long region=par::defaultLong, const int ID=par::defaultInt, const std::string field=par::defaultString, const double x_displacement=par::defaultDouble, const double y_displacement=par::defaultDouble, const double z_displacement=par::defaultDouble, const double redshiftMin=par::defaultDouble, const double redshiftMax=par::defaultDouble, const double sn=par::defaultDouble)
constructor that uses observed coordinates in any angular units
virtual void set_vmax_rad(const double vmax_rad)
set the private member m_vmax_rad
Object(const comovingCoordinates coord, const double weight=1., const long region=par::defaultLong, const int ID=par::defaultInt, const std::string field=par::defaultString, const double x_displacement=par::defaultDouble, const double y_displacement=par::defaultDouble, const double z_displacement=par::defaultDouble, const double redshiftMin=par::defaultDouble, const double redshiftMax=par::defaultDouble, const double sn=par::defaultDouble)
constructor that uses comoving coordinates
void set_z_displacement(const double z_displacement)
set the member m_z_displacement
virtual void set_spin_y(const double spin_y)
set the private member m_spin_y
double m_ra_tile
Tile central Right Ascension.
virtual void set_mstar(const double mstar)
set the member m_mstar
long region() const
get the member m_region
virtual bool isSet_tot_mass()
check if the member m_tot_mass is set
virtual bool isSet_vz()
check if the member m_vz is set
bool isSet_field()
check if the member m_field is set
void set_ID(const int ID)
set the member m_ID
Object(const double xx, const double yy, const double zz, const double ra, const double dec, const double redshift, const double weight=1., const long region=par::defaultLong, const int ID=par::defaultInt, const std::string field=par::defaultString, const double x_displacement=par::defaultDouble, const double y_displacement=par::defaultDouble, const double z_displacement=par::defaultDouble, const double redshiftMin=par::defaultDouble, const double redshiftMax=par::defaultDouble, const double sn=par::defaultDouble)
constructor that uses both comoving and observed coordinates
double m_redshift
redshift
double dec() const
get the member m_dec
bool isSet_dec()
check if the member m_dec is set
virtual bool isSet_lensingCalib()
check if the member m_lensingCalib is set
virtual bool isSet_zcm()
check if the member m_zcm is set
virtual bool isSet_SFR()
check if the member m_SFR is set
virtual bool isSet_densityContrast()
check if the member m_densityContrast is set
void set_dec_tile(const double dec, const CoordinateUnits inputUnits=CoordinateUnits::_radians_)
set the member m_dec_tile
bool isSet_x_displacement()
check if the member m_x_displacement is set
virtual double densityContrast() const
get the member m_radius
virtual double lensingCalib() const
get the member m_lensingCalib
virtual double spin_z() const
get the private member m_spin_z
double m_dc
comoving distance
virtual bool isSet_nsub()
check if the member m_nsub is set
void set_yy(const double yy)
set the member m_yy
virtual bool isSet_shear2()
check if the member m_shear2 is set
virtual bool isSet_odds()
check if the member m_odds is set
virtual double shear1() const
get the member m_shear1
virtual void set_proxyerror(const double value)
set the member m_proxyerror
virtual void set_parent(const int parent)
set the private member m_parent
double m_x_displacement
displacement along the x-axis
void set_redshiftMax(const double redshiftMax)
set the member m_redshiftMax
virtual double spin_y() const
get the private member m_spin_y
virtual bool isSet_veldisp_estimate()
check if the member m_veldisp_estimate is set
virtual bool isSet_mass_estimate()
check if the member m_mass_estimate is set
long m_region
region (used for jackknife/bootstrap)
virtual bool isSet_vmax()
check if the member m_vmax is set
virtual int IDHost() const
get the member m_IDHost
virtual double mass_estimate() const
get the private member m_mass_estimate
virtual double magnitudeI() const
get the member m_magnitudeI
double m_redshiftMax
maximum redshift
virtual void set_magnitudeR(const double magnitudeR)
set the member m_magnitudeR
virtual bool isSet_parent()
check if the member m_parent is set
virtual double vx() const
get the member m_vx
virtual void set_densityContrast(const double densityContrast)
set the member m_densityContrast
virtual void set_spin_x(const double spin_x)
set the private member m_spin_x
virtual void set_mass(const double mass)
set the member m_mass
virtual int nsub() const
get the private member m_nsub
void set_ra(const double ra, const CoordinateUnits inputUnits=CoordinateUnits::_radians_)
set the member m_ra, updating the comoving coordinates accordingly (if already set)
virtual void set_magnitudeU(const double magnitudeU)
set the member m_magnitudeU
void set_weight(const double weight)
set the member m_weight
virtual bool isSet_spin_x()
check if the member m_spin_x is set
Object(const observedCoordinates coord, const cosmology::Cosmology &cosm, const double weight=1., const long region=par::defaultLong, const int ID=par::defaultInt, const std::string field=par::defaultString, const double x_displacement=par::defaultDouble, const double y_displacement=par::defaultDouble, const double z_displacement=par::defaultDouble, const double redshiftMin=par::defaultDouble, const double redshiftMax=par::defaultDouble, const double sn=par::defaultDouble)
constructor that uses observed coordinates in radians and a cosmological model to estimate the comovi...
virtual void set_odds(const double odds)
set the member m_odds
virtual double radius_estimate() const
get the private member m_radius_estimate
virtual void set_centralDensity(const double centralDensity)
set the member m_centralDensity
virtual void set_veldisp(const double veldisp)
set the private member m_veldisp
virtual double magnitudeR() const
get the member m_magnitudeR
Object(const observedCoordinates coord, const double weight=1., const long region=par::defaultLong, const int ID=par::defaultInt, const std::string field=par::defaultString, const double x_displacement=par::defaultDouble, const double y_displacement=par::defaultDouble, const double z_displacement=par::defaultDouble, const double redshiftMin=par::defaultDouble, const double redshiftMax=par::defaultDouble, const double sn=par::defaultDouble)
constructor that uses observed coordinates in radians
virtual double mstar() const
get the member m_mstar
double y_displacement() const
get the member m_y_displacement
double m_yy
comoving coordinate y
virtual double spin_x() const
get the private member m_spin_x
void set_region(const long region)
set the member m_region
virtual double mass_proxy_error() const
get the member m_mass_proxy_error
virtual double shear2() const
get the member m_shear1
void set_zz(const double zz)
set the member m_zz
virtual void set_magnitude(const double magnitude)
set the member m_magnitude
void set_ra_tile(const double ra, const CoordinateUnits inputUnits=CoordinateUnits::_radians_)
set the member m_ra_tile
virtual bool isSet_bias()
check if the member m_bias is set
double dc() const
get the member m_dc
virtual double magnitudeU() const
get the member m_magnitudeU
bool isSet_zz()
check if the member m_zz is set
virtual bool isSet_ycm()
check if the member m_ycm is set
virtual double veldisp_estimate() const
get the private member m_veldisp_estimate
virtual bool isSet_magnitudeU()
check if the member m_magnitudeU is set
virtual bool isSet_radius_estimate()
check if the member m_radius_estimate is set
void set_redshiftMin(const double redshiftMin)
set the member m_redshiftMin
virtual bool isSet_sSFR()
check if the private member Galaxy::m_sSFR is set
static std::shared_ptr< Object > Create(const ObjectType ObjectType)
static factory used to construct objects of any type, providing in input comoving coordinates
virtual bool isSet_magnitudeI()
check if the member m_magnitudeI is set
virtual void set_lensingCalib(const double lensingCalib)
set the member m_lensingCalib
virtual double lensingWeight() const
get the member m_lensingWeight
virtual void set_mass_proxy_error(const double mass_proxy_error)
set the member m_mass_proxy_error
bool isSet_dec_tile()
check if the member m_dec_tile is set
virtual bool isSet_centralDensity()
check if the member m_centralDensity is set
virtual double proxyerror() const
get the member m_proxyerror
double redshiftMax() const
get the member m_redshiftMax
bool isSet_dc()
check if the member m_dc is set
virtual double SFR() const
get the private member Galaxy::m_SFR
bool isSet_weight()
check if the member m_weight is set
virtual bool isSet_mass_proxy_error()
check if the member m_mass_proxy_error is set
virtual void set_SFR(const double SFR)
set the private member Galaxy::m_SFR
virtual double galaxyTag() const
get the member m_galaxyTag
bool isSet_y_displacement()
check if the member m_y_displacement is set
virtual double vy() const
get the member m_vy
virtual std::vector< std::shared_ptr< Object > > satellites() const
get the member m_satellites
double weight() const
get the member m_weight
virtual bool isSet_xcm()
check if the member m_xcm is set
virtual bool isSet_IDHost()
get the member m_IDHost
double sn() const
get the member m_sn
double ra_tile() const
get the member m_ra_tile
double m_z_displacement
displacement along the z-axis
bool isSet_sn()
check if the member m_sn is set
virtual void set_shear1(const double shear1)
set the member m_shear1
virtual bool isSet_lensingWeight()
check if the member m_lensingWeight is set
virtual bool isSet_spin_z()
check if the member m_spin_z is set
virtual bool isSet_spin_y()
check if the member m_spin_y is set
virtual bool isSet_radius()
check if the member m_radius is set
virtual bool isSet_mass_proxy()
check if the member m_mass_proxy is set
virtual void set_spin_z(const double spin_z)
set the private member m_spin_z
double m_zz
comoving coordinate z
virtual std::vector< std::vector< unsigned int > > nearCells() const
get the virtual member m_nearCells, member of ChainMeshCell
virtual void set_mass_proxy(const double mass_proxy)
set the member m_mass_proxy
virtual ~Object()=default
default destructor
double m_dec_tile
Tile central Declination.
virtual double mass_proxy() const
get the member m_mass_proxy
double ra() const
get the member m_ra
virtual void set_veldisp_estimate(const double veldisp_estimate)
set the private member m_veldisp_estimate
std::string field() const
get the member m_field
Object(const int ID)
specific constructor for ChainMeshCell
void set_dec(const double dec, const CoordinateUnits inputUnits=CoordinateUnits::_radians_)
set the member m_dec, updating the comoving coordinates accordingly (if already set)
double m_xx
comoving coordinate x
bool isSet_ra_tile()
check if the member m_ra_tile is set
bool isSet_redshiftMin()
check if the member m_redshiftMin is set
virtual void set_xcm(const double xcm)
set the private member m_xcm
virtual double centralDensity() const
get the member m_radius
virtual double xcm() const
get the private member m_xcm
void set_dc(const double dc)
set the member m_dc, updating the comoving coordinates accordingly
virtual void set_satellite(const std::shared_ptr< Object > satellite)
set the private member m_satellites
bool isSet_yy() const
check if the member m_yy is set
virtual void set_nsub(const int nsub)
set the private member m_nsub
virtual bool isSet_generic()
check if the member m_generic is set
double m_sn
Signal-to-noise.
virtual void set_massinfall(const double massinfall)
set the member m_massinfall
virtual void set_satellites(const std::vector< std::shared_ptr< Object >> satellites)
set the private member m_satellites
bool isSet_ra()
check if the member m_ra is set
virtual void set_mass_estimate(const double mass_estimate)
set the private member m_mass_estimate
virtual std::vector< unsigned int > part() const
get the virtual member m_part, member of ChainMeshCell
bool isSet_z_displacement()
check if the member m_z_displacement is set
double yy() const
get the member m_yy
virtual double veldisp() const
get the private member m_veldisp
double redshift() const
get the member m_redshift
virtual void set_sSFR(const double sSFR)
set the private member Galaxy::m_sSFR
virtual bool isSet_mass()
check if the member m_mass is set
double x_displacement() const
get the member m_x_displacement
int ID() const
get the member m_radius
virtual void set_ycm(const double ycm)
set the private member m_ycm
virtual bool isSet_magnitudeG()
check if the member m_magnitudeG is set
virtual bool isSet_ID()
check if the member m_ID is set
std::vector< double > coords() const
get the object coordinates
virtual void set_vx(const double vx)
set the member m_vx
double m_redshiftMin
minimum redshift
double xx() const
get the member m_xx
Object(const comovingCoordinates coord, const cosmology::Cosmology &cosm, const double z1_guess=0., const double z2_guess=10., const double weight=1., const long region=par::defaultLong, const int ID=par::defaultInt, const std::string field=par::defaultString, const double x_displacement=par::defaultDouble, const double y_displacement=par::defaultDouble, const double z_displacement=par::defaultDouble, const double redshiftMin=par::defaultDouble, const double redshiftMax=par::defaultDouble, const double sn=par::defaultDouble)
constructor that uses comoving coordinates and a cosmological model to estimate the redshift
virtual void set_galaxyTag(const double galaxyTag)
set the member m_galaxyTag
virtual void set_vy(const double vy)
set the member m_vy
bool isSet_xx() const
check if the member m_xx is set
double z_displacement() const
get the member m_z_displacement
virtual double sSFR() const
get the private member Galaxy::m_sSFR
std::string m_field
observed field
virtual double radius() const
get the member m_radius
void set_y_displacement(const double y_displacement)
set the member m_y_displacement
virtual bool isSet_galaxyTag()
get the member m_galaxyTag
virtual void set_IDHost(const int IDHost)
set the member m_IDHost
double redshiftMin() const
get the member m_redshiftMin
virtual bool isSet_shear1()
check if the member m_shear1 is set
virtual void set_part(const std::vector< unsigned int > part)
set the virtual private member m_part (member of ChainMeshCell)
virtual bool isSet_magnitude()
check if the member m_magnitude is set
double Redshift(const double d_c=1., const double z1_guess=0., const double z2_guess=10., const double prec=0.0001) const
redshift at a given comoving distance
double D_C(const double redshift) const
the comoving line-of-sight distance at a given redshift
static const std::string defaultString
default std::string value
static const long defaultLong
default long value
static const double defaultDouble
default double value
static const int defaultInt
default integer value
std::vector< std::string > ObjectTypeNames()
return a vector containing the ObjectType names
ObjectType ObjectTypeCast(const int objectTypeIndex)
cast an enum of type ObjectType from its index
ObjectType
the object types
@ _Cluster_
galaxy cluster
The global namespace of the CosmoBolognaLib
bool isSet(const std::string var)
check if the value of a [string] variable has already been set
void cartesian_coord(const double ra, const double dec, const double dd, double &XX, double &YY, double &ZZ)
conversion from polar coordinates to Cartesian coordinates
int ErrorCBL(const std::string msg, const std::string functionCBL, const std::string fileCBL, const cbl::glob::ExitCode exitCode=cbl::glob::ExitCode::_error_)
throw an exception: it is used for handling exceptions inside the CosmoBolognaLib
double radians(const double angle, const CoordinateUnits inputUnits=CoordinateUnits::_degrees_)
conversion to radians
CoordinateUnits
the coordinate units
@ _radians_
angle in radians
void polar_coord(const double XX, const double YY, const double ZZ, double &ra, double &dec, double &dd)
conversion from Cartesian coordinates to polar coordinates