CCL
|
#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_info * | ccl_specs_create_photoz_info (void *user_params, double(*user_pz_func)(double, double, void *, int *)) |
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) |
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.
cosmo | Cosmological parameters |
a | scale factor, normalized to a=1 today. |
status | Status flag. 0 if there are no errors, nonzero otherwise. For specific cases see documentation for ccl_error. |
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.
user_params | User-defined parameters for the P(z) function |
user_pz_func | P(z) function |
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.
z | redshift |
dNdz_type | the choice of dN/dz from Chang+ |
bin_zmin | the minimum redshift of the tomorgraphic bin |
bin_zmax | the maximum redshift of the tomographic bin |
user_info | the user P(z) info struct |
tomoout | the output dN/dz |
status | Status flag. 0 if there are no errors, nonzero otherwise. |
void ccl_specs_free_photoz_info | ( | user_pz_info * | my_photoz_info | ) |
Free memory holding the structure containing user-input photoz information.
my_photoz_info | that holds user-defined P(z) and parameters |
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.
z | redshift |
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.
z | redshift |