CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
Modelling_Cosmology.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 __MODELLINGCOSM__
35 #define __MODELLINGCOSM__
36 
37 
38 #include "Cosmology.h"
39 #include "Modelling.h"
41 
42 
43 // ===================================================================================================
44 
45 
46 namespace cbl {
47 
48  namespace modelling {
49 
57  namespace cosmo {
58 
69  class Modelling_Cosmology : public Modelling {
70 
71  protected:
72 
74  std::shared_ptr<cbl::cosmology::Cosmology> m_cosmology;
75 
77  std::map<cbl::cosmology::CosmologicalParameter, int> m_map_cosmoPar;
78 
80  std::vector<std::string> m_data_type;
81 
83  STR_data_model_cosmology m_data_model;
84 
85  public:
86 
91 
95  Modelling_Cosmology () = default;
96 
106  Modelling_Cosmology (const std::shared_ptr<cbl::data::Data> dataset, const std::vector<std::string> data_type);
107 
111  ~Modelling_Cosmology () = default;
112 
114 
120  void set_fiducial_cosmology (const cbl::cosmology::Cosmology cosmology);
121 
127  std::shared_ptr<cbl::cosmology::Cosmology> fiducial_cosmology ()
128  { return m_cosmology; }
129 
143  void set_cosmological_parameters (const std::vector<cbl::cosmology::CosmologicalParameter> cosmoPar_name, const std::vector<cbl::statistics::PriorDistribution> cosmoPar_prior, const std::string distance_prior=par::defaultString, const std::vector<std::string> external_dataset={});
144 
145  };
146  }
147  }
148 }
149 
150 #endif
The class Cosmology.
Global functions to model two-point correlation functions of any type.
The class Modelling.
The class Cosmology.
Definition: Cosmology.h:277
The class Modelling.
Definition: Modelling.h:64
void set_fiducial_cosmology(const cbl::cosmology::Cosmology cosmology)
set the fiducial cosmology
Modelling_Cosmology()=default
default constuctor
std::map< cbl::cosmology::CosmologicalParameter, int > m_map_cosmoPar
map with cosmological parameters
void set_cosmological_parameters(const std::vector< cbl::cosmology::CosmologicalParameter > cosmoPar_name, const std::vector< cbl::statistics::PriorDistribution > cosmoPar_prior, const std::string distance_prior=par::defaultString, const std::vector< std::string > external_dataset={})
set the cosmological parameters
std::shared_ptr< cbl::cosmology::Cosmology > fiducial_cosmology()
set the fiducial cosmology
std::vector< std::string > m_data_type
the cosmological measurements
std::shared_ptr< cbl::cosmology::Cosmology > m_cosmology
cosmology
STR_data_model_cosmology m_data_model
the container of parameters for model computation
~Modelling_Cosmology()=default
default destructor
static const std::string defaultString
default std::string value
Definition: Constants.h:336
The global namespace of the CosmoBolognaLib
Definition: CAMB.h:38