CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
Modelling_NumberCounts2D.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 __MODELLINGNC2D__
35 #define __MODELLINGNC2D__
36 
37 
38 #include "Modelling_NumberCounts.h"
39 
40 
41 // ===================================================================================================
42 
43 
44 namespace cbl {
45 
46  namespace modelling {
47 
55  namespace numbercounts {
56 
70 
71  public:
72 
77 
83 
89  Modelling_NumberCounts2D (const std::shared_ptr<cbl::measure::numbercounts::NumberCounts> nc)
90  : Modelling_NumberCounts (nc) {m_data = nc->dataset();}
91 
100  Modelling_NumberCounts2D (const std::shared_ptr<cbl::data::Data> dataset, glob::HistogramType hist_type, double fact)
101  : Modelling_NumberCounts (hist_type, fact) {m_data = dataset;}
102 
107  virtual ~Modelling_NumberCounts2D () = default;
108 
110 
111  };
112  }
113  }
114 }
115 
116 #endif
The class Modelling_NumberCounts.
std::shared_ptr< data::Data > m_data
input data to be modelled
Definition: Modelling.h:69
Modelling_NumberCounts2D(const std::shared_ptr< cbl::measure::numbercounts::NumberCounts > nc)
constuctor
Modelling_NumberCounts2D()=default
default constuctor _NumberCounts2D
Modelling_NumberCounts2D(const std::shared_ptr< cbl::data::Data > dataset, glob::HistogramType hist_type, double fact)
constuctor
virtual ~Modelling_NumberCounts2D()=default
default destructor
HistogramType
the histogram type
Definition: Histogram.h:49
The global namespace of the CosmoBolognaLib
Definition: CAMB.h:38