CAMB Sources: different z-windows

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Annalisa Mana
Posts: 1
Joined: December 15 2010
Affiliation: LMU

CAMB Sources: different z-windows

Post by Annalisa Mana » March 14 2014

I am using CAMB Sources for number counts and I wanted to insert two different z-windows, i.e. a Gaussian and a uniform distribution: do I need to double the function counts_obs_window_z in modules.f90 or there is another way to do so?
Thanks a lot.

Antony Lewis
Posts: 1941
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: CAMB Sources: different z-windows

Post by Antony Lewis » March 15 2014

The window functions take in a TRedWin type, which specifies which window to calculate. So I don't think you need to duplicate the function, you can just return a different form depending on which TRedWin is requested (e.g. you can check Redshift%redshift or Redshift%kind in an "if" statement).

Post Reply