CosmoBolognaLib
Free Software C++/Python libraries for cosmological calculations
ThreePointCorrelation_angular_connected.cpp
Go to the documentation of this file.
1 /********************************************************************
2  * Copyright (C) 2015 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 
40 
41 using namespace std;
42 
43 using namespace cbl;
44 using namespace catalogue;
45 using namespace triplets;
46 using namespace measure;
47 using namespace threept;
48 using namespace glob;
49 
50 
51 // ============================================================================================
52 
53 
54 void cbl::measure::threept::ThreePointCorrelation_angular_connected::set_parameters (const double side_s, const double side_u, const double perc_increase, const int nbins)
55 {
56  (void)side_s; (void)side_u; (void)perc_increase; (void)nbins;
57  ErrorCBL("", "set_parameters", "ThreePointCorrelation_angular_connected.cpp", ExitCode::_workInProgress_);
58 }
59 
60 
61 // ============================================================================================
62 
63 
64 void cbl::measure::threept::ThreePointCorrelation_angular_connected::set_parameters (const double r12, const double r12_binSize, const double r13, const double r13_binSize, const int nbins)
65 {
66  (void)r12; (void)r12_binSize; (void)r13; (void)r13_binSize; (void)nbins;
67  ErrorCBL("", "set_parameters", "ThreePointCorrelation_angular_connected.cpp", ExitCode::_workInProgress_);
68 }
69 
70 
71 // ============================================================================
72 
73 
74 void cbl::measure::threept::ThreePointCorrelation_angular_connected::measure (const string dir_output_triplets, const vector<string> dir_input_triplets, const bool count_ddd, const bool count_rrr, const bool count_ddr, const bool count_drr, const bool tcount, const double fact, const int seed)
75 {
76  (void)dir_output_triplets; (void)dir_input_triplets; (void)count_ddd; (void)count_rrr; (void)count_ddr; (void)count_drr; (void)tcount; (void)fact; (void)seed;
77  ErrorCBL("", "measure", "ThreePointCorrelation_angular_connected.cpp", ExitCode::_workInProgress_);
78 }
79 
80 
81 // ============================================================================
82 
83 
84 void cbl::measure::threept::ThreePointCorrelation_angular_connected::write (const string dir, const string file) const
85 {
86  (void)dir; (void)file;
87  ErrorCBL("", "write", "ThreePointCorrelation_angular_connected.cpp", ExitCode::_workInProgress_);
88 }
89 
90 
91 // ============================================================================
92 
93 
95 {
96  m_dataset->write_covariance(dir, file);
97 }
The class ThreePointCorrelation_angular_connected.
void write(const std::string dir, const std::string file) const override
write the monopole of the two-point correlation function
void set_parameters(const double side_s, const double side_u, const double perc_increase, const int nbins)
set the binning parameters
void measure(const std::string dir_output_triplets, const std::vector< std::string > dir_input_triplets={}, const bool count_ddd=true, const bool count_rrr=true, const bool count_ddr=true, const bool count_drr=true, const bool tcount=false, const double fact=0.1, const int seed=3213) override
method to measure the three-point correlation function
void write_covariance(const std::string dir, const std::string file) const override
write the measured three-point correlation covariance
The global namespace of the CosmoBolognaLib
Definition: CAMB.h:38
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
Definition: Kernel.h:780