ps_line_pt.c File Reference

Documented computation of Poisson shot noise and tree-level line power spectrum in real and redshift-space. More...

#include "header.h"
Include dependency graph for ps_line_pt.c:

Functions

double PS_tot_interloper (struct Cosmology *Cx, double k, double mu, double z_s, double z_inter, size_t line_id)
 Compute the 3D power spectrum of interloper line power spectrum in unit of micro K^2 Mpc^3. More...
 
double PS_line_real (struct Cosmology *Cx, double k, double z, size_t line_id)
 Compute the real-space 3D power spectrum of emission lines in unit of micro K^2 Mpc^3. More...
 
double PS_line_RSD (struct Cosmology *Cx, struct Cosmology *Cx_ref, double k, double mu, double z, size_t line_id)
 Compute the redshift-space 3D power spectrum of emission lines in unit of micro K^2 Mpc^3 as a function of wavenumber and angle w.r.t. More...
 
int ps_line_multipoles_integrand (unsigned ndim, const double *x, void *p, unsigned fdim, double *fvalue)
 The integrand function passed to hcubature integrator to compute the line power spectrum multipoles. More...
 
double ps_line_multipoles (struct Cosmology *Cx, struct Cosmology *Cx_ref, double k, double z, size_t line_id, int ell)
 Compute the multipole moments of redshift-space power spectrum of emission lines in unit of micro K^2 Mpc^3, integrating over the angle w.r.t LOS, weighted by. More...
 
double PS_shot (struct Cosmology *Cx, double z, size_t line_id)
 Compute the Poisson shot noise in unit of micro K^2 Mpc^3. More...
 

Detailed Description

Documented computation of Poisson shot noise and tree-level line power spectrum in real and redshift-space.

Azadeh Moradinezhad Dizgah, November 4th 2021

NOTE TODO: Add the 1loop redshift-space power spectrum of the line. This requires implementing FFTLog, still in progress For the moment we stick to the tree-level expression of line power spectrum in redshift-space.

In summary, the following functions can be called from other modules:

  1. PS_tot_interloper() computes power spectrum of interlopers (tree-level with RSD)
  2. PS_line_real() computes tree-level line power spectrum in real-space
  3. PS_line_RSD() computes the tree-level line power spectrum in redshift-space, as a function of wavenumber and angle w.r.t LOS
  4. ps_line_multipoles() computes the redshift-space multipoles of the line power spectrum
  5. PS_shot() computes the poisson shot noise

Function Documentation

◆ ps_line_multipoles()

double ps_line_multipoles ( struct Cosmology Cx,
struct Cosmology Cx_ref,
double  k,
double  z,
size_t  line_id,
int  ell 
)

Compute the multipole moments of redshift-space power spectrum of emission lines in unit of micro K^2 Mpc^3, integrating over the angle w.r.t LOS, weighted by.

Parameters
CxInput: Cosmology structure
Cx_refInput: Reference cosmology structure, needed for AP effect
kInput: wavenumber in unit of 1/Mpc.
zInput: redshift
line_idInpute: id of the line to be considered.
ellInpute: the multipole
Returns
P_ell(k)
Here is the call graph for this function:

◆ ps_line_multipoles_integrand()

int ps_line_multipoles_integrand ( unsigned  ndim,
const double *  x,
void *  p,
unsigned  fdim,
double *  fvalue 
)

The integrand function passed to hcubature integrator to compute the line power spectrum multipoles.

Parameters
ndimInput: Dimensionality of the domain of integration
xInput: integration variable
pInput: integration parmaeters
fdimInput: Dimensionality of the integrand function
fvalueInput: Array of values of the integrand of dimension fdim return the error status
Here is the call graph for this function:
Here is the caller graph for this function:

◆ PS_line_real()

double PS_line_real ( struct Cosmology Cx,
double  k,
double  z,
size_t  line_id 
)

Compute the real-space 3D power spectrum of emission lines in unit of micro K^2 Mpc^3.

Parameters
CxInput: Cosmology structure
kInput: wavenumber in unit of 1/Mpc.
zInput: redshift
line_idInpute: id of the line to be considered.
Returns
tree-level P_clust(k)
Here is the call graph for this function:

◆ PS_line_RSD()

double PS_line_RSD ( struct Cosmology Cx,
struct Cosmology Cx_ref,
double  k,
double  mu,
double  z,
size_t  line_id 
)

Compute the redshift-space 3D power spectrum of emission lines in unit of micro K^2 Mpc^3 as a function of wavenumber and angle w.r.t.

LOS

Parameters
CxInput: Cosmology structure
Cx_refInput: Reference cosmology structure, needed for AP effect
kInput: wavenumber in unit of 1/Mpc.
muInpute: angle w.r.t LOS
zInput: redshift
line_idInpute: id of the line to be considered.
Returns
tree-level P_clust(k,mu)

to plot the power spectrum in units of micro K^2 Mpc^3

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PS_shot()

double PS_shot ( struct Cosmology Cx,
double  z,
size_t  line_id 
)

Compute the Poisson shot noise in unit of micro K^2 Mpc^3.

Parameters
CxInput: Cosmology structure
zInput: redshift
line_idInpute: id of the line to be considered.
Returns
P_poisson
in unit of micro K^2 Mpc^3

Boltzmann constant in unit of erg K^-1

in unit of erg/s

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PS_tot_interloper()

double PS_tot_interloper ( struct Cosmology Cx,
double  k,
double  mu,
double  z_s,
double  z_inter,
size_t  line_id 
)

Compute the 3D power spectrum of interloper line power spectrum in unit of micro K^2 Mpc^3.

Parameters
CxInput: Cosmology structure
kInput: wavenumber in unit of 1/Mpc.
muInput: cos of the angle w.r.t. LOS
z_sInput: redshift of the signal line
z_interInput: redshift of the interloper line
line_idInpute: id of the line to be considered.
Returns
tree-level P_clust(k)

to plot the power spectrum in units of micro K^2 Mpc^3

Here is the call graph for this function: