CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
Modelling_NumberCounts1D_Mass.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 __MODELLINGNCM__
35 #define __MODELLINGNCM__
36 
37 
39 
40 
41 // ===================================================================================================
42 
43 
44 namespace cbl {
45 
46  namespace modelling {
47 
55  namespace numbercounts {
56 
70  {
71 
72  public:
73 
78 
84 
90  Modelling_NumberCounts1D_Mass (const std::shared_ptr<cbl::measure::numbercounts::NumberCounts> nc)
91  : Modelling_NumberCounts1D (nc) {}
92 
100  Modelling_NumberCounts1D_Mass (const std::shared_ptr<cbl::data::Data> dataset, glob::HistogramType hist_type, double fact)
101  : Modelling_NumberCounts1D (dataset, hist_type, fact) {}
102 
107  virtual ~Modelling_NumberCounts1D_Mass () = default;
108 
110 
111 
112 
117 
165  void set_data_model_snapshot (const cbl::cosmology::Cosmology cosmology={}, const double redshift=0., const std::string method_Pk="CAMB", const double k_min=1.e-4, const double k_max=100., const int step=500, const int norm=-1, const double Delta=200., const bool isDelta_critical=true, const std::string model_MF="Tinker", const double Volume=par::defaultDouble, const double Mass_min=par::defaultDouble, const double Mass_max=par::defaultDouble, const int Mass_step=100, const double prec=1.e-4);
166 
168 
173 
188  void set_model_NumberCounts_cosmology (const std::vector<cbl::cosmology::CosmologicalParameter> cosmo_param={}, const std::vector<statistics::PriorDistribution> cosmo_param_prior={});
189 
191 
192  };
193  }
194  }
195 }
196 
197 #endif
The class Modelling_NumberCounts1D.
The class Cosmology.
Definition: Cosmology.h:277
Modelling_NumberCounts1D_Mass()=default
default constuctor _NumberCounts1D_Mass
void set_data_model_snapshot(const cbl::cosmology::Cosmology cosmology={}, const double redshift=0., const std::string method_Pk="CAMB", const double k_min=1.e-4, const double k_max=100., const int step=500, const int norm=-1, const double Delta=200., const bool isDelta_critical=true, const std::string model_MF="Tinker", const double Volume=par::defaultDouble, const double Mass_min=par::defaultDouble, const double Mass_max=par::defaultDouble, const int Mass_step=100, const double prec=1.e-4)
set the data used to construct mass number counts of simulation snapshots
Modelling_NumberCounts1D_Mass(const std::shared_ptr< cbl::measure::numbercounts::NumberCounts > nc)
constuctor
void set_model_NumberCounts_cosmology(const std::vector< cbl::cosmology::CosmologicalParameter > cosmo_param={}, const std::vector< statistics::PriorDistribution > cosmo_param_prior={})
set the cosmological parameters used to model the mass function
Modelling_NumberCounts1D_Mass(const std::shared_ptr< cbl::data::Data > dataset, glob::HistogramType hist_type, double fact)
constuctor
virtual ~Modelling_NumberCounts1D_Mass()=default
default destructor
static const double defaultDouble
default double value
Definition: Constants.h:348
HistogramType
the histogram type
Definition: Histogram.h:49
The global namespace of the CosmoBolognaLib
Definition: CAMB.h:38