CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
Catalogue.h File Reference

The class Catalogue
More...

#include "Cosmology.h"
#include "Field3D.h"
#include "ChainMesh.h"
#include "Object.h"
#include "RandomObject.h"
#include "Halo.h"
#include "Mock.h"
#include "Galaxy.h"
#include "Cluster.h"
#include "Void.h"
#include "HostHalo.h"
#include "ChainMeshCell.h"
Include dependency graph for Catalogue.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cbl::catalogue::MaskObject
 object that encapsulate the mask function. More...
 
struct  cbl::catalogue::Gadget_Header
 This structure allows to store GADGET header. More...
 
struct  cbl::catalogue::SubFindTab_Header
 This structure allows to store SUBFIND Tab file header. More...
 
class  cbl::catalogue::Catalogue
 The class Catalogue. More...
 

Namespaces

 cbl
 The global namespace of the CosmoBolognaLib
 
 cbl::catalogue
 The namespace of the functions and classes used to handle catalogues of astronomical sources
 

Typedefs

typedef std::function< bool(const std::shared_ptr< Object > obj)> cbl::catalogue::mask_function
 Definition of a new type to manage mask function. More...
 

Enumerations

enum class  cbl::catalogue::Var {
  cbl::catalogue::_X_ , cbl::catalogue::_Y_ , cbl::catalogue::_Z_ , cbl::catalogue::_RA_ ,
  cbl::catalogue::_Dec_ , cbl::catalogue::_TileRA_ , cbl::catalogue::_TileDec_ , cbl::catalogue::_SN_ ,
  cbl::catalogue::_Redshift_ , cbl::catalogue::_RedshiftMin_ , cbl::catalogue::_RedshiftMax_ , cbl::catalogue::_Shear1_ ,
  cbl::catalogue::_Shear2_ , cbl::catalogue::_ODDS_ , cbl::catalogue::_LensingWeight_ , cbl::catalogue::_LensingCalib_ ,
  cbl::catalogue::_Dc_ , cbl::catalogue::_Weight_ , cbl::catalogue::_Mass_ , cbl::catalogue::_Magnitude_ ,
  cbl::catalogue::_MagnitudeU_ , cbl::catalogue::_MagnitudeG_ , cbl::catalogue::_MagnitudeR_ , cbl::catalogue::_MagnitudeI_ ,
  cbl::catalogue::_SFR_ , cbl::catalogue::_sSFR_ , cbl::catalogue::_MassProxy_ , cbl::catalogue::_MassProxyError_ ,
  cbl::catalogue::_Mstar_ , cbl::catalogue::_MassInfall_ , cbl::catalogue::_IDHOST_ , cbl::catalogue::_GalaxyTag_ ,
  cbl::catalogue::_Vx_ , cbl::catalogue::_Vy_ , cbl::catalogue::_Vz_ , cbl::catalogue::_Region_ ,
  cbl::catalogue::_Radius_ , cbl::catalogue::_DensityContrast_ , cbl::catalogue::_CentralDensity_ , cbl::catalogue::_X_displacement_ ,
  cbl::catalogue::_Y_displacement_ , cbl::catalogue::_Z_displacement_ , cbl::catalogue::_MassEstimate_ , cbl::catalogue::_RadiusEstimate_ ,
  cbl::catalogue::_VeldispEstimate_ , cbl::catalogue::_XCM_ , cbl::catalogue::_YCM_ , cbl::catalogue::_ZCM_ ,
  cbl::catalogue::_XSpin_ , cbl::catalogue::_YSpin_ , cbl::catalogue::_ZSpin_ , cbl::catalogue::_VelDisp_ ,
  cbl::catalogue::_Vmax_ , cbl::catalogue::_VmaxRad_ , cbl::catalogue::_TotMass_ , cbl::catalogue::_ID_ ,
  cbl::catalogue::_Nsub_ , cbl::catalogue::_Parent_ , cbl::catalogue::_Generic_
}
 the catalogue variables More...
 
enum class  cbl::catalogue::RandomType {
  cbl::catalogue::_createRandom_box_ , cbl::catalogue::_createRandom_square_ , cbl::catalogue::_createRandom_shuffle_ , cbl::catalogue::_createRandom_shuffleTOT_ ,
  cbl::catalogue::_createRandom_cone_ , cbl::catalogue::_createRandom_MANGLE_ , cbl::catalogue::_createRandom_VIPERS_ , cbl::catalogue::_createRandom_SDSS_stripes_ ,
  cbl::catalogue::_createRandom_homogeneous_LC_
}
 the type of random catalogue More...
 
