CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
Modelling_ThreePointCorrelation.h
Go to the documentation of this file.
1 /********************************************************************
2  * Copyright (C) 2017 by Federico Marulli *
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 __MODELLINGTHREEPOINT__
36 #define __MODELLINGTHREEPOINT__
37 
38 
39 #include "ThreePointCorrelation.h"
40 #include "Modelling.h"
42 
43 
44 // ===================================================================================================
45 
46 
47 namespace cbl {
48 
49  namespace modelling {
50 
58  namespace threept {
59 
73 
74  protected:
75 
78 
81 
82  public:
83 
88 
94 
100  Modelling_ThreePointCorrelation (const std::shared_ptr<cbl::measure::threept::ThreePointCorrelation> threep)
101  { m_data = threep->dataset(); }
102 
107  virtual ~Modelling_ThreePointCorrelation () = default;
108 
119  static std::shared_ptr<Modelling_ThreePointCorrelation> Create (const std::shared_ptr<measure::threept::ThreePointCorrelation> threep);
120 
134  static std::shared_ptr<Modelling_ThreePointCorrelation> Create (const measure::threept::ThreePType threePType, const std::shared_ptr<data::Data> threept_dataset);
135 
137 
138 
144 
145 
146  // ============================================================================================
147 
148 
158  void set_data_model (const std::vector<double> Q_DM);
159 
223  void set_data_model_zeta_RSD (const double r1, const double r2, const cbl::cosmology::Cosmology cosmology, const double redshift, const std::string method_Pk="CAMB", const bool NL=false, const int max_ll=5, const double k_min=1.e-4, const double k_max=100, const int step_k=500, const double r_min=1.e-4, const double r_max=200, const int step_r=200, const bool force_realSpace=false, const bool use_k=false, const bool store_output=true, const std::string output_root=cbl::par::defaultString, const int norm=-1, const double prec=1.e-4);
224 
246  void set_data_Q_nonlocal (const cosmology::Cosmology cosmology, const double r1, const double r2, const std::vector<double> theta, const std::string model, const std::vector<double> kk, const std::vector<double> Pk_matter);
247 
248  };
249  }
250  }
251 }
252 
253 #endif
Functions to model the three-point correlation function.
The class Modelling.
The class ThreePointCorrelation.
The class Cosmology.
Definition: Cosmology.h:277
The class Modelling.
Definition: Modelling.h:64
std::shared_ptr< data::Data > m_data
input data to be modelled
Definition: Modelling.h:69
Modelling_ThreePointCorrelation()=default
default constuctor ThreePointCorrelation
void set_data_model_zeta_RSD(const double r1, const double r2, const cbl::cosmology::Cosmology cosmology, const double redshift, const std::string method_Pk="CAMB", const bool NL=false, const int max_ll=5, const double k_min=1.e-4, const double k_max=100, const int step_k=500, const double r_min=1.e-4, const double r_max=200, const int step_r=200, const bool force_realSpace=false, const bool use_k=false, const bool store_output=true, const std::string output_root=cbl::par::defaultString, const int norm=-1, const double prec=1.e-4)
set the data model for the three-point correlation function (see Slepian, Eisenstein 2017)
virtual ~Modelling_ThreePointCorrelation()=default
default destructor
Modelling_ThreePointCorrelation(const std::shared_ptr< cbl::measure::threept::ThreePointCorrelation > threep)
constuctor
static std::shared_ptr< Modelling_ThreePointCorrelation > Create(const std::shared_ptr< measure::threept::ThreePointCorrelation > threep)
static factory used to construct modelling of three-point correlation functions of any type
void set_data_model(const std::vector< double > Q_DM)
set the data model for the three-point correlation function
measure::threept::ThreePType threePType()
return the type of correlation function
measure::threept::ThreePType m_threePType
the three-point correlation function type
void set_data_Q_nonlocal(const cosmology::Cosmology cosmology, const double r1, const double r2, const std::vector< double > theta, const std::string model, const std::vector< double > kk, const std::vector< double > Pk_matter)
set the data model for the three-point correlation function with non-local contributions
modelling::threept::STR_data_model_threept m_data_model
the container of parameters for three-point correlation function model computation
static const std::string defaultString
default std::string value
Definition: Constants.h:336
ThreePType
the three-point correlation function type
The global namespace of the CosmoBolognaLib
Definition: CAMB.h:38