173 double TT1D (
const int i)
const override {
return m_TT1D[i]; }
179 std::vector<double>
TT1D ()
const override {
return m_TT1D; }
256 void Sum (
const std::shared_ptr<Triplet> tt,
const double ww=1)
override;
403 void get_triplet (
const double r12,
const double r13,
const double r23,
int &klin)
override;
410 void set_triplet (
const int klin,
const double ww=1.)
override;
421 void put (
const double r12,
const double r13,
const double r23,
const double ww=1.)
override;
431 void put (
const std::shared_ptr<catalogue::Object> obj1,
const std::shared_ptr<catalogue::Object> obj2,
const std::shared_ptr<catalogue::Object> obj3)
override;
513 { (void)
r12; (void)
r13; (void)r23; (void)klin;
ErrorCBL(
"",
"get_triplet",
"Triplet1D.h!"); }
521 { (void)klin; (void)ww;
cbl::ErrorCBL(
"",
"get_triplet",
"Triplet1D.h!"); }
532 void put (
const double r12,
const double r13,
const double r23,
const double ww=1.)
override;
542 void put (
const std::shared_ptr<catalogue::Object> obj1,
const std::shared_ptr<catalogue::Object> obj2,
const std::shared_ptr<catalogue::Object> obj3)
override;
630 void get_triplet (
const double r12,
const double r13,
const double r23,
int &klin)
override;
637 void set_triplet (
const int klin,
const double ww=1.)
override;
648 void put (
const double r12,
const double r13,
const double r23,
const double ww=1.)
override;
658 void put (
const std::shared_ptr<catalogue::Object> obj1,
const std::shared_ptr<catalogue::Object> obj2,
const std::shared_ptr<catalogue::Object> obj3)
override;
740 void get_triplet (
const double r12,
const double r13,
const double r23,
int &klin)
override;
747 void set_triplet (
const int klin,
const double ww=1.)
override;
758 void put (
const double r12,
const double r13,
const double r23,
const double ww=1.)
override;
768 void put (
const std::shared_ptr<catalogue::Object> obj1,
const std::shared_ptr<catalogue::Object> obj2,
const std::shared_ptr<catalogue::Object> obj3)
override;
The class Triplet1D_angular.
virtual void set_parameters()=0
set the binning parameters
Triplet1D_angular(const double r12, const double r12_binSize, const double r13, const double r13_binSize, const int nbins)
constructor
Triplet1D_angular()=default
default constructor
virtual ~Triplet1D_angular()=default
default destructor
The class Triplet1D_comoving_costheta.
void put(const double r12, const double r13, const double r23, const double ww=1.) override
estimate the distance between three objects and update the triplet vectors accordingly
Triplet1D_comoving_costheta(const double r12, const double r12_binSize, const double r13, const double r13_binSize, const int nbins)
constructor
void set_parameters() override
set the binning parameters
void set_triplet(const int klin, const double ww=1.) override
update the triplet
Triplet1D_comoving_costheta()
default constructor
void get_triplet(const double r12, const double r13, const double r23, int &klin) override
estimate the distance between two objects and update the triplet vectors accordingly
The class Triplet1D_comoving_side.
void set_triplet(const int klin, const double ww=1.) override
update the triplet
Triplet1D_comoving_side()
default constructor
double m_min
minimum scale
double m_max
maximum scale
void put(const double r12, const double r13, const double r23, const double ww=1.) override
estimate the distance between three objects and update the triplet vectors accordingly
Triplet1D_comoving_side(const double r12, const double r12_binSize, const double r13, const double r13_binSize, const int nbins)
constructor
void set_parameters() override
set the binning parameters
void get_triplet(const double r12, const double r13, const double r23, int &klin) override
estimate the distance between two objects and update the triplet vectors accordingly
The class Triplet1D_comoving_theta.
Triplet1D_comoving_theta(const double r12, const double r12_binSize, const double r13, const double r13_binSize, const int nbins)
constructor
void set_triplet(const int klin, const double ww=1.) override
update the triplet
Triplet1D_comoving_theta()
default constructor
void get_triplet(const double r12, const double r13, const double r23, int &klin) override
estimate the distance between two objects and update the triplet vectors accordingly
void set_parameters() override
set the binning parameters
void put(const double r12, const double r13, const double r23, const double ww=1.) override
estimate the distance between three objects and update the triplet vectors accordingly
The class Triplet1D_comoving.
Triplet1D_comoving()=default
default constructor
Triplet1D_comoving(const double r12, const double r12_binSize, const double r13, const double r13_binSize, const int nbins)
constructor
virtual void set_parameters()=0
set the binning parameters
virtual ~Triplet1D_comoving()=default
default destructor
The class Triplet1D_multipoles_direct.
void set_parameters() override
set the binning parameters
Triplet1D_multipoles_direct(const double r12, const double r12_binSize, const double r13, const double r13_binSize, const int norders)
constructor
Triplet1D_multipoles_direct()
default constructor
void put(const double r12, const double r13, const double r23, const double ww=1.) override
estimate the distance between three objects and update the triplet vectors accordingly
void set_triplet(const int klin, const double ww=1.)
update the triplet
void get_triplet(const double r12, const double r13, const double r23, int &klin)
estimate the distance between two objects and update the triplet vectors accordingly
std::vector< double > scale() const override
get the protected member m_scale
std::vector< double > TT1D() const override
get the private member m_TT1D
double m_r13_binSize
the size of r13 bin
int nbins() const override
get the protected member m_nbins
double scale(const int i) const override
get the protected member m_scale[i]
void add_TT1D(const int i, const double tt)
set the protected member m_TT1D[i] adding the number of triplets
int m_nbins
the number of bins
double r13_binSize() const override
get the private member m_r13_binSize
double r13() const override
get the private member m_r13
virtual void set_parameters()=0
set the binning parameters
double m_r12
the size of r12
double m_binSize
the bin size
double m_r12_binSize
the size of r12 bin
double r12_binSize() const override
get the private member m_r12_binSize
double m_r13
the size of r13
Triplet1D(const double r12, const double r12_binSize, const double r13, const double r13_binSize, const int nbins)
constructor
double r12() const override
get the private member m_r12
Triplet1D()
default constructor
void Sum(const std::shared_ptr< Triplet > tt, const double ww=1) override
sum the number of triplets
void set_TT1D(const int i, const double tt)
set the member m_TT1D[i]
std::vector< double > m_scale
the binned scales
double TT1D(const int i) const override
get the private member m_TT1D[i]
~Triplet1D()=default
default destructor
double binSize() const override
get the protected member m_binSize
std::vector< double > m_TT1D
the number of binned triplets
Dim m_tripletDim
the dimension of the triplet vectors
TripletType m_tripletType
triplet type
@ _comoving_side_
1D triplet in comoving coordinates and linear bins
@ _comoving_costheta_
1D triplet in comoving coordinates and linear bins of the cosine of theta
@ _comoving_theta_
1D triplet in comoving coordinates and angular bins
@ _multipoles_direct_
multipoles of the triplets
The global namespace of the CosmoBolognaLib
void checkDim(const std::vector< T > vect, const int val, const std::string vector, bool equal=true)
check if the dimension of a std::vector is equal/lower than an input value
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
@ _1D_
1D, used e.g. for 1D pairs, in angular or comoving separations