CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
RandomObject.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 
34 #ifndef __RANDOMOBJ__
35 #define __RANDOMOBJ__
36 
37 #include "Object.h"
38 
39 
40 // ===================================================================================================
41 
42 
43 namespace cbl {
44 
45  namespace catalogue {
46 
55  class RandomObject : public Object {
56 
57  public :
58 
64  : Object () {}
65 
88  RandomObject (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)
90 
121  RandomObject (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)
122  : Object(coord, cosm, z1_guess, z2_guess, weight, region, ID, field, x_displacement, y_displacement, z_displacement) {}
123 
146  RandomObject (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)
148 
174  RandomObject (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)
175  : Object(coord, inputUnits, weight, region, ID, field, x_displacement, y_displacement, z_displacement) {}
176 
204  RandomObject (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)
206 
234  RandomObject (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)
235  : Object(coord, inputUnits, cosm, weight, region, ID, field, x_displacement, y_displacement, z_displacement) {}
236 
268  RandomObject (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)
270 
275  ~RandomObject () = default;
276 
277  };
278  }
279 }
280 
281 #endif
The class Object.
The class Object.
Definition: Object.h:132
double zz() const
get the member m_zz
Definition: Object.h:758
long region() const
get the member m_region
Definition: Object.h:835
double dec() const
get the member m_dec
Definition: Object.h:779
double y_displacement() const
get the member m_y_displacement
Definition: Object.h:867
double weight() const
get the member m_weight
Definition: Object.h:828
double ra() const
get the member m_ra
Definition: Object.h:772
std::string field() const
get the member m_field
Definition: Object.h:850
double yy() const
get the member m_yy
Definition: Object.h:751
double redshift() const
get the member m_redshift
Definition: Object.h:807
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
double xx() const
get the member m_xx
Definition: Object.h:744
double z_displacement() const
get the member m_z_displacement
Definition: Object.h:874
The class RandomObject.
Definition: RandomObject.h:55
RandomObject()
default constructor
Definition: RandomObject.h:63
RandomObject(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)
constructor that uses observed coordinates in radians
Definition: RandomObject.h:146
RandomObject(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)
constructor that uses observed coordinates in radians and a cosmological model to estimate the comovi...
Definition: RandomObject.h:204
RandomObject(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)
constructor that uses observed coordinates in any angular units
Definition: RandomObject.h:174
~RandomObject()=default
default destructor
RandomObject(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)
constructor that uses comoving coordinates
Definition: RandomObject.h:88
RandomObject(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)
constructor that uses both comoving and observed coordinates
Definition: RandomObject.h:268
RandomObject(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)
constructor that uses observed coordinates and a cosmological model to estimate the comoving coordina...
Definition: RandomObject.h:234
RandomObject(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)
constructor that uses comoving coordinates and a cosmological model to estimate the redshift
Definition: RandomObject.h:121
The class Cosmology.
Definition: Cosmology.h:277
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
The global namespace of the CosmoBolognaLib
Definition: CAMB.h:38
CoordinateUnits
the coordinate units
Definition: Kernel.h:562