CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
Modelling_NumberCounts1D.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 __MODELLINGNC1D__
35 #define __MODELLINGNC1D__
36 
37 
38 #include "Modelling_NumberCounts.h"
39 
40 
41 // ===================================================================================================
42 
43 
44 namespace cbl {
45 
46  namespace modelling {
47 
55  namespace numbercounts {
56 
68  {
69 
70  public:
71 
76 
81 
86  Modelling_NumberCounts1D (const std::shared_ptr<cbl::measure::numbercounts::NumberCounts> nc)
87  : Modelling_NumberCounts(nc) { m_data = nc->dataset(); }
88 
95  Modelling_NumberCounts1D (const std::shared_ptr<cbl::data::Data> dataset, glob::HistogramType hist_type, double fact)
96  : Modelling_NumberCounts(hist_type, fact) { m_data = dataset; }
97 
101  virtual ~Modelling_NumberCounts1D () = default;
102 
104 
105  };
106  }
107  }
108 }
109 
110 #endif
The class Modelling_NumberCounts.
std::shared_ptr< data::Data > m_data
input data to be modelled
Definition: Modelling.h:69
virtual ~Modelling_NumberCounts1D()=default
default destructor
Modelling_NumberCounts1D(const std::shared_ptr< cbl::data::Data > dataset, glob::HistogramType hist_type, double fact)
constuctor
Modelling_NumberCounts1D(const std::shared_ptr< cbl::measure::numbercounts::NumberCounts > nc)
constuctor
HistogramType
the histogram type
Definition: Histogram.h:49
The global namespace of the CosmoBolognaLib
Definition: CAMB.h:38