46 using namespace modelling;
47 using namespace modelling::twopt;
52 std::shared_ptr<Modelling_TwoPointCorrelation> modelling::twopt::Modelling_TwoPointCorrelation::Create (
const std::shared_ptr<measure::twopt::TwoPointCorrelation> twop)
54 if (twop->twoPType()==measure::twopt::TwoPType::_monopole_)
57 else if (twop->twoPType()==measure::twopt::TwoPType::_2D_Cartesian_)
60 else if (twop->twoPType()==measure::twopt::TwoPType::_projected_)
63 else if (twop->twoPType()==measure::twopt::TwoPType::_deprojected_)
66 else ErrorCBL(
"no such type of object, or error in the input parameters!",
"Create",
"Modelling_TwoPointCorrelation.cpp");
75 std::shared_ptr<Modelling_TwoPointCorrelation> modelling::twopt::Modelling_TwoPointCorrelation::Create (
const measure::twopt::TwoPType twoPType,
const std::shared_ptr<data::Data> twop_dataset)
77 if (twoPType==measure::twopt::TwoPType::_monopole_)
80 else if (twoPType==measure::twopt::TwoPType::_2D_Cartesian_)
83 else if (twoPType==measure::twopt::TwoPType::_projected_)
86 else if (twoPType==measure::twopt::TwoPType::_deprojected_)
89 else ErrorCBL(
"no such type of object, or error in the input parameters!",
"Create",
"Modelling_TwoPointCorrelation.cpp");
The class Modelling_TwoPointCorrelation1D_monopole.
The class Modelling_TwoPointCorrelation2D_cartesian.
The class Modelling_TwoPointCorrelation.
The class Modelling_TwoPointCorrelatoin_deprojected.
The class Modelling_TwoPointCorrelation_projected.
The class Modelling_TwoPointCorrelation1D_monopole.
The class Modelling_TwoPointCorrelation2D_cartesian.
The class Modelling_TwoPointCorrelation_deprojected.
The class Modelling_TwoPointCorrelation_projected.
TwoPType
the two-point correlation function type
The global namespace of the CosmoBolognaLib
int ErrorCBL(const std::string msg, const std::string functionCBL, const std::string fileCBL, const cbl::glob::ExitCode exitCode=cbl::glob::ExitCode::_error_)
throw an exception: it is used for handling exceptions inside the CosmoBolognaLib