CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
Object.h
Go to the documentation of this file.
1 /********************************************************************
2  * Copyright (C) 2015 by Federico Marulli and Alfonso Veropalumbo *
3  * federico.marulli3@unibo.it *
4  * *
5  * This program is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU General Public License as *
7  * published by the Free Software Foundation; either version 2 of *
8  * the License, or (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public *
16  * License along with this program; if not, write to the Free *
17  * Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ********************************************************************/
20 
36 #ifndef __OBJECT__
37 #define __OBJECT__
38 
39 
40 // ============================================================================================
41 
42 
43 namespace cbl {
44 
45  namespace catalogue {
46 
51  enum class ObjectType {
52 
54  _Random_,
55 
57  _Mock_,
58 
60  _Halo_,
61 
63  _Galaxy_,
64 
66  _Cluster_,
67 
69  _Void_,
70 
72  _HostHalo_,
73 
74  // chain Mesh cell
75  _ChainMeshCell_
76 
77  };
78 
85  inline std::vector<std::string> ObjectTypeNames ()
86  { return {"Random", "Mock", "Halo", "Galaxy", "Cluster", "Void", "HostHalo", "ChainMeshCell"}; }
87 
94  inline ObjectType ObjectTypeCast (const int objectTypeIndex)
95  { return castFromValue<ObjectType>(objectTypeIndex); }
96 
103  inline ObjectType ObjectTypeCast (const std::string objectTypeName)
104  { return castFromName<ObjectType>(objectTypeName, ObjectTypeNames()); }
105 
112  inline std::vector<ObjectType> ObjectTypeCast (const std::vector<int> objectTypeIndeces)
113  { return castFromValues<ObjectType>(objectTypeIndeces); }
114 
121  inline std::vector<ObjectType> ObjectTypeCast (const std::vector<std::string> objectTypeNames)
122  { return castFromNames<ObjectType>(objectTypeNames, ObjectTypeNames()); }
123 
132  class Object {
133 
134  protected:
135 
138 
141 
144 
147 
150 
153 
156 
159 
162 
164  double m_weight = 1.;
165 
168 
171 
174 
177 
180 
183 
186 
189 
192 
193 
194  public :
195 
200 
205  Object () = default;
206 
213  Object (const int ID)
214  : m_ID(ID) {}
215 
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)
245 
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)
283  {
285  m_redshift = cosm.Redshift(m_dc, z1_guess, z2_guess);
286  }
287 
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)
317 
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)
350 
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)
385  {
386  m_dc = cosm.D_C(m_redshift);
388  }
389 
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)
425  {
426  m_dc = cosm.D_C(m_redshift);
428  }
429 
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)
453  {}
454 
455 
463  virtual std::shared_ptr<Object> getShared() {
464  return std::make_shared<Object>(*this);
465  }
466 
470  virtual ~Object () = default;
471 
473 
474 
479 
489  static std::shared_ptr<Object> Create (const ObjectType ObjectType );
490 
517  static std::shared_ptr<Object> Create (const ObjectType ObjectType, 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);
518 
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);
554 
581  static std::shared_ptr<Object> Create (const ObjectType ObjectType, 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);
582 
611  static std::shared_ptr<Object> Create (const ObjectType ObjectType, 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);
612 
643  static std::shared_ptr<Object> Create (const ObjectType ObjectType, 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);
644 
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);
678 
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);
717 
718 
731  static std::shared_ptr<Object> Create (const int ID=par::defaultInt, const std::vector<unsigned int> part={}, std::vector<std::vector<unsigned int>> nearCells={});
733 
734 
739 
744  double xx () const
745  { return (cbl::isSet(m_xx)) ? m_xx : ErrorCBL("the m_xx variable is not defined!", "xx", "Object.h"); }
746 
751  double yy () const
752  { return (cbl::isSet(m_yy)) ? m_yy : ErrorCBL("the m_yy variable is not defined!", "yy", "Object.h"); }
753 
758  double zz () const
759  { return (cbl::isSet(m_zz)) ? m_zz : ErrorCBL("the m_zz variable is not defined!", "zz", "Object.h"); }
760 
765  double dc () const
766  { return (cbl::isSet(m_dc)) ? m_dc : ErrorCBL("the m_dc variable is not defined!", "dc", "Object.h"); }
767 
772  double ra () const
773  { return (cbl::isSet(m_ra)) ? m_ra : ErrorCBL("the m_ra variable is not defined!", "ra", "Object.h"); }
774 
779  double dec () const
780  { return (cbl::isSet(m_dec)) ? m_dec : ErrorCBL("the m_dec variable is not defined!", "dec", "Object.h"); }
781 
786  double ra_tile () const
787  { return (cbl::isSet(m_ra_tile)) ? m_ra_tile : ErrorCBL("the m_ra_tile variable is not defined!", "ra_tile", "Object.h"); }
788 
793  double dec_tile () const
794  { return (cbl::isSet(m_dec_tile)) ? m_dec_tile : ErrorCBL("the m_dec_tile variable is not defined!", "dec_tile", "Object.h"); }
795 
800  double sn () const
801  { return (cbl::isSet(m_sn)) ? m_sn : ErrorCBL("the m_sn variable is not defined!", "sn", "Object.h"); }
802 
807  double redshift () const
808  { return (cbl::isSet(m_redshift)) ? m_redshift : ErrorCBL("the m_redshift variable is not defined!", "redshift", "Object.h"); }
809 
814  double redshiftMin () const
815  { return (cbl::isSet(m_redshiftMin)) ? m_redshiftMin : ErrorCBL("the m_redshiftMin variable is not defined!", "redshiftMin", "Object.h"); }
816 
821  double redshiftMax () const
822  { return (cbl::isSet(m_redshiftMin)) ? m_redshiftMax : ErrorCBL("the m_redshiftMax variable is not defined!", "redshiftMax", "Object.h"); }
823 
828  double weight () const
829  { return (cbl::isSet(m_weight)) ? m_weight : ErrorCBL("the m_weight variable is not defined!", "weight", "Object.h"); }
830 
835  long region () const
836  { return (cbl::isSet(m_region)) ? m_region : ErrorCBL("the m_region variable is not defined!", "region", "Object.h"); }
837 
843  int ID () const
844  { return (cbl::isSet(m_ID)) ? m_ID : cbl::ErrorCBL("the m_ID variable is not defined!", "ID", "Object.h"); }
845 
850  std::string field () const
851  {
852  if (!cbl::isSet(m_field)) ErrorCBL("the m_field variable is not defined!", "field", "Object.h");
853  return m_field;
854  }
855 
860  double x_displacement () const
861  { return (cbl::isSet(m_x_displacement)) ? m_x_displacement : ErrorCBL("the m_x_displacement variable is not defined!", "x_displacement", "Object.h"); }
862 
867  double y_displacement () const
868  { return (cbl::isSet(m_y_displacement)) ? m_y_displacement : ErrorCBL("the m_y_displacement variable is not defined!", "y_displacement", "Object.h"); }
869 
874  double z_displacement () const
875  { return (cbl::isSet(m_z_displacement)) ? m_z_displacement : ErrorCBL("the m_z_displacement variable is not defined!", "z_displacement", "Object.h"); }
876 
881  std::vector<double> coords () const
882  {
883  if (!cbl::isSet(m_xx) || !cbl::isSet(m_yy) || !cbl::isSet(m_zz))
884  ErrorCBL("one or more of the m_xx, m_yy, m_zz variables is not defined!", "coords", "Object.h");
885  return {m_xx, m_yy, m_zz};
886  }
887 
894  virtual double vx () const
895  { return cbl::ErrorCBL("", "vx", "Object.h"); }
896 
903  virtual double vy () const
904  { return cbl::ErrorCBL("", "vy", "Object.h"); }
905 
912  virtual double vz () const
913  { return cbl::ErrorCBL("", "vz", "Object.h"); }
914 
920  virtual double mass () const
921  { return cbl::ErrorCBL("", "mass", "Object.h"); }
922 
927  virtual double proxyerror () const
928  { return cbl::ErrorCBL("", "proxyerror", "Object.h"); }
929 
935  virtual double magnitude () const
936  { return cbl::ErrorCBL("", "magnitude", "Object.h"); }
937 
943  virtual double magnitudeU () const
944  { return cbl::ErrorCBL("", "magnitudeU", "Object.h"); }
945 
951  virtual double magnitudeG () const
952  { return cbl::ErrorCBL("", "magnitudeG", "Object.h"); }
953 
959  virtual double magnitudeR () const
960  { return cbl::ErrorCBL("", "magnitudeR", "Object.h"); }
961 
967  virtual double magnitudeI () const
968  { return cbl::ErrorCBL("", "magnitudeI", "Object.h"); }
969 
974  virtual double odds () const
975  { return cbl::ErrorCBL("", "odds", "Object.h"); }
976 
981  virtual double shear1 () const
982  { return cbl::ErrorCBL("", "shear1", "Object.h"); }
983 
988  virtual double shear2 () const
989  { return cbl::ErrorCBL("", "shear2", "Object.h"); }
990 
995  virtual double lensingWeight () const
996  { return cbl::ErrorCBL("", "lensingWeight", "Object.h"); }
997 
1002  virtual double lensingCalib () const
1003  { return cbl::ErrorCBL("", "lensingCalib", "Object.h"); }
1004 
1009  virtual double SFR () const
1010  { return cbl::ErrorCBL("", "SFR", "Object.h"); }
1011 
1016  virtual double sSFR () const
1017  { return cbl::ErrorCBL("", "sSFR", "Object.h"); }
1018 
1024  virtual double mass_proxy () const
1025  { return cbl::ErrorCBL("", "mass_proxy", "Object.h"); }
1026 
1032  virtual double mass_proxy_error () const
1033  { return cbl::ErrorCBL("", "mass_proxy_error", "Object.h"); }
1034 
1040  virtual int IDHost () const
1041  { return cbl::ErrorCBL("", "IDHost", "Object.h"); }
1042 
1048  virtual double galaxyTag () const
1049  { cbl::ErrorCBL("", "galaxyTag", "Object.h"); return {}; }
1050 
1056  virtual double mstar () const
1057  { return cbl::ErrorCBL("", "mstar", "Object.h"); }
1058 
1064  virtual double massinfall () const
1065  { return cbl::ErrorCBL("", "massinfall", "Object.h"); }
1066 
1072  virtual double bias () const
1073  { return cbl::ErrorCBL("", "bias", "Object.h"); }
1074 
1080  virtual double generic () const
1081  { return cbl::ErrorCBL("", "generic", "Object.h"); }
1082 
1088  virtual double radius () const
1089  { return cbl::ErrorCBL("", "radius", "Object.h"); }
1090 
1096  virtual double densityContrast () const
1097  { return cbl::ErrorCBL("", "densityContrast", "Object.h"); }
1098 
1104  virtual double centralDensity () const
1105  { return cbl::ErrorCBL("", "centralDensity", "Object.h"); }
1106 
1112  virtual double mass_estimate () const
1113  { return cbl::ErrorCBL("", "mass_estimate", "Object.h"); }
1114 
1120  virtual double radius_estimate () const
1121  { return cbl::ErrorCBL("", "radius_estimate", "Object.h"); }
1122 
1128  virtual double veldisp_estimate () const
1129  { return cbl::ErrorCBL("", "veldisp_estimate", "Object.h"); }
1130 
1136  virtual double xcm () const
1137  { return cbl::ErrorCBL("", "xcm", "Object.h"); }
1138 
1144  virtual double ycm () const
1145  { return cbl::ErrorCBL("", "ycm", "Object.h"); }
1146 
1152  virtual double zcm () const
1153  { return cbl::ErrorCBL("", "zcm", "Object.h"); }
1154 
1160  virtual double spin_x () const
1161  { return cbl::ErrorCBL("", "spin_x", "Object.h"); }
1162 
1168  virtual double spin_y () const
1169  { return cbl::ErrorCBL("", "spin_y", "Object.h"); }
1170 
1176  virtual double spin_z () const
1177  { return cbl::ErrorCBL("", "spin_z", "Object.h"); }
1178 
1184  virtual double veldisp () const
1185  { return cbl::ErrorCBL("", "veldisp", "Object.h"); }
1186 
1192  virtual double vmax () const
1193  { return cbl::ErrorCBL("", "vmax", "Object.h"); }
1194 
1200  virtual double vmax_rad () const
1201  { return cbl::ErrorCBL("", "vmax_rad", "Object.h"); }
1202 
1208  virtual double tot_mass () const
1209  { return cbl::ErrorCBL("", "tot_mass", "Object.h"); }
1210 
1216  virtual int parent () const { return cbl::ErrorCBL("", "parent", "Object.h"); }
1217 
1223  virtual int nsub () const
1224  { return cbl::ErrorCBL("", "nsub", "Object.h"); }
1225 
1231  virtual std::vector<std::shared_ptr<Object>> satellites () const
1232  { cbl::ErrorCBL("", "satellites", "Object.h"); return {}; }
1233 
1239  virtual std::vector<unsigned int> part () const
1240  { return {}; }
1241 
1247  virtual std::vector<std::vector<unsigned int>> nearCells () const
1248  { return {}; }
1250 
1251 
1256 
1261  void set_xx (const double xx)
1262  { m_xx = xx; }
1263 
1268  void set_yy (const double yy)
1269  { m_yy = yy; }
1270 
1275  void set_zz (const double zz)
1276  { m_zz = zz; }
1277 
1284  void set_ra (const double ra, const CoordinateUnits inputUnits=CoordinateUnits::_radians_)
1285  {
1286  m_ra = radians(ra, inputUnits);
1288  }
1289 
1296  void set_dec (const double dec, const CoordinateUnits inputUnits=CoordinateUnits::_radians_)
1297  {
1298  m_dec = radians(dec, inputUnits);
1300  }
1301 
1307  void set_ra_tile (const double ra, const CoordinateUnits inputUnits=CoordinateUnits::_radians_)
1308  {
1309  m_ra_tile = radians(ra, inputUnits);
1310  }
1311 
1317  void set_dec_tile (const double dec, const CoordinateUnits inputUnits=CoordinateUnits::_radians_)
1318  {
1319  m_dec_tile = radians(dec, inputUnits);
1320  }
1321 
1326  void set_sn (const double sn)
1327  { m_sn = sn; }
1328 
1342  void set_redshift (const double redshift, const cosmology::Cosmology cosmology, const bool update_coordinates=true)
1343  {
1344  m_redshift = redshift;
1345  if (update_coordinates) {
1346  m_dc = cosmology.D_C(m_redshift);
1348  }
1349  }
1350 
1355  void set_redshiftMin (const double redshiftMin)
1356  { m_redshiftMin = redshiftMin; }
1357 
1362  void set_redshiftMax (const double redshiftMax)
1363  { m_redshiftMax = redshiftMax; }
1364 
1369  virtual void set_odds (const double odds)
1370  { (void)odds; cbl::ErrorCBL("", "set_odds", "Object.h"); }
1371 
1376  virtual void set_shear1 (const double shear1)
1377  { (void)shear1; cbl::ErrorCBL("", "set_shear1", "Object.h"); }
1378 
1383  virtual void set_shear2 (const double shear2)
1384  { (void)shear2; cbl::ErrorCBL("", "set_shear2", "Object.h"); }
1385 
1390  virtual void set_lensingWeight (const double lensingWeight)
1391  { (void)lensingWeight; cbl::ErrorCBL("", "set_lensingWeight", "Object.h"); }
1392 
1397  virtual void set_lensingCalib (const double lensingCalib)
1398  { (void)lensingCalib; cbl::ErrorCBL("", "set_lensingCalib", "Object.h"); }
1399 
1405  void set_dc (const double dc)
1406  {
1407  m_dc = dc;
1409  }
1410 
1415  void set_weight (const double weight)
1416  { m_weight = weight; }
1417 
1423  void set_region (const long region)
1424  { if (region<0) ErrorCBL("Error in Object.h: region must be >0 !", "", "Object.h"); m_region = region; }
1425 
1430  void set_ID (const int ID)
1431  { m_ID = ID; }
1432 
1437  void set_field (const std::string field)
1438  { m_field = field; }
1439 
1446 
1453 
1460 
1465  virtual void set_vx (const double vx)
1466  { (void)vx; cbl::ErrorCBL("", "set_vx", "Object.h"); }
1467 
1472  virtual void set_vy (const double vy)
1473  { (void)vy; cbl::ErrorCBL("", "set_vy", "Object.h"); }
1474 
1479  virtual void set_vz (const double vz)
1480  { (void)vz; cbl::ErrorCBL("", "set_vz", "Object.h"); }
1481 
1486  virtual void set_mass (const double mass)
1487  { (void)mass; cbl::ErrorCBL("", "set_mass", "Object.h"); }
1488 
1493  virtual void set_IDHost (const int IDHost)
1494  { (void)IDHost; cbl::ErrorCBL("", "set_IDHost", "Object.h"); }
1495 
1500  virtual void set_galaxyTag (const double galaxyTag)
1501  { (void)galaxyTag; cbl::ErrorCBL("", "set_galaxyTag", "Object.h"); }
1502 
1507  virtual void set_mstar (const double mstar)
1508  { (void)mstar; cbl::ErrorCBL("", "set_mstar", "Object.h"); }
1509 
1514  virtual void set_massinfall (const double massinfall)
1515  { (void)massinfall; cbl::ErrorCBL("", "set_massinfall", "Object.h"); }
1516 
1521  virtual void set_proxyerror (const double value)
1522  { (void)value; cbl::ErrorCBL("", "set_proxyerror", "Object.h"); }
1523 
1528  virtual void set_magnitude (const double magnitude)
1529  { (void)magnitude; cbl::ErrorCBL("", "set_magnitude", "Object.h"); }
1530 
1535  virtual void set_magnitudeU (const double magnitudeU)
1536  { (void)magnitudeU; cbl::ErrorCBL("", "set_magnitudeU", "Object.h"); }
1537 
1542  virtual void set_magnitudeG (const double magnitudeG)
1543  { (void)magnitudeG; cbl::ErrorCBL("", "set_magnitudeG", "Object.h"); }
1544 
1549  virtual void set_magnitudeR (const double magnitudeR)
1550  { (void)magnitudeR; cbl::ErrorCBL("", "set_magnitudeR", "Object.h"); }
1551 
1556  virtual void set_magnitudeI (const double magnitudeI)
1557  { (void)magnitudeI; cbl::ErrorCBL("", "set_magnitudeI", "Object.h"); }
1558 
1563  virtual void set_SFR (const double SFR)
1564  { (void)SFR; cbl::ErrorCBL("", "set_SFR", "Object.h"); }
1565 
1570  virtual void set_sSFR (const double sSFR)
1571  { (void)sSFR; cbl::ErrorCBL("", "set_sSFR", "Object.h"); }
1572 
1577  virtual void set_mass_proxy (const double mass_proxy)
1578  { (void)mass_proxy; cbl::ErrorCBL("", "set_mass_proxy", "Object.h"); }
1579 
1584  virtual void set_mass_proxy_error (const double mass_proxy_error)
1585  { (void)mass_proxy_error; cbl::ErrorCBL("", "set_mass_proxy_error", "Object.h"); }
1586 
1593  virtual void set_bias (const double bias)
1594  { (void)bias; cbl::ErrorCBL("", "set_bias", "Object.h"); }
1595 
1602  virtual void set_generic (const double generic)
1603  { (void)generic; cbl::ErrorCBL("", "set_generic", "Object.h"); }
1604 
1609  virtual void set_radius (const double radius)
1610  { (void)radius; cbl::ErrorCBL("", "set_radius", "Object.h"); }
1611 
1616  virtual void set_densityContrast (const double densityContrast)
1617  { (void)densityContrast; cbl::ErrorCBL("", "set_densityContrast", "Object.h"); }
1618 
1624  virtual void set_centralDensity (const double centralDensity)
1625  { (void)centralDensity; cbl::ErrorCBL("", "set_centralDensity", "Object.h"); }
1626 
1631  virtual void set_mass_estimate (const double mass_estimate)
1632  { (void)mass_estimate; cbl::ErrorCBL("", "set_mass_estimate", "Object.h"); }
1633 
1638  virtual void set_radius_estimate (const double radius_estimate)
1639  { (void)radius_estimate; cbl::ErrorCBL("", "set_radius_estimate", "Object.h"); }
1640 
1641 
1646  virtual void set_veldisp_estimate (const double veldisp_estimate)
1647  { (void)veldisp_estimate; cbl::ErrorCBL("", "set_veldisp_estimate", "Object.h"); }
1648 
1653  virtual void set_xcm (const double xcm)
1654  { (void)xcm; cbl::ErrorCBL("", "set_xcm", "Object.h"); }
1655 
1660  virtual void set_ycm (const double ycm)
1661  { (void)ycm; cbl::ErrorCBL("", "set_ycm", "Object.h"); }
1662 
1667  virtual void set_zcm (const double zcm)
1668  { (void)zcm; cbl::ErrorCBL("", "set_zcm", "Object.h"); }
1669 
1674  virtual void set_spin_x (const double spin_x)
1675  { (void)spin_x; cbl::ErrorCBL("", "spin_x", "Object.h"); }
1676 
1681  virtual void set_spin_y (const double spin_y)
1682  { (void)spin_y; cbl::ErrorCBL("", "set_spin_y", "Object.h"); }
1683 
1688  virtual void set_spin_z (const double spin_z)
1689  { (void)spin_z; cbl::ErrorCBL("", "set_spin_z", "Object.h"); }
1690 
1695  virtual void set_veldisp (const double veldisp)
1696  { (void)veldisp; cbl::ErrorCBL("", "set_veldisp", "Object.h"); }
1697 
1702  virtual void set_vmax (const double vmax)
1703  { (void)vmax; cbl::ErrorCBL("", "set_vmax", "Object.h"); }
1704 
1709  virtual void set_vmax_rad (const double vmax_rad)
1710  { (void)vmax_rad; cbl::ErrorCBL("", "set_vmax_rad", "Object.h"); }
1711 
1716  virtual void set_tot_mass (const double tot_mass)
1717  { (void)tot_mass; cbl::ErrorCBL("", "set_tot_mass", "Object.h"); }
1718 
1723  virtual void set_parent (const int parent)
1724  { (void)parent; cbl::ErrorCBL("", "set_parent", "Object.h"); }
1725 
1730  virtual void set_nsub (const int nsub)
1731  { (void)nsub; cbl::ErrorCBL("", "set_nsub", "Object.h"); }
1732 
1739  virtual void set_satellite (const std::shared_ptr<Object> satellite)
1740  { (void)satellite; cbl::ErrorCBL("", "set_satellite", "Object.h"); }
1741 
1746  virtual void set_satellites (const std::vector<std::shared_ptr<Object>> satellites)
1747  { (void)satellites; cbl::ErrorCBL("", "set_satellites", "Object.h"); }
1748 
1754  virtual void set_part (const std::vector<unsigned int> part)
1755  { (void)part; cbl::ErrorCBL("", "set_part", "Object.h"); }
1756 
1762  virtual void set_nearCells (const std::vector<std::vector<unsigned int>> nearCells)
1763  { (void)nearCells; cbl::ErrorCBL("", "set_nearCells", "Object.h"); }
1764 
1766 
1767 
1772 
1778  bool isSet_xx () const
1779  { return (cbl::isSet(m_xx)) ? true : false; }
1780 
1786  bool isSet_yy () const
1787  { return (cbl::isSet(m_yy)) ? true : false; }
1788 
1794  bool isSet_zz ()
1795  { return (cbl::isSet(m_zz)) ? true : false; }
1796 
1802  bool isSet_ra ()
1803  { return (cbl::isSet(m_ra)) ? true : false; }
1804 
1810  bool isSet_dec ()
1811  { return (cbl::isSet(m_dec)) ? true : false; }
1812 
1819  { return (cbl::isSet(m_ra_tile)) ? true : false; }
1820 
1827  { return (cbl::isSet(m_dec_tile)) ? true : false; }
1828 
1834  bool isSet_sn ()
1835  { return (cbl::isSet(m_sn)) ? true : false; }
1836 
1844  { return (cbl::isSet(m_redshift)) ? true : false; }
1845 
1853  { return (cbl::isSet(m_redshiftMin)) ? true : false; }
1854 
1862  { return (cbl::isSet(m_redshiftMax)) ? true : false; }
1863 
1870  virtual bool isSet_shear1 ()
1871  { return cbl::ErrorCBL("", "isSet_shear1", "Object.h"); }
1872 
1879  virtual bool isSet_shear2 ()
1880  { return cbl::ErrorCBL("", "isSet_shear2", "Object.h"); }
1881 
1888  virtual bool isSet_odds ()
1889  { return cbl::ErrorCBL("", "isSet_odds", "Object.h"); }
1890 
1897  virtual bool isSet_lensingWeight ()
1898  { return cbl::ErrorCBL("", "isSet_lensingWeight", "Object.h"); }
1899 
1906  virtual bool isSet_lensingCalib ()
1907  { return cbl::ErrorCBL("", "isSet_lensingCalib", "Object.h"); }
1908 
1915  bool isSet_dc ()
1916  { return (cbl::isSet(m_dc)) ? true : false; }
1917 
1924  { return (cbl::isSet(m_weight)) ? true : false; }
1925 
1932  { return (cbl::isSet(m_region)) ? true : false; }
1933 
1939  bool isSet_field ()
1940  { return (cbl::isSet(m_field)) ? true : false; }
1941 
1950  { return (cbl::isSet(m_x_displacement)) ? true : false; }
1951 
1960  { return (cbl::isSet(m_y_displacement)) ? true : false; }
1961 
1970  { return (cbl::isSet(m_z_displacement)) ? true : false; }
1971 
1979  virtual bool isSet_vx ()
1980  { return cbl::ErrorCBL("", "isSet_vx", "Object.h"); }
1981 
1989  virtual bool isSet_vy ()
1990  { return cbl::ErrorCBL("", "isSet_vy", "Object.h"); }
1991 
1999  virtual bool isSet_vz ()
2000  { return cbl::ErrorCBL("", "isSet_vz", "Object.h"); }
2001 
2009  virtual bool isSet_mass ()
2010  { return cbl::ErrorCBL("", "isSet_mass", "Object.h"); }
2011 
2019  virtual bool isSet_magnitude ()
2020  { return cbl::ErrorCBL("", "isSet_magnitude", "Object.h"); }
2021 
2029  virtual bool isSet_magnitudeU ()
2030  { return cbl::ErrorCBL("", "isSet_magnitudeU", "Object.h"); }
2031 
2039  virtual bool isSet_magnitudeG ()
2040  { return cbl::ErrorCBL("", "isSet_magnitudeG", "Object.h"); }
2041 
2049  virtual bool isSet_magnitudeR ()
2050  { return cbl::ErrorCBL("", "isSet_magnitudeR", "Object.h"); }
2051 
2059  virtual bool isSet_magnitudeI ()
2060  { return cbl::ErrorCBL("", "isSet_magnitudeI", "Object.h"); }
2061 
2068  virtual bool isSet_SFR ()
2069  { return cbl::ErrorCBL("", "isSet_SFR", "Object.h"); }
2070 
2078  virtual bool isSet_sSFR ()
2079  { return cbl::ErrorCBL("", "isSet_sSFR", "Object.h"); }
2080 
2088  virtual bool isSet_mass_proxy ()
2089  { return cbl::ErrorCBL("", "isSet_mass_proxy", "Object.h"); }
2090 
2098  virtual bool isSet_mass_proxy_error ()
2099  { return cbl::ErrorCBL("", "isSet_mass_proxy_error", "Object.h"); }
2100 
2108  virtual bool isSet_bias ()
2109  { return cbl::ErrorCBL("", "isSet_bias", "Object.h"); }
2110 
2118  virtual bool isSet_generic ()
2119  { return cbl::ErrorCBL("", "isSet_generic", "Object.h"); }
2120 
2128  virtual bool isSet_radius ()
2129  { return cbl::ErrorCBL("", "isSet_radius", "Object.h"); }
2130 
2138  virtual bool isSet_densityContrast ()
2139  { return cbl::ErrorCBL("", "isSet_densityContrast", "Object.h"); }
2140 
2148  virtual bool isSet_centralDensity ()
2149  { return cbl::ErrorCBL("", "isSet_centralDensity", "Object.h"); }
2150 
2158  virtual bool isSet_mass_estimate ()
2159  { return cbl::ErrorCBL("", "isSet_mass_estimate", "Object.h"); }
2160 
2168  virtual bool isSet_radius_estimate ()
2169  { return cbl::ErrorCBL("", "isSet_radius_estimate", "Object.h"); }
2170 
2178  virtual bool isSet_veldisp_estimate ()
2179  { return cbl::ErrorCBL("", "isSet_veldisp_estimate", "Object.h"); }
2180 
2188  virtual bool isSet_xcm ()
2189  { return cbl::ErrorCBL("", "isSet_xcm", "Object.h"); }
2190 
2198  virtual bool isSet_ycm ()
2199  { return cbl::ErrorCBL("", "isSet_ycm", "Object.h"); }
2200 
2208  virtual bool isSet_zcm ()
2209  { return cbl::ErrorCBL("", "isSet_zcm", "Object.h"); }
2210 
2218  virtual bool isSet_spin_x ()
2219  { return cbl::ErrorCBL("", "isSet_spin_x", "Object.h"); }
2220 
2228  virtual bool isSet_spin_y ()
2229  { return cbl::ErrorCBL("", "isSet_spin_y", "Object.h"); }
2230 
2238  virtual bool isSet_spin_z ()
2239  { return cbl::ErrorCBL("", "isSet_spin_z", "Object.h"); }
2240 
2248  virtual bool isSet_veldisp ()
2249  { return cbl::ErrorCBL("", "isSet_veldisp", "Object.h"); }
2250 
2258  virtual bool isSet_vmax ()
2259  { return cbl::ErrorCBL("", "isSet_vmax", "Object.h"); }
2260 
2268  virtual bool isSet_vmax_rad ()
2269  { return cbl::ErrorCBL("", "isSet_vmax_rad", "Object.h"); }
2270 
2278  virtual bool isSet_tot_mass ()
2279  { return cbl::ErrorCBL("", "isSet_tot_mass", "Object.h"); }
2280 
2288  virtual bool isSet_parent ()
2289  { return cbl::ErrorCBL("", "isSet_parent", "Object.h"); }
2290 
2298  virtual bool isSet_nsub ()
2299  { return cbl::ErrorCBL("", "isSet_nsub", "Object.h"); }
2300 
2308  virtual bool isSet_ID ()
2309  { return cbl::ErrorCBL("", "isSet_ID", "Object.h"); }
2310 
2316  virtual bool isSet_IDHost ()
2317  { return cbl::ErrorCBL("", "isSet_IDHost", "Object.h"); }
2318 
2324  virtual bool isSet_galaxyTag ()
2325  { return cbl::ErrorCBL("", "isSet_galaxyTag", "Object.h"); }
2326 
2334  virtual bool isSet_mstar ()
2335  { return cbl::ErrorCBL("", "isSet_mstar", "Object.h"); }
2336 
2344  virtual bool isSet_massinfall ()
2345  { return cbl::ErrorCBL("", "isSet_massinfall", "Object.h"); }
2346 
2348 
2349  };
2350  }
2351 }
2352 
2353 #endif
The class Object.
Definition: Object.h:132
virtual double vmax_rad() const
get the private member m_vmax_rad
Definition: Object.h:1200
bool isSet_redshiftMax()
check if the member m_redshiftMax is set
Definition: Object.h:1861
virtual void set_bias(const double bias)
set the member m_bias
Definition: Object.h:1593
void set_xx(const double xx)
set the member m_xx
Definition: Object.h:1261
virtual bool isSet_vmax_rad()
check if the member m_vmax_rad is set
Definition: Object.h:2268
bool isSet_region()
check if the member m_region is set
Definition: Object.h:1931
virtual bool isSet_mstar()
check if the member m_mstar is set
Definition: Object.h:2334
virtual double mass() const
get the member m_mass
Definition: Object.h:920
virtual void set_generic(const double generic)
set the member m_generic
Definition: Object.h:1602
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...
Definition: Object.h:423
virtual double magnitudeG() const
get the member m_magnitudeG
Definition: Object.h:951
virtual bool isSet_magnitudeR()
check if the member m_magnitudeR is set
Definition: Object.h:2049
virtual bool isSet_vy()
check if the member m_vy is set
Definition: Object.h:1989
virtual double ycm() const
get the private member m_ycm
Definition: Object.h:1144
virtual void set_radius_estimate(const double radius_estimate)
set the private member m_radius_estimate
Definition: Object.h:1638
void set_x_displacement(const double x_displacement)
set the member m_x_displacement
Definition: Object.h:1444
virtual void set_vz(const double vz)
set the member m_vz
Definition: Object.h:1479
virtual double magnitude() const
get the member m_magnitude
Definition: Object.h:935
virtual void set_nearCells(const std::vector< std::vector< unsigned int >> nearCells)
set the virtual private member m_nearCells (member of ChainMeshCell)
Definition: Object.h:1762
bool isSet_redshift()
check if the member m_redshift is set
Definition: Object.h:1843
virtual double bias() const
get the member m_bias
Definition: Object.h:1072
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)
Definition: Object.h:1342
double m_ra
Right Ascension.
Definition: Object.h:146
virtual int parent() const
get the private member m_parent
Definition: Object.h:1216
virtual void set_magnitudeG(const double magnitudeG)
set the member m_magnitudeG
Definition: Object.h:1542
double dec_tile() const
get the member m_dec_tile
Definition: Object.h:793
virtual void set_vmax(const double vmax)
set the private member m_vmax
Definition: Object.h:1702
virtual bool isSet_vx()
check if the member m_vx is set
Definition: Object.h:1979
virtual void set_zcm(const double zcm)
set the private member m_zcm
Definition: Object.h:1667
void set_field(const std::string field)
set the member m_field
Definition: Object.h:1437
virtual bool isSet_massinfall()
check if the member m_massinfall is set
Definition: Object.h:2344
void set_sn(const double sn)
set the member m_sn
Definition: Object.h:1326
virtual void set_magnitudeI(const double magnitudeI)
set the member m_magnitudeI
Definition: Object.h:1556
virtual bool isSet_veldisp()
check if the member m_veldisp is set
Definition: Object.h:2248
virtual void set_lensingWeight(const double lensingWeight)
set the member m_lensingWeight
Definition: Object.h:1390
virtual double zcm() const
get the private member m_zcm
Definition: Object.h:1152
double m_y_displacement
displacement along the y-axis
Definition: Object.h:179
virtual double vmax() const
get the private member m_vmax
Definition: Object.h:1192
virtual double odds() const
get the member m_odds
Definition: Object.h:974
virtual void set_tot_mass(const double tot_mass)
set the private member m_tot_mass
Definition: Object.h:1716
virtual double massinfall() const
get the member m_massinfall
Definition: Object.h:1064
virtual void set_shear2(const double shear2)
set the member m_shear2
Definition: Object.h:1383
virtual std::shared_ptr< Object > getShared()
function that allows copying private variables of the class when an object of class Catalogue is copi...
Definition: Object.h:463
virtual double tot_mass() const
get the private member m_tot_mass
Definition: Object.h:1208
virtual double vz() const
get the member m_vz
Definition: Object.h:912
double zz() const
get the member m_zz
Definition: Object.h:758
virtual void set_radius(const double radius)
set the member m_radius
Definition: Object.h:1609
Object()=default
default constructor
double m_weight
weight
Definition: Object.h:164
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
Definition: Object.h:348
virtual void set_vmax_rad(const double vmax_rad)
set the private member m_vmax_rad
Definition: Object.h:1709
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
Definition: Object.h:243
void set_z_displacement(const double z_displacement)
set the member m_z_displacement
Definition: Object.h:1458
virtual void set_spin_y(const double spin_y)
set the private member m_spin_y
Definition: Object.h:1681
double m_ra_tile
Tile central Right Ascension.
Definition: Object.h:152
virtual void set_mstar(const double mstar)
set the member m_mstar
Definition: Object.h:1507
long region() const
get the member m_region
Definition: Object.h:835
virtual bool isSet_tot_mass()
check if the member m_tot_mass is set
Definition: Object.h:2278
virtual bool isSet_vz()
check if the member m_vz is set
Definition: Object.h:1999
bool isSet_field()
check if the member m_field is set
Definition: Object.h:1939
void set_ID(const int ID)
set the member m_ID
Definition: Object.h:1430
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
Definition: Object.h:451
double m_redshift
redshift
Definition: Object.h:158
double dec() const
get the member m_dec
Definition: Object.h:779
bool isSet_dec()
check if the member m_dec is set
Definition: Object.h:1810
virtual bool isSet_lensingCalib()
check if the member m_lensingCalib is set
Definition: Object.h:1906
virtual bool isSet_zcm()
check if the member m_zcm is set
Definition: Object.h:2208
virtual bool isSet_SFR()
check if the member m_SFR is set
Definition: Object.h:2068
virtual bool isSet_densityContrast()
check if the member m_densityContrast is set
Definition: Object.h:2138
void set_dec_tile(const double dec, const CoordinateUnits inputUnits=CoordinateUnits::_radians_)
set the member m_dec_tile
Definition: Object.h:1317
bool isSet_x_displacement()
check if the member m_x_displacement is set
Definition: Object.h:1949
virtual double densityContrast() const
get the member m_radius
Definition: Object.h:1096
virtual double lensingCalib() const
get the member m_lensingCalib
Definition: Object.h:1002
virtual double spin_z() const
get the private member m_spin_z
Definition: Object.h:1176
double m_dc
comoving distance
Definition: Object.h:161
virtual bool isSet_nsub()
check if the member m_nsub is set
Definition: Object.h:2298
void set_yy(const double yy)
set the member m_yy
Definition: Object.h:1268
virtual bool isSet_shear2()
check if the member m_shear2 is set
Definition: Object.h:1879
virtual bool isSet_odds()
check if the member m_odds is set
Definition: Object.h:1888
virtual double shear1() const
get the member m_shear1
Definition: Object.h:981
virtual void set_proxyerror(const double value)
set the member m_proxyerror
Definition: Object.h:1521
virtual void set_parent(const int parent)
set the private member m_parent
Definition: Object.h:1723
double m_x_displacement
displacement along the x-axis
Definition: Object.h:176
void set_redshiftMax(const double redshiftMax)
set the member m_redshiftMax
Definition: Object.h:1362
virtual double spin_y() const
get the private member m_spin_y
Definition: Object.h:1168
virtual bool isSet_veldisp_estimate()
check if the member m_veldisp_estimate is set
Definition: Object.h:2178
virtual bool isSet_mass_estimate()
check if the member m_mass_estimate is set
Definition: Object.h:2158
long m_region
region (used for jackknife/bootstrap)
Definition: Object.h:167
virtual bool isSet_vmax()
check if the member m_vmax is set
Definition: Object.h:2258
virtual int IDHost() const
get the member m_IDHost
Definition: Object.h:1040
virtual double mass_estimate() const
get the private member m_mass_estimate
Definition: Object.h:1112
virtual double magnitudeI() const
get the member m_magnitudeI
Definition: Object.h:967
double m_redshiftMax
maximum redshift
Definition: Object.h:188
virtual void set_magnitudeR(const double magnitudeR)
set the member m_magnitudeR
Definition: Object.h:1549
virtual bool isSet_parent()
check if the member m_parent is set
Definition: Object.h:2288
virtual double vx() const
get the member m_vx
Definition: Object.h:894
virtual void set_densityContrast(const double densityContrast)
set the member m_densityContrast
Definition: Object.h:1616
virtual void set_spin_x(const double spin_x)
set the private member m_spin_x
Definition: Object.h:1674
virtual void set_mass(const double mass)
set the member m_mass
Definition: Object.h:1486
virtual int nsub() const
get the private member m_nsub
Definition: Object.h:1223
void set_ra(const double ra, const CoordinateUnits inputUnits=CoordinateUnits::_radians_)
set the member m_ra, updating the comoving coordinates accordingly (if already set)
Definition: Object.h:1284
virtual void set_magnitudeU(const double magnitudeU)
set the member m_magnitudeU
Definition: Object.h:1535
void set_weight(const double weight)
set the member m_weight
Definition: Object.h:1415
virtual bool isSet_spin_x()
check if the member m_spin_x is set
Definition: Object.h:2218
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...
Definition: Object.h:383
virtual void set_odds(const double odds)
set the member m_odds
Definition: Object.h:1369
virtual double radius_estimate() const
get the private member m_radius_estimate
Definition: Object.h:1120
virtual void set_centralDensity(const double centralDensity)
set the member m_centralDensity
Definition: Object.h:1624
double m_dec
Declination.
Definition: Object.h:149
virtual void set_veldisp(const double veldisp)
set the private member m_veldisp
Definition: Object.h:1695
virtual double magnitudeR() const
get the member m_magnitudeR
Definition: Object.h:959
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
Definition: Object.h:315
virtual double mstar() const
get the member m_mstar
Definition: Object.h:1056
double y_displacement() const
get the member m_y_displacement
Definition: Object.h:867
double m_yy
comoving coordinate y
Definition: Object.h:140
virtual double spin_x() const
get the private member m_spin_x
Definition: Object.h:1160
void set_region(const long region)
set the member m_region
Definition: Object.h:1423
virtual double mass_proxy_error() const
get the member m_mass_proxy_error
Definition: Object.h:1032
virtual double shear2() const
get the member m_shear1
Definition: Object.h:988
void set_zz(const double zz)
set the member m_zz
Definition: Object.h:1275
virtual void set_magnitude(const double magnitude)
set the member m_magnitude
Definition: Object.h:1528
void set_ra_tile(const double ra, const CoordinateUnits inputUnits=CoordinateUnits::_radians_)
set the member m_ra_tile
Definition: Object.h:1307
virtual bool isSet_bias()
check if the member m_bias is set
Definition: Object.h:2108
double dc() const
get the member m_dc
Definition: Object.h:765
virtual double magnitudeU() const
get the member m_magnitudeU
Definition: Object.h:943
bool isSet_zz()
check if the member m_zz is set
Definition: Object.h:1794
virtual bool isSet_ycm()
check if the member m_ycm is set
Definition: Object.h:2198
virtual double veldisp_estimate() const
get the private member m_veldisp_estimate
Definition: Object.h:1128
virtual bool isSet_magnitudeU()
check if the member m_magnitudeU is set
Definition: Object.h:2029
virtual bool isSet_radius_estimate()
check if the member m_radius_estimate is set
Definition: Object.h:2168
void set_redshiftMin(const double redshiftMin)
set the member m_redshiftMin
Definition: Object.h:1355
virtual bool isSet_sSFR()
check if the private member Galaxy::m_sSFR is set
Definition: Object.h:2078
static std::shared_ptr< Object > Create(const ObjectType ObjectType)
static factory used to construct objects of any type, providing in input comoving coordinates
Definition: Object.cpp:46
virtual bool isSet_magnitudeI()
check if the member m_magnitudeI is set
Definition: Object.h:2059
virtual void set_lensingCalib(const double lensingCalib)
set the member m_lensingCalib
Definition: Object.h:1397
virtual double lensingWeight() const
get the member m_lensingWeight
Definition: Object.h:995
virtual void set_mass_proxy_error(const double mass_proxy_error)
set the member m_mass_proxy_error
Definition: Object.h:1584
bool isSet_dec_tile()
check if the member m_dec_tile is set
Definition: Object.h:1826
virtual bool isSet_centralDensity()
check if the member m_centralDensity is set
Definition: Object.h:2148
virtual double proxyerror() const
get the member m_proxyerror
Definition: Object.h:927
double redshiftMax() const
get the member m_redshiftMax
Definition: Object.h:821
bool isSet_dc()
check if the member m_dc is set
Definition: Object.h:1915
virtual double SFR() const
get the private member Galaxy::m_SFR
Definition: Object.h:1009
bool isSet_weight()
check if the member m_weight is set
Definition: Object.h:1923
virtual bool isSet_mass_proxy_error()
check if the member m_mass_proxy_error is set
Definition: Object.h:2098
virtual void set_SFR(const double SFR)
set the private member Galaxy::m_SFR
Definition: Object.h:1563
virtual double galaxyTag() const
get the member m_galaxyTag
Definition: Object.h:1048
bool isSet_y_displacement()
check if the member m_y_displacement is set
Definition: Object.h:1959
virtual double vy() const
get the member m_vy
Definition: Object.h:903
virtual std::vector< std::shared_ptr< Object > > satellites() const
get the member m_satellites
Definition: Object.h:1231
double weight() const
get the member m_weight
Definition: Object.h:828
virtual bool isSet_xcm()
check if the member m_xcm is set
Definition: Object.h:2188
virtual bool isSet_IDHost()
get the member m_IDHost
Definition: Object.h:2316
double sn() const
get the member m_sn
Definition: Object.h:800
double ra_tile() const
get the member m_ra_tile
Definition: Object.h:786
double m_z_displacement
displacement along the z-axis
Definition: Object.h:182
bool isSet_sn()
check if the member m_sn is set
Definition: Object.h:1834
virtual void set_shear1(const double shear1)
set the member m_shear1
Definition: Object.h:1376
virtual bool isSet_lensingWeight()
check if the member m_lensingWeight is set
Definition: Object.h:1897
virtual bool isSet_spin_z()
check if the member m_spin_z is set
Definition: Object.h:2238
virtual bool isSet_spin_y()
check if the member m_spin_y is set
Definition: Object.h:2228
virtual bool isSet_radius()
check if the member m_radius is set
Definition: Object.h:2128
virtual bool isSet_mass_proxy()
check if the member m_mass_proxy is set
Definition: Object.h:2088
virtual void set_spin_z(const double spin_z)
set the private member m_spin_z
Definition: Object.h:1688
double m_zz
comoving coordinate z
Definition: Object.h:143
virtual std::vector< std::vector< unsigned int > > nearCells() const
get the virtual member m_nearCells, member of ChainMeshCell
Definition: Object.h:1247
virtual void set_mass_proxy(const double mass_proxy)
set the member m_mass_proxy
Definition: Object.h:1577
virtual ~Object()=default
default destructor
double m_dec_tile
Tile central Declination.
Definition: Object.h:155
virtual double mass_proxy() const
get the member m_mass_proxy
Definition: Object.h:1024
double ra() const
get the member m_ra
Definition: Object.h:772
virtual void set_veldisp_estimate(const double veldisp_estimate)
set the private member m_veldisp_estimate
Definition: Object.h:1646
std::string field() const
get the member m_field
Definition: Object.h:850
Object(const int ID)
specific constructor for ChainMeshCell
Definition: Object.h:213
void set_dec(const double dec, const CoordinateUnits inputUnits=CoordinateUnits::_radians_)
set the member m_dec, updating the comoving coordinates accordingly (if already set)
Definition: Object.h:1296
double m_xx
comoving coordinate x
Definition: Object.h:137
bool isSet_ra_tile()
check if the member m_ra_tile is set
Definition: Object.h:1818
bool isSet_redshiftMin()
check if the member m_redshiftMin is set
Definition: Object.h:1852
virtual void set_xcm(const double xcm)
set the private member m_xcm
Definition: Object.h:1653
virtual double centralDensity() const
get the member m_radius
Definition: Object.h:1104
virtual double xcm() const
get the private member m_xcm
Definition: Object.h:1136
void set_dc(const double dc)
set the member m_dc, updating the comoving coordinates accordingly
Definition: Object.h:1405
virtual void set_satellite(const std::shared_ptr< Object > satellite)
set the private member m_satellites
Definition: Object.h:1739
bool isSet_yy() const
check if the member m_yy is set
Definition: Object.h:1786
virtual void set_nsub(const int nsub)
set the private member m_nsub
Definition: Object.h:1730
virtual bool isSet_generic()
check if the member m_generic is set
Definition: Object.h:2118
double m_sn
Signal-to-noise.
Definition: Object.h:191
virtual void set_massinfall(const double massinfall)
set the member m_massinfall
Definition: Object.h:1514
virtual void set_satellites(const std::vector< std::shared_ptr< Object >> satellites)
set the private member m_satellites
Definition: Object.h:1746
bool isSet_ra()
check if the member m_ra is set
Definition: Object.h:1802
virtual void set_mass_estimate(const double mass_estimate)
set the private member m_mass_estimate
Definition: Object.h:1631
virtual std::vector< unsigned int > part() const
get the virtual member m_part, member of ChainMeshCell
Definition: Object.h:1239
bool isSet_z_displacement()
check if the member m_z_displacement is set
Definition: Object.h:1969
double yy() const
get the member m_yy
Definition: Object.h:751
virtual double veldisp() const
get the private member m_veldisp
Definition: Object.h:1184
double redshift() const
get the member m_redshift
Definition: Object.h:807
virtual void set_sSFR(const double sSFR)
set the private member Galaxy::m_sSFR
Definition: Object.h:1570
virtual bool isSet_mass()
check if the member m_mass is set
Definition: Object.h:2009
double x_displacement() const
get the member m_x_displacement
Definition: Object.h:860
int ID() const
get the member m_radius
Definition: Object.h:843
virtual void set_ycm(const double ycm)
set the private member m_ycm
Definition: Object.h:1660
virtual bool isSet_magnitudeG()
check if the member m_magnitudeG is set
Definition: Object.h:2039
virtual bool isSet_ID()
check if the member m_ID is set
Definition: Object.h:2308
std::vector< double > coords() const
get the object coordinates
Definition: Object.h:881
virtual void set_vx(const double vx)
set the member m_vx
Definition: Object.h:1465
double m_redshiftMin
minimum redshift
Definition: Object.h:185
double xx() const
get the member m_xx
Definition: Object.h:744
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
Definition: Object.h:281
virtual void set_galaxyTag(const double galaxyTag)
set the member m_galaxyTag
Definition: Object.h:1500
virtual void set_vy(const double vy)
set the member m_vy
Definition: Object.h:1472
bool isSet_xx() const
check if the member m_xx is set
Definition: Object.h:1778
double z_displacement() const
get the member m_z_displacement
Definition: Object.h:874
virtual double sSFR() const
get the private member Galaxy::m_sSFR
Definition: Object.h:1016
std::string m_field
observed field
Definition: Object.h:173
virtual double radius() const
get the member m_radius
Definition: Object.h:1088
void set_y_displacement(const double y_displacement)
set the member m_y_displacement
Definition: Object.h:1451
virtual bool isSet_galaxyTag()
get the member m_galaxyTag
Definition: Object.h:2324
virtual void set_IDHost(const int IDHost)
set the member m_IDHost
Definition: Object.h:1493
double redshiftMin() const
get the member m_redshiftMin
Definition: Object.h:814
virtual bool isSet_shear1()
check if the member m_shear1 is set
Definition: Object.h:1870
virtual void set_part(const std::vector< unsigned int > part)
set the virtual private member m_part (member of ChainMeshCell)
Definition: Object.h:1754
virtual bool isSet_magnitude()
check if the member m_magnitude is set
Definition: Object.h:2019
The class Cosmology.
Definition: Cosmology.h:277
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
Definition: Cosmology.cpp:1045
double D_C(const double redshift) const
the comoving line-of-sight distance at a given redshift
Definition: Cosmology.cpp:741
static const std::string defaultString
default std::string value
Definition: Constants.h:336
static const long defaultLong
default long value
Definition: Constants.h:342
static const double defaultDouble
default double value
Definition: Constants.h:348
static const int defaultInt
default integer value
Definition: Constants.h:339
std::vector< std::string > ObjectTypeNames()
return a vector containing the ObjectType names
Definition: Object.h:85
ObjectType ObjectTypeCast(const int objectTypeIndex)
cast an enum of type ObjectType from its index
Definition: Object.h:94
ObjectType
the object types
Definition: Object.h:51
@ _Cluster_
galaxy cluster
@ _Halo_
dark matter halo
The global namespace of the CosmoBolognaLib
Definition: CAMB.h:38
bool isSet(const std::string var)
check if the value of a [string] variable has already been set
Definition: Kernel.h:803
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
Definition: Func.cpp:221
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
Definition: Kernel.h:780
double radians(const double angle, const CoordinateUnits inputUnits=CoordinateUnits::_degrees_)
conversion to radians
Definition: Func.cpp:126
CoordinateUnits
the coordinate units
Definition: Kernel.h:562
@ _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
Definition: Func.cpp:214