CCL
Data Structures | Functions
ccl_lsst_specs.c File Reference
#include "ccl_core.h"
#include "ccl_utils.h"
#include "ccl_placeholder.h"
#include "math.h"
#include "stdio.h"
#include "stdlib.h"
#include "gsl/gsl_integration.h"
#include "gsl/gsl_spline.h"
#include "ccl_background.h"
#include "ccl_constants.h"
#include "ccl_error.h"
#include "ccl_lsst_specs.h"
#include "ccl_params.h"

Data Structures

struct  dNdz_sources_params
 
struct  pz_params
 
struct  norm_params
 

Functions

double ccl_specs_sigmaz_clustering (double z)
 
double ccl_specs_sigmaz_sources (double z)
 
double ccl_specs_bias_clustering (ccl_cosmology *cosmo, double a, int *status)
 
user_pz_infoccl_specs_create_photoz_info (void *user_params, double(*user_pz_func)(double, double, void *, int *))
 
double gaussian_pz (double z_ph, double z_s, void *params, int *status)
 
user_pz_infoccl_specs_create_gaussian_photoz_info (double sigma_z0)
 
void ccl_specs_free_photoz_info_gaussian (user_pz_info *my_photoz_info)
 
void ccl_specs_free_photoz_info (user_pz_info *my_photoz_info)
 
void ccl_specs_dNdz_tomog (double z, int dNdz_type, double bin_zmin, double bin_zmax, user_pz_info *user_info, double *tomoout, int *status)
 

Function Documentation

double ccl_specs_bias_clustering ( ccl_cosmology cosmo,
double  a,
int *  status 
)

Compute b(a), the bias of the clustering sample of a cosmology at a given scale factor This is input from LSS group.

Parameters
cosmoCosmological parameters
ascale factor, normalized to a=1 today.
statusStatus flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error.
Returns
b, the bias at a in cosmo
user_pz_info* ccl_specs_create_gaussian_photoz_info ( double  sigma_z0)

This function creates a structure containing the photo-z model for the built-in Gaussian photo-z pdf.

Parameters
sigma_z0The photo-z uncertainty at z=0. The photo-z uncertainty is assumed to scale like (1 + z).
Returns
a structure with the built-in Gaussian P(z) and parameters
user_pz_info* ccl_specs_create_photoz_info ( void *  user_params,
double(*)(double, double, void *, int *)  user_pz_func 
)

This function creates a structure amalgamating the user-input information on the photo-z model, P(z) plus some parameters.

Parameters
user_paramsUser-defined parameters for the P(z) function
user_pz_funcP(z) function
Returns
a structure with the user-provided P(z) and parameters
void ccl_specs_dNdz_tomog ( double  z,
int  dNdz_type,
double  bin_zmin,
double  bin_zmax,
user_pz_info user_info,
double *  tomoout,
int *  status 
)

Return dNdz in a particular tomographic bin, convolved with a photo-z model (defined by the user), and normalized.

Parameters
zredshift
dNdz_typethe choice of dN/dz from Chang+
bin_zminthe minimum redshift of the tomorgraphic bin
bin_zmaxthe maximum redshift of the tomographic bin
user_infothe user P(z) info struct
tomooutthe output dN/dz
statusStatus flag. 0 if there are no errors, nonzero otherwise.
Returns
void
void ccl_specs_free_photoz_info ( user_pz_info my_photoz_info)

Free memory holding the structure containing user-input photoz information.

Parameters
my_photoz_infothat holds user-defined P(z) and parameters
Returns
void
void ccl_specs_free_photoz_info_gaussian ( user_pz_info my_photoz_info)

Free memory holding the structure containing user-input photoz information for the built-in Gaussian photo-z pdf.

Parameters
my_photoz_infothat holds user-defined P(z) and parameters
Returns
void
double ccl_specs_sigmaz_clustering ( double  z)

Return sigma(z), the photo-z dispersion, for the clustering sample This is if you want to assume Gaussian uncertainties.

Parameters
zredshift
Returns
sigma(z) for the clustering sample
double ccl_specs_sigmaz_sources ( double  z)

Return sigma(z), the photo-z dispersion, for the lensing sample This is if you want to assume Gaussian uncertainties.

Parameters
zredshift
Returns
sigma(z) for the lensing sample
double gaussian_pz ( double  z_ph,
double  z_s,
void *  params,
int *  status 
)