CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
NumberCounts2D_RedshiftMass.h
Go to the documentation of this file.
1 /********************************************************************
2  * Copyright (C) 2010 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 
34 #ifndef __NCOUNTS2DMR__
35 #define __NCOUNTS2DMR__
36 
37 
38 #include "NumberCounts2D.h"
39 
40 
41 // ===================================================================================================
42 
43 
44 namespace cbl {
45 
46  namespace measure {
47 
55  namespace numbercounts {
56 
67 
68  public:
69 
74 
79 
83  virtual ~NumberCounts2D_RedshiftMass () = default;
84 
114  NumberCounts2D_RedshiftMass (const catalogue::Catalogue data, const size_t nbins1, const size_t nbins2, const double minVar1=par::defaultDouble, const double maxVar1=par::defaultDouble, const double minVar2=par::defaultDouble, const double maxVar2=par::defaultDouble, const double shift1=0.5, const double shift2=0.5, const glob::HistogramType hist_type=glob::HistogramType::_N_V_, const double fact = 1., const BinType bin_type1=BinType::_linear_, const BinType bin_type2=BinType::_logarithmic_) : NumberCounts2D (catalogue::Var::_Redshift_, bin_type1, catalogue::Var::_Mass_, bin_type2, data, nbins1, nbins2, minVar1, maxVar1, minVar2, maxVar2, shift1, shift2, hist_type, fact) {}
115 
130  NumberCounts2D_RedshiftMass (const catalogue::Catalogue data, const std::vector<double> vec_edges1, const std::vector<double> vec_edges2, const glob::HistogramType hist_type=glob::HistogramType::_N_V_, const double fact = 1.) : NumberCounts2D (catalogue::Var::_Redshift_, catalogue::Var::_Mass_, vec_edges1, vec_edges2, data, hist_type, fact) {}
131 
133 
134  };
135  }
136  }
137 }
138 
139 #endif
The class NumberCounts2D.
The class Catalogue.
Definition: Catalogue.h:654
virtual ~NumberCounts2D_RedshiftMass()=default
default destructor
NumberCounts2D_RedshiftMass(const catalogue::Catalogue data, const size_t nbins1, const size_t nbins2, const double minVar1=par::defaultDouble, const double maxVar1=par::defaultDouble, const double minVar2=par::defaultDouble, const double maxVar2=par::defaultDouble, const double shift1=0.5, const double shift2=0.5, const glob::HistogramType hist_type=glob::HistogramType::_N_V_, const double fact=1., const BinType bin_type1=BinType::_linear_, const BinType bin_type2=BinType::_logarithmic_)
constructor
NumberCounts2D_RedshiftMass(const catalogue::Catalogue data, const std::vector< double > vec_edges1, const std::vector< double > vec_edges2, const glob::HistogramType hist_type=glob::HistogramType::_N_V_, const double fact=1.)
constructor
std::shared_ptr< catalogue::Catalogue > catalogue()
function to get the protected member m_data
Definition: NumberCounts.h:193
double fact()
return the normalization factor
Definition: NumberCounts.h:301
static const double defaultDouble
default double value
Definition: Constants.h:348
Var
the catalogue variables
Definition: Catalogue.h:70
HistogramType
the histogram type
Definition: Histogram.h:49
@ _N_V_
the binned counts,
The global namespace of the CosmoBolognaLib
Definition: CAMB.h:38
BinType
the binning type
Definition: Kernel.h:505
@ _logarithmic_
logarithmic binning
@ _linear_
linear binning