enum class  cbl::catalogue::HODType { cbl::catalogue::_Zehavi05_ , cbl::catalogue::_Zehavi11_ , cbl::catalogue::_Moster10_ }
 type of HOD catalogue, which corresponds to the authors of the calibrated HOD model More...
 
enum class  cbl::catalogue::VoidAlgorithm { cbl::catalogue::_LaZeVo_ , cbl::catalogue::_Exact_ }
 the algorithm used to look for Voids More...
 
enum class  cbl::catalogue::CharEncode { cbl::catalogue::_ascii_ , cbl::catalogue::_binary_ }
 character encoding of input file More...
 
enum class  cbl::catalogue::EstimateCriterion { _m200_ , _c200_ , _t200_ }
 method used to estimate mass, radius and velocity of a halo
 

Functions

std::vector< std::string > cbl::catalogue::VarNames ()
 return a vector containing the Var names More...
 
Var cbl::catalogue::VarCast (const int varIndex)
 cast an enum of type Var from its index More...
 
Var cbl::catalogue::VarCast (const std::string varName)
 cast an enum of type Var from its name More...
 
std::vector< Var > cbl::catalogue::VarCast (const std::vector< int > varIndeces)
 cast an enum of type Var from indeces More...
 
std::vector< Var > cbl::catalogue::VarCast (const std::vector< std::string > varNames)
 cast an enum of type Var from thier names More...
 
std::vector< std::string > cbl::catalogue::RandomTypeNames ()
 return a vector containing the RandomType names More...
 
RandomType cbl::catalogue::RandomTypeCast (const int randomTypeIndex)
 cast an enum of type RandomType from its index More...
 
RandomType cbl::catalogue::RandomTypeCast (const std::string randomTypeName)
 cast an enum of type RandomType from its name More...
 
std::vector< RandomType > cbl::catalogue::RandomTypeCast (const std::vector< int > randomTypeIndeces)
 cast an enum of type RandomType from indeces More...
 
std::vector< RandomType > cbl::catalogue::RandomTypeCast (const std::vector< std::string > randomTypeNames)
 cast an enum of type RandomType from thier names More...
 
std::vector< std::string > cbl::catalogue::HODTypeNames ()
 return a vector containing the HODTypes names More...
 
std::vector< std::string > cbl::catalogue::VoidAlgorithmNames ()
 return a vector containing the VoidAlgorithm names More...
 
std::vector< std::string > cbl::catalogue::CharEncodeNames ()
 return a vector containing the CharEncode names More...
 
std::vector< std::string > cbl::catalogue::EstimateCriterionNames ()
 return a vector containing the EstimateCriterion names More...
 
EstimateCriterion cbl::catalogue::EstimateCriterionCast (const int estimateCriterionIndex)
 cast an enum of type EstimateCriterion from its index More...
 
EstimateCriterion cbl::catalogue::EstimateCriterionCast (const std::string estimateCriterionName)
 cast an enum of type EstimateCriterion from its name More...
 
std::vector< EstimateCriterion > cbl::catalogue::EstimateCriterionCast (const std::vector< int > estimateCriterionIndeces)
 cast an enum of type EstimateCriterion from indeces More...
 
std::vector< EstimateCriterion > cbl::catalogue::EstimateCriterionCast (const std::vector< std::string > estimateCriterionNames)
 cast an enum of type EstimateCriterion from thier names More...
 
double cbl::catalogue::Average_c_Zehavi_2011 (const double x, const double logMmin, const double logsigma_c)
 return the average number of central galaies inside an halo of mass x More...
 
double cbl::catalogue::Average_s_Zehavi_2011 (const double x, const double M0, const double M1, const double alpha)
 return the average number of satellite galaies per halo of mass x More...
 
double cbl::catalogue::Average_c_Zehavi_2005 (const double x, const double Mmin)
 return the average number of central galaies inside an halo of mass x More...
 
double cbl::catalogue::Average_s_Zehavi_2005 (const double x, const double alpha, const double M1)
 return the average number of satellite galaies per halo of mass x More...
 

Detailed Description

The class Catalogue

This file defines the interface of the class Catalogue, used handle catalogues of astronomical sources

Authors
Federico Marulli, Alfonso Veropalumbo
feder.nosp@m.ico..nosp@m.marul.nosp@m.li3@.nosp@m.unibo.nosp@m..it, alfon.nosp@m.so.v.nosp@m.eropa.nosp@m.lumb.nosp@m.o@uni.nosp@m.bo.i.nosp@m.t

Definition in file Catalogue.h.