CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
ModelFunction_PowerSpectrum_Angular.h
Go to the documentation of this file.
1 /********************************************************************
2  * Copyright (C) 2016 by Federico Marulli and Alfonso Veropalumbo *
3  * federico.marulli3@unibo.it *
4  * *
5  * This program is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU General Public License as *
7  * published by the Free Software Foundation; either version 2 of *
8  * the License, or (at your option) any later version. *
9  * *
10  * This program is distributed in the hope that it will be useful, *
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13  * GNU General Public License for more details. *
14  * *
15  * You should have received a copy of the GNU General Public *
16  * License along with this program; if not, write to the Free *
17  * Software Foundation, Inc., *
18  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19  ********************************************************************/
20 
34 #ifndef __MODFUNCPOWSPECTRUMANG__
35 #define __MODFUNCPOWSPECTRUMANG__
36 
37 #include "Cosmology.h"
38 
39 // ============================================================================
40 
41 
42 namespace cbl {
43 
44  namespace modelling {
45 
46  namespace angularpk {
47 
48  struct STR_data_model {
49 
50  std::shared_ptr<cosmology::Cosmology> cosmology;
51 
52  std::vector<cosmology::CosmologicalParameter> Cpar;
53 
54  double z_min;
55 
56  double z_max;
57 
58  double z_min_bin2;
59 
60  double z_max_bin2;
61 
62  std::string method_Pk;
63 
64  bool NL;
65 
66  int norm;
67 
68  double k_min;
69 
70  double k_max;
71 
72  double fsky;
73 
74  std::vector<std::vector<double>> mixing_matrix;
75 
76  std::vector<double> ll;
77 
78  bool interpolate_power_spectrum;
79 
80  std::vector<double> dN_par;
81 
82  std::vector<double> dN_par_bin2;
83 
84  STR_data_model () = default;
85  };
86 
106  std::vector<double> Cl_mixed(std::vector<double> l_mixing, std::vector<std::vector<double>> mixing_matrix, std::vector<double> l, std::vector<double> Cl, double fsky);
107 
126  double integrand_limber_exact (double redshift, std::shared_ptr<void> pp, std::vector<double> par);
127 
152  double integral_limber_interp (double l, std::vector<double> z_vector, std::vector<double> kk, cbl::glob::FuncGrid2D pk_interp, std::vector<double> parameter, std::shared_ptr<void> input);
153 
172  double integral_limber_exact (double l, std::vector<double> parameter, std::shared_ptr<void> input);
173 
174 
199  std::vector<double> Cl_limber (const std::vector<double> l, const std::shared_ptr<void> inputs, std::vector<double> &parameter);
200 
201  }
202  }
203 }
204 
205 #endif
The class Cosmology.
std::vector< double > Cl_mixed(std::vector< double > l_mixing, std::vector< std::vector< double >> mixing_matrix, std::vector< double > l, std::vector< double > Cl, double fsky)
the angular power spectrum convolved with the mixing matrix
double integral_limber_exact(double l, std::vector< double > parameter, std::shared_ptr< void > input)
the integrand function in the Limber approximation for the calculus of angular power spectrum
double integral_limber_interp(double l, std::vector< double > z_vector, std::vector< double > kk, cbl::glob::FuncGrid2D pk_interp, std::vector< double > parameter, std::shared_ptr< void > input)
the integrand function in the Limber approximation for the calculus of angular power spectrum
std::vector< double > Cl_limber(const std::vector< double > l, const std::shared_ptr< void > inputs, std::vector< double > &parameter)
the model for the angular power spectrum
double integrand_limber_exact(double redshift, std::shared_ptr< void > pp, std::vector< double > par)
the integrand function in the Limber approximation for the calculus of angular power spectrum
The class FuncGrid2D.
Definition: FuncGrid.h:302
The global namespace of the CosmoBolognaLib
Definition: CAMB.h:38