CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
ModelFunction_TwoPointCorrelation.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 
35 #ifndef __MODFUNCTWOP__
36 #define __MODFUNCTWOP__
37 
38 #include "Cosmology.h"
40 
41 
42 // ============================================================================
43 
44 
45 namespace cbl {
46 
47  namespace modelling {
48 
49  namespace twopt {
50 
58  struct STR_data_model {
59 
62 
64  std::shared_ptr<cosmology::Cosmology> cosmology;
65 
67  std::shared_ptr<cosmology::Cosmology> test_cosmology;
68 
70  std::shared_ptr<modelling::massobsrel::Modelling_MassObservableRelation> scaling_relation;
71 
73  double z_abs_err = -1;
74 
76  double proxy_rel_err = -1;
77 
79  double redshift;
80 
82  std::string method_Pk;
83 
85  std::string output_dir;
86 
89 
91  std::string output_root;
92 
94  bool NL;
95 
97  double sigmaNL;
98 
100  double sigmaNL_perp;
101 
103  double sigmaNL_par;
104 
106  int norm;
107 
109  double k_min;
110 
112  double k_max;
113 
115  double aa;
116 
118  bool GSL;
119 
121  double prec;
122 
124  std::string file_par;
125 
127  std::shared_ptr<glob::FuncGrid> func_xi;
128 
130  std::shared_ptr<glob::FuncGrid> func_xi_;
131 
133  std::shared_ptr<glob::FuncGrid> func_xi__;
134 
136  double pi_max;
137 
139  double r_min;
140 
142  double r_max;
143 
145  int step;
146 
149 
151  double sigma8_z;
152 
154  double var;
155 
157  std::vector<cosmology::CosmologicalParameter> Cpar;
158 
160  int FV;
161 
163  int bias_nl;
164 
166  double bA;
167 
169  int xiType;
170 
172  double k_star;
173 
175  int xiNL;
176 
178  double v_min;
179 
181  double v_max;
182 
184  int step_v;
185 
188 
190  std::vector<bool> use_pole;
191 
193  std::vector<int> dataset_order;
194 
197 
199  int nWedges;
200 
202  std::vector<std::vector<double>> mu_integral_limits;
203 
205  std::vector<double> kk;
206 
208  std::vector<double> rr;
209 
211  std::shared_ptr<glob::FuncGrid> func_Pk;
212 
214  std::shared_ptr<glob::FuncGrid> func_Pk_NW;
215 
217  std::shared_ptr<glob::FuncGrid> func_Pk_nonlin;
218 
220  std::shared_ptr<glob::FuncGrid> func_Pk_DeltaDelta;
221 
223  std::shared_ptr<glob::FuncGrid> func_Pk_DeltaTheta;
224 
226  std::shared_ptr<glob::FuncGrid> func_Pk_ThetaTheta;
227 
229  std::shared_ptr<glob::FuncGrid> func_Pk_A11;
230 
232  std::shared_ptr<glob::FuncGrid> func_Pk_A12;
233 
235  std::shared_ptr<glob::FuncGrid> func_Pk_A22;
236 
238  std::shared_ptr<glob::FuncGrid> func_Pk_A23;
239 
241  std::shared_ptr<glob::FuncGrid> func_Pk_A33;
242 
244  std::shared_ptr<glob::FuncGrid> func_Pk_B12;
245 
247  std::shared_ptr<glob::FuncGrid> func_Pk_B13;
248 
250  std::shared_ptr<glob::FuncGrid> func_Pk_B14;
251 
253  std::shared_ptr<glob::FuncGrid> func_Pk_B22;
254 
256  std::shared_ptr<glob::FuncGrid> func_Pk_B23;
257 
259  std::shared_ptr<glob::FuncGrid> func_Pk_B24;
260 
262  std::shared_ptr<glob::FuncGrid> func_Pk_B33;
263 
265  std::shared_ptr<glob::FuncGrid> func_Pk_B34;
266 
268  std::shared_ptr<glob::FuncGrid> func_Pk_B44;
269 
271  std::shared_ptr<glob::FuncGrid> func_Pk_b2d;
272 
274  std::shared_ptr<glob::FuncGrid> func_Pk_b2v;
275 
277  std::shared_ptr<glob::FuncGrid> func_Pk_b22;
278 
280  std::shared_ptr<glob::FuncGrid> func_Pk_bs2d;
281 
283  std::shared_ptr<glob::FuncGrid> func_Pk_bs2v;
284 
286  std::shared_ptr<glob::FuncGrid> func_Pk_b2s2;
287 
289  std::shared_ptr<glob::FuncGrid> func_Pk_bs22;
290 
292  std::shared_ptr<glob::FuncGrid> func_sigma32Pklin;
293 
295  std::shared_ptr<glob::FuncGrid> func_Pk1loop;
296 
298  std::vector<std::shared_ptr<glob::FuncGrid>> funcs_pk;
299 
301  std::vector<std::shared_ptr<glob::FuncGrid>> func_multipoles;
302 
304  std::vector<std::shared_ptr<glob::FuncGrid>> func_wedges;
305 
307  std::string Pk_mu_model;
308 
310  double bias;
311 
313  double DVfid;
314 
316  double DAfid;
317 
319  double HHfid;
320 
322  double Delta;
323 
325  double Delta_input;
326 
329 
331  std::shared_ptr<cbl::random::NormalRandomNumbers> gau_ran;
332 
334  std::shared_ptr<cbl::data::Data> cluster_mass_proxy;
335 
337  std::vector<double> cluster_mass_proxy_error;
338 
340  std::string model_MF;
341 
343  std::string model_bias;
344 
346  std::string meanType;
347 
349  std::shared_ptr<glob::FuncGrid> func_sigma;
350 
352  std::function<double(const double)> cosmopar_bias_interp_1D;
353 
355  std::function<double(const double, const double)> cosmopar_bias_interp_2D;
356 
358  std::shared_ptr<glob::FuncGrid> interp_SelectionFunction_cut;
359 
361  std::shared_ptr<glob::FuncGrid2D> interp_SelectionFunction;
362 
364  double z_min;
365 
367  double z_max;
368 
371 
373  double Mass_min;
374 
376  double Mass_max;
377 
379  std::vector<double> mass;
380 
383 
385  std::vector<double> redshift_source;
386 
390  STR_data_model () = default;
391  };
392 
422  std::vector<double> true_k_mu_AP (const double kk, const double mu, const double alpha_perp, const double alpha_par);
423 
457  double Pk_l (const double kk, const int l, const std::string model, const std::vector<double> parameter, const std::vector<std::shared_ptr<glob::FuncGrid>> pk_interp, const double prec=1.e-5, const double alpha_perp = 1., const double alpha_par = 1.);
458 
493  std::vector<double> Pk_l (const std::vector<double> kk, const int l, const std::string model, const std::vector<double> parameter, const std::vector<std::shared_ptr<glob::FuncGrid>> pk_interp, const double prec=1.e-5, const double alpha_perp = 1., const double alpha_par = 1.);
494 
529  cbl::glob::FuncGrid Xil_interp (const std::vector<double> kk, const int l, const std::string model, const std::vector<double> parameter, const std::vector<std::shared_ptr<glob::FuncGrid>> pk_interp, const double prec=1.e-5, const double alpha_perp = 1., const double alpha_par = 1.);
530 
531 
566  std::vector<std::vector<double>> Xi_l (const std::vector<double> rr, const int nmultipoles, const std::string model, const std::vector<double> parameter, const std::vector<std::shared_ptr<glob::FuncGrid>> pk_interp, const double prec=1.e-5, const double alpha_perp = 1., const double alpha_par = 1.);
567 
605  std::vector<double> Xi_l (const std::vector<double> rr, const std::vector<int> dataset_order, const std::vector<bool> use_pole, const std::string model, const std::vector<double> parameter, const std::vector<std::shared_ptr<glob::FuncGrid>> pk_interp, const double prec=1.e-5, const double alpha_perp = 1., const double alpha_par = 1.);
606 
639  std::vector<std::vector<double>> Xi_rppi (const std::vector<double> rp, const std::vector<double> pi, const std::string model, const std::vector<double> parameter, const std::vector<std::shared_ptr<glob::FuncGrid>> pk_interp, const double prec=1.e-5, const double alpha_perp = 1., const double alpha_par = 1.);
640 
685  double Xi_polar (const double rad_fid, const double mu_fid, const double alpha_perpendicular, const double alpha_parallel, const std::vector<std::shared_ptr<cbl::glob::FuncGrid>> xi_multipoles);
686 
719  std::vector<double> wp_from_Xi_rppi (const std::vector<double> rp, const double pimax, const std::string model, const std::vector<double> parameter, const std::vector<std::shared_ptr<glob::FuncGrid>> pk_interp, const double prec=1.e-5, const double alpha_perp = 1., const double alpha_par = 1.);
720 
751  std::vector<std::vector<double>> damped_Pk_terms (const std::vector<double> kk, const double linear_growth_rate, const double SigmaS, const std::shared_ptr<cbl::glob::FuncGrid> PkDM);
752 
782  std::vector<double> damped_Xi (const std::vector<double> ss, const double bias, const double linear_growth_rate, const double SigmaS, const std::vector<double> kk, const std::shared_ptr<cbl::glob::FuncGrid> PkDM);
783 
860  double Pkmu (const double kk, const double mu, const std::string model, const std::vector<double> parameter, const std::vector<std::shared_ptr<glob::FuncGrid>> pk_interp, const double alpha_perp = 1., const double alpha_par = 1.);
861 
915  double Pkmu_DeWiggled (const double kk, const double mu, const double sigmaNL_perp, const double sigmaNL_par, const double linear_growth_rate, const double bias, const double SigmaS, const std::shared_ptr<cbl::glob::FuncGrid> Pk, const std::shared_ptr<cbl::glob::FuncGrid> Pk_NW);
916 
962  double Pkmu_ModeCoupling (const double kk, const double mu, const double linear_growth_rate, const double bias, const double sigmav, const double AMC, const std::shared_ptr<cbl::glob::FuncGrid> PkLin, const std::shared_ptr<cbl::glob::FuncGrid> PkMC);
963 
1012  double Pkmu_dispersion (const double kk, const double mu, const std::string DFoG, const double linear_growth_rate, const double bias, const double sigmav, const std::shared_ptr<cbl::glob::FuncGrid> Pklin);
1013 
1074  double Pkmu_Scoccimarro (const double kk, const double mu, const std::string DFoG, const double linear_growth_rate, const double bias, const double sigmav, const std::shared_ptr<cbl::glob::FuncGrid> Pk_DeltaDelta, const std::shared_ptr<cbl::glob::FuncGrid> Pk_DeltaTheta, const std::shared_ptr<cbl::glob::FuncGrid> Pk_ThetaTheta);
1075 
1151  double Pkmu_Scoccimarro_fitPezzotta (const double kk, const double mu, const std::string DFoG, const double linear_growth_rate, const double bias, const double sigmav, const double kd, const double kt, const std::shared_ptr<cbl::glob::FuncGrid> Pklin, const std::shared_ptr<cbl::glob::FuncGrid> Pknonlin);
1152 
1234  double Pkmu_Scoccimarro_fitBel (const double kk, const double mu, const std::string DFoG, const double linear_growth_rate, const double bias, const double sigmav, const double kd, const double bb, const double a1, const double a2, const double a3, const std::shared_ptr<cbl::glob::FuncGrid> Pklin, const std::shared_ptr<cbl::glob::FuncGrid> Pknonlin);
1235 
1346  double Pkmu_TNS (const double kk, const double mu, const std::string DFoG, const double linear_growth_rate, const double bias, const double sigmav, const std::shared_ptr<cbl::glob::FuncGrid> Pk_DeltaDelta, const std::shared_ptr<cbl::glob::FuncGrid> Pk_DeltaTheta, const std::shared_ptr<cbl::glob::FuncGrid> Pk_ThetaTheta, const std::shared_ptr<cbl::glob::FuncGrid> Pk_A11, const std::shared_ptr<cbl::glob::FuncGrid> Pk_A12, const std::shared_ptr<cbl::glob::FuncGrid> Pk_A22, const std::shared_ptr<cbl::glob::FuncGrid> Pk_A23, const std::shared_ptr<cbl::glob::FuncGrid> Pk_A33, const std::shared_ptr<cbl::glob::FuncGrid> Pk_B12, const std::shared_ptr<cbl::glob::FuncGrid> Pk_B13, const std::shared_ptr<cbl::glob::FuncGrid> Pk_B14, const std::shared_ptr<cbl::glob::FuncGrid> Pk_B22, const std::shared_ptr<cbl::glob::FuncGrid> Pk_B23, const std::shared_ptr<cbl::glob::FuncGrid> Pk_B24, const std::shared_ptr<cbl::glob::FuncGrid> Pk_B33, const std::shared_ptr<cbl::glob::FuncGrid> Pk_B34, const std::shared_ptr<cbl::glob::FuncGrid> Pk_B44);
1347 
1504  double Pkmu_eTNS (const double kk, const double mu, const std::string DFoG, const double linear_growth_rate, const double bias, const double bias2, const double sigmav, const double Ncorr, const std::shared_ptr<cbl::glob::FuncGrid> Pk_DeltaDelta, const std::shared_ptr<cbl::glob::FuncGrid> Pk_DeltaTheta, const std::shared_ptr<cbl::glob::FuncGrid> Pk_ThetaTheta, const std::shared_ptr<cbl::glob::FuncGrid> Pk_A11, const std::shared_ptr<cbl::glob::FuncGrid> Pk_A12, const std::shared_ptr<cbl::glob::FuncGrid> Pk_A22, const std::shared_ptr<cbl::glob::FuncGrid> Pk_A23, const std::shared_ptr<cbl::glob::FuncGrid> Pk_A33, const std::shared_ptr<cbl::glob::FuncGrid> Pk_B12, const std::shared_ptr<cbl::glob::FuncGrid> Pk_B13, const std::shared_ptr<cbl::glob::FuncGrid> Pk_B14, const std::shared_ptr<cbl::glob::FuncGrid> Pk_B22, const std::shared_ptr<cbl::glob::FuncGrid> Pk_B23, const std::shared_ptr<cbl::glob::FuncGrid> Pk_B24, const std::shared_ptr<cbl::glob::FuncGrid> Pk_B33, const std::shared_ptr<cbl::glob::FuncGrid> Pk_B34, const std::shared_ptr<cbl::glob::FuncGrid> Pk_B44, const std::shared_ptr<cbl::glob::FuncGrid> Pk_b2d, const std::shared_ptr<cbl::glob::FuncGrid> Pk_b2v, const std::shared_ptr<cbl::glob::FuncGrid> Pk_b22, const std::shared_ptr<cbl::glob::FuncGrid> Pk_bs2d, const std::shared_ptr<cbl::glob::FuncGrid> Pk_bs2v, const std::shared_ptr<cbl::glob::FuncGrid> Pk_b2s2, const std::shared_ptr<cbl::glob::FuncGrid> Pk_bs22, const std::shared_ptr<cbl::glob::FuncGrid> sigma32Pklin);
1505 
1506  }
1507  }
1508 }
1509 
1510 #endif
The class Cosmology.
The class Modelling_MassObservableRelation.
The class Cosmology.
Definition: Cosmology.h:277
The class FuncGrid.
Definition: FuncGrid.h:55
static const double pi
: the ratio of a circle's circumference to its diameter
Definition: Constants.h:199
std::vector< double > damped_Xi(const std::vector< double > ss, const double bias, const double linear_growth_rate, const double SigmaS, const std::vector< double > kk, const std::shared_ptr< cbl::glob::FuncGrid > PkDM)
the damped two-point correlation monopole; from Sereno et al. 2015
std::vector< double > wp_from_Xi_rppi(const std::vector< double > rp, const double pimax, const std::string model, const std::vector< double > parameter, const std::vector< std::shared_ptr< glob::FuncGrid >> pk_interp, const double prec=1.e-5, const double alpha_perp=1., const double alpha_par=1.)
the projected two-point correlation function
double Pkmu_Scoccimarro(const double kk, const double mu, const std::string DFoG, const double linear_growth_rate, const double bias, const double sigmav, const std::shared_ptr< cbl::glob::FuncGrid > Pk_DeltaDelta, const std::shared_ptr< cbl::glob::FuncGrid > Pk_DeltaTheta, const std::shared_ptr< cbl::glob::FuncGrid > Pk_ThetaTheta)
the redshift-space galaxy power spectrum, as a function of and , predicted by the Scoccimarro model
double Pkmu_DeWiggled(const double kk, const double mu, const double sigmaNL_perp, const double sigmaNL_par, const double linear_growth_rate, const double bias, const double SigmaS, const std::shared_ptr< cbl::glob::FuncGrid > Pk, const std::shared_ptr< cbl::glob::FuncGrid > Pk_NW)
the redshift-space galaxy power spectrum, as a function of and , predicted by the de-wiggled model
double Pkmu_dispersion(const double kk, const double mu, const std::string DFoG, const double linear_growth_rate, const double bias, const double sigmav, const std::shared_ptr< cbl::glob::FuncGrid > Pklin)
the redshift-space galaxy power spectrum, as a function of and , predicted by the dispersion model
std::vector< std::vector< double > > Xi_l(const std::vector< double > rr, const int nmultipoles, const std::string model, const std::vector< double > parameter, const std::vector< std::shared_ptr< glob::FuncGrid >> pk_interp, const double prec=1.e-5, const double alpha_perp=1., const double alpha_par=1.)
the multipole of order l of the two-point correlation function
double Pkmu_eTNS(const double kk, const double mu, const std::string DFoG, const double linear_growth_rate, const double bias, const double bias2, const double sigmav, const double Ncorr, const std::shared_ptr< cbl::glob::FuncGrid > Pk_DeltaDelta, const std::shared_ptr< cbl::glob::FuncGrid > Pk_DeltaTheta, const std::shared_ptr< cbl::glob::FuncGrid > Pk_ThetaTheta, const std::shared_ptr< cbl::glob::FuncGrid > Pk_A11, const std::shared_ptr< cbl::glob::FuncGrid > Pk_A12, const std::shared_ptr< cbl::glob::FuncGrid > Pk_A22, const std::shared_ptr< cbl::glob::FuncGrid > Pk_A23, const std::shared_ptr< cbl::glob::FuncGrid > Pk_A33, const std::shared_ptr< cbl::glob::FuncGrid > Pk_B12, const std::shared_ptr< cbl::glob::FuncGrid > Pk_B13, const std::shared_ptr< cbl::glob::FuncGrid > Pk_B14, const std::shared_ptr< cbl::glob::FuncGrid > Pk_B22, const std::shared_ptr< cbl::glob::FuncGrid > Pk_B23, const std::shared_ptr< cbl::glob::FuncGrid > Pk_B24, const std::shared_ptr< cbl::glob::FuncGrid > Pk_B33, const std::shared_ptr< cbl::glob::FuncGrid > Pk_B34, const std::shared_ptr< cbl::glob::FuncGrid > Pk_B44, const std::shared_ptr< cbl::glob::FuncGrid > Pk_b2d, const std::shared_ptr< cbl::glob::FuncGrid > Pk_b2v, const std::shared_ptr< cbl::glob::FuncGrid > Pk_b22, const std::shared_ptr< cbl::glob::FuncGrid > Pk_bs2d, const std::shared_ptr< cbl::glob::FuncGrid > Pk_bs2v, const std::shared_ptr< cbl::glob::FuncGrid > Pk_b2s2, const std::shared_ptr< cbl::glob::FuncGrid > Pk_bs22, const std::shared_ptr< cbl::glob::FuncGrid > sigma32Pklin)
the redshift-space galaxy power spectrum, as a function of and , predicted by the extended TNS (Taru...
double Pkmu_Scoccimarro_fitBel(const double kk, const double mu, const std::string DFoG, const double linear_growth_rate, const double bias, const double sigmav, const double kd, const double bb, const double a1, const double a2, const double a3, const std::shared_ptr< cbl::glob::FuncGrid > Pklin, const std::shared_ptr< cbl::glob::FuncGrid > Pknonlin)
the redshift-space galaxy power spectrum, as a function of and , predicted by the Scoccimarro model
std::vector< std::vector< double > > Xi_rppi(const std::vector< double > rp, const std::vector< double > pi, const std::string model, const std::vector< double > parameter, const std::vector< std::shared_ptr< glob::FuncGrid >> pk_interp, const double prec=1.e-5, const double alpha_perp=1., const double alpha_par=1.)
the cartesian two-point correlation function
std::vector< std::vector< double > > damped_Pk_terms(const std::vector< double > kk, const double linear_growth_rate, const double SigmaS, const std::shared_ptr< cbl::glob::FuncGrid > PkDM)
the power spectrum terms obtained integrating the redshift space 2D power spectrum
cbl::glob::FuncGrid Xil_interp(const std::vector< double > kk, const int l, const std::string model, const std::vector< double > parameter, const std::vector< std::shared_ptr< glob::FuncGrid >> pk_interp, const double prec=1.e-5, const double alpha_perp=1., const double alpha_par=1.)
the interpolating function of multipole expansion of the two-point correlation function at a given or...
double Pkmu_ModeCoupling(const double kk, const double mu, const double linear_growth_rate, const double bias, const double sigmav, const double AMC, const std::shared_ptr< cbl::glob::FuncGrid > PkLin, const std::shared_ptr< cbl::glob::FuncGrid > PkMC)
the redshift-space galaxy power spectrum, as a function of and , predicted by the mode-coupling mode...
double Pkmu(const double kk, const double mu, const std::string model, const std::vector< double > parameter, const std::vector< std::shared_ptr< glob::FuncGrid >> pk_interp, const double alpha_perp=1., const double alpha_par=1.)
the power spectrum as a function of k and
double Xi_polar(const double rad_fid, const double mu_fid, const double alpha_perpendicular, const double alpha_parallel, const std::vector< std::shared_ptr< cbl::glob::FuncGrid >> xi_multipoles)
the polar two-point correlation function
double bias(const double Mmin, const double sigmalgM, const double M0, const double M1, const double alpha, const std::shared_ptr< void > inputs)
the mean galaxy bias
double Pkmu_Scoccimarro_fitPezzotta(const double kk, const double mu, const std::string DFoG, const double linear_growth_rate, const double bias, const double sigmav, const double kd, const double kt, const std::shared_ptr< cbl::glob::FuncGrid > Pklin, const std::shared_ptr< cbl::glob::FuncGrid > Pknonlin)
the redshift-space galaxy power spectrum, as a function of and , predicted by the Scoccimarro model
std::vector< double > true_k_mu_AP(const double kk, const double mu, const double alpha_perp, const double alpha_par)
true k and power spectrum coordinates as a function of observed ones
double Pk_l(const double kk, const int l, const std::string model, const std::vector< double > parameter, const std::vector< std::shared_ptr< glob::FuncGrid >> pk_interp, const double prec=1.e-5, const double alpha_perp=1., const double alpha_par=1.)
the multipole of order l of the power spectrum
double Pkmu_TNS(const double kk, const double mu, const std::string DFoG, const double linear_growth_rate, const double bias, const double sigmav, const std::shared_ptr< cbl::glob::FuncGrid > Pk_DeltaDelta, const std::shared_ptr< cbl::glob::FuncGrid > Pk_DeltaTheta, const std::shared_ptr< cbl::glob::FuncGrid > Pk_ThetaTheta, const std::shared_ptr< cbl::glob::FuncGrid > Pk_A11, const std::shared_ptr< cbl::glob::FuncGrid > Pk_A12, const std::shared_ptr< cbl::glob::FuncGrid > Pk_A22, const std::shared_ptr< cbl::glob::FuncGrid > Pk_A23, const std::shared_ptr< cbl::glob::FuncGrid > Pk_A33, const std::shared_ptr< cbl::glob::FuncGrid > Pk_B12, const std::shared_ptr< cbl::glob::FuncGrid > Pk_B13, const std::shared_ptr< cbl::glob::FuncGrid > Pk_B14, const std::shared_ptr< cbl::glob::FuncGrid > Pk_B22, const std::shared_ptr< cbl::glob::FuncGrid > Pk_B23, const std::shared_ptr< cbl::glob::FuncGrid > Pk_B24, const std::shared_ptr< cbl::glob::FuncGrid > Pk_B33, const std::shared_ptr< cbl::glob::FuncGrid > Pk_B34, const std::shared_ptr< cbl::glob::FuncGrid > Pk_B44)
the redshift-space galaxy power spectrum, as a function of and , predicted by the TNS (Taruya,...
The global namespace of the CosmoBolognaLib
Definition: CAMB.h:38
std::shared_ptr< glob::FuncGrid > func_xi
pointer to a function of func_grid_GSL class, used to interpolate of the two-point correlation functi...
int xi_real_index
index for pre-computed two-point correlation function
std::string output_dir
the output_dir directory where the output of external codes are written
std::shared_ptr< glob::FuncGrid > func_Pk_B13
pointer to a function of FuncGrid class, used to interpolate the B13 term (TNS) of the power spectrum
std::vector< std::vector< double > > mu_integral_limits
integral limits used to measure the wedges
double sigmaNL_perp
sigmaNL damping of the wiggles in the linear power spectrum, perpendicular direction
double sigmaNL_par
sigmaNL damping of the wiggles in the linear power spectrum, parallel direction
std::shared_ptr< glob::FuncGrid > func_Pk1loop
pointer to a function of FuncGrid class, used to interpolate the power spectrum 1-loop correction
std::shared_ptr< glob::FuncGrid > interp_SelectionFunction_cut
function to interpolate the selection function in mass, at the mean redshift
std::shared_ptr< glob::FuncGrid > func_Pk_B14
pointer to a function of FuncGrid class, used to interpolate the B14 term (TNS) of the power spectrum
int nWedges
number of two-point correlation function wedges
std::shared_ptr< cbl::random::NormalRandomNumbers > gau_ran
Pointer to normal random numbers generator.
std::shared_ptr< glob::FuncGrid > func_Pk_A23
pointer to a function of FuncGrid class, used to interpolate the A23 term (TNS) of the power spectrum
double r_max
maximum separation up to which the binned dark matter correlation function is computed
int poly_order
order of the polynomial that take systematic effects into account
std::vector< cosmology::CosmologicalParameter > Cpar
cosmological parameters
double z_abs_err
typical absolute error on redshift
double aa
parameter a of Eq. 24 of Anderson et al. 2012
int xiNL
0 → linear two-point correlation function; 1 → non-linear two-point correlation function
std::shared_ptr< cosmology::Cosmology > test_cosmology
test cosmology
std::shared_ptr< glob::FuncGrid > func_Pk_B24
pointer to a function of FuncGrid class, used to interpolate the B24 term (TNS) of the power spectrum
double v_min
v_min minimum velocity used in the convolution of the two-point correlation function
std::shared_ptr< glob::FuncGrid > func_Pk_bs2d
pointer to a function of FuncGrid class, used to interpolate the Pk_bs2d term (eTNS) of the power spe...
std::shared_ptr< glob::FuncGrid > func_Pk_DeltaDelta
pointer to a function of FuncGrid class, used to interpolate the Pk_DeltaDelta power spectrum
std::shared_ptr< glob::FuncGrid > func_Pk_A11
pointer to a function of FuncGrid class, used to interpolate the A11 term (TNS) of the power spectrum
std::shared_ptr< glob::FuncGrid > func_Pk_A12
pointer to a function of FuncGrid class, used to interpolate the A12 term (TNS) of the power spectrum
std::function< double(const double)> cosmopar_bias_interp_1D
function to interpolate the effective bias against one cosmological parameter
std::vector< double > mass
vector containing the masses
std::shared_ptr< cosmology::Cosmology > cosmology
fiducial cosmology
std::string model_bias
method to estimate the bias
std::shared_ptr< glob::FuncGrid > func_Pk_B34
pointer to a function of FuncGrid class, used to interpolate the B34 term (TNS) of the power spectrum
bool NL
false → linear power spectrum; true → non-linear power spectrum
std::string method_Pk
method to compute the dark matter power spectrum
std::vector< std::shared_ptr< glob::FuncGrid > > funcs_pk
pointer to a vector of FuncGrid class, used to interpolate power spectra and power spectra integrals
std::shared_ptr< glob::FuncGrid > func_Pk_ThetaTheta
pointer to a function of FuncGrid class, used to interpolate the Pk_ThetaTheta power spectrum
cosmology::Cosmology cosmology_mass
cosmology used to measure the cluster masses
std::shared_ptr< modelling::massobsrel::Modelling_MassObservableRelation > scaling_relation
mass-observable scaling relation
double sigmaNL
sigmaNL damping of the wiggles in the linear power spectrum
std::shared_ptr< glob::FuncGrid > func_Pk_B12
pointer to a function of FuncGrid class, used to interpolate the B12 term (TNS) of the power spectrum
double k_min
minimum wave vector module up to which the power spectrum is computed
int nmultipoles
number of (even) multipoles to decompose
std::vector< int > dataset_order
number of (even) multipoles to decompose
double r_min
minimum separation up to which the binned dark matter correlation function is computed
std::shared_ptr< cbl::data::Data > cluster_mass_proxy
cluster masses proxy
std::shared_ptr< glob::FuncGrid > func_Pk_b2v
pointer to a function of FuncGrid class, used to interpolate the Pk_b2v term (eTNS) of the power spec...
std::shared_ptr< glob::FuncGrid > func_Pk_b2d
pointer to a function of FuncGrid class, used to interpolate the Pk_b2d term (eTNS) of the power spec...
std::function< double(const double, const double)> cosmopar_bias_interp_2D
function to interpolate the effective bias against two cosmological parameters
std::shared_ptr< glob::FuncGrid > func_Pk_NW
pointer to a function of FuncGrid class, used to interpolate the no-wiggles linear power spectrum
std::shared_ptr< glob::FuncGrid > func_sigma32Pklin
pointer to a function of FuncGrid class, used to interpolate the sigma32Pklin term (eTNS) of the powe...
std::vector< double > redshift_source
redshift_source vector containing the redshifts of the source galaxies, in case the cluster masses ar...
std::shared_ptr< glob::FuncGrid > func_Pk_b22
pointer to a function of FuncGrid class, used to interpolate the Pk_b22 term (eTNS) of the power spec...
std::shared_ptr< glob::FuncGrid > func_Pk_A22
pointer to a function of FuncGrid class, used to interpolate the A22 term (TNS) of the power spectrum
std::shared_ptr< glob::FuncGrid > func_Pk_B22
pointer to a function of FuncGrid class, used to interpolate the B22 term (TNS) of the power spectrum
double k_max
maximum wave vector module up to which the power spectrum is computed
double linear_growth_rate_z
the linear growth rate at redshift z
std::vector< double > kk
vector of wave vector modules
double v_max
v_max maximum velocity used in the convolution of the two-point correlation function
double pi_max
upper limit of integration for the projected correlation function
int step_v
number of steps used in the convolution of the two-point correlation function
std::string meanType
meanType, either the mean bias or the pair mean bias
std::vector< std::shared_ptr< glob::FuncGrid > > func_wedges
pointer to a vector of FuncGrid objects, used to interpolate the wedges
std::shared_ptr< glob::FuncGrid > func_Pk_B33
pointer to a function of FuncGrid class, used to interpolate the B33 term (TNS) of the power spectrum
std::shared_ptr< glob::FuncGrid > func_sigma
pointer to a function of FuncGrid class, used to interpolate the
std::shared_ptr< glob::FuncGrid > func_Pk
pointer to a function of FuncGrid class, used to interpolate the power spectrum
STR_data_model()=default
default constructor
std::shared_ptr< glob::FuncGrid > func_Pk_B44
pointer to a function of FuncGrid class, used to interpolate the B44 term (TNS) of the power spectrum
int step
number of steps used to compute the binned dark matter correlation function
std::string model_MF
method to estimate the mass function
std::shared_ptr< glob::FuncGrid2D > interp_SelectionFunction
function to interpolate the selection function in mass and redshift
std::vector< double > cluster_mass_proxy_error
cluster masses proxy standard deviation
std::vector< std::shared_ptr< glob::FuncGrid > > func_multipoles
pointer to a vector of FuncGrid objects, used to interpolate the multipoles
std::shared_ptr< glob::FuncGrid > func_Pk_bs22
pointer to a function of FuncGrid class, used to interpolate the Pk_bs22 term (eTNS) of the power spe...
std::string output_root
output root of the parameter file used to compute the dark matter power spectrum
std::shared_ptr< glob::FuncGrid > func_xi__
double-barred ξ(r) as pointer to an interpolation function
bool store_output
true the output files created by the Boltmann solver are stored; false the output files are removed
std::shared_ptr< glob::FuncGrid > func_Pk_DeltaTheta
pointer to a function of FuncGrid class, used to interpolate the Pk_DeltaTheta power spectrum
int bias_nl
0 → linear bias; 1 → non-linear bias
int xiType
0 → standard; 1 → Chuang & Wang model
std::shared_ptr< glob::FuncGrid > func_Pk_A33
pointer to a function of FuncGrid class, used to interpolate the A33 term (TNS) of the power spectrum
int FV
FV 0 → exponential form for f(v); 1 → Gaussian form for f(v); where f(v) is the velocity distribution...
std::shared_ptr< glob::FuncGrid > func_xi_
barred ξ(r) as pointer to an interpolation function
std::shared_ptr< glob::FuncGrid > func_Pk_nonlin
pointer to a function of FuncGrid class, used to interpolate the no-linear power spectrum
bool GSL
0 → FFTlog is used; 1 → the GSL libraries are used
std::shared_ptr< glob::FuncGrid > func_Pk_B23
pointer to a function of FuncGrid class, used to interpolate the B23 term (TNS) of the power spectrum
std::shared_ptr< glob::FuncGrid > func_Pk_b2s2
pointer to a function of FuncGrid class, used to interpolate the Pk_b2s2 term (eTNS) of the power spe...
double proxy_rel_err
typical relative error on mass proxy
std::vector< bool > use_pole
0 → don't use the pole in the fit; 1 → use the pole in the fit
int norm
0 → don't normalize the power spectrum; 1 → normalize the power spectrum
std::shared_ptr< glob::FuncGrid > func_Pk_bs2v
pointer to a function of FuncGrid class, used to interpolate the Pk_bs2v term (eTNS) of the power spe...
std::string file_par
name of the parameter file