3 #ifndef __s2_traces_quality_hpp
4 #define __s2_traces_quality_hpp
9 #include <s2_abstract_db_access.hpp>
10 #include <polycor.hpp>
12 #include <s2proc/s2_abstract_db_access.hpp>
13 #include <s2proc/polycor.hpp>
27 QP& operator/=(
const int &val) {
max_pos /= val;
min_neg /= val;
return *
this;}
28 QP& operator+=(
const QP &that) {
max_pos += that.max_pos;
min_neg += that.min_neg;
return *
this;}
35 typedef std::map<int, std::map<int, std::map<PSC::Direction, QP> > >
Quality;
52 const QP&
getQP(
int nsp,
int nrp, PSC::Direction dir,
bool *rc = 0x0)
const;
86 bool add_correlations(
int comp, PSC::Direction dir);
90 bool obtain_qp(
int nsp,
int nrp, PSC::Direction dir,
const Trace &tr,
QP &qp)
const;
93 QP merge_qps(
const QP &qp1,
bool rc1,
const QP &qp2,
bool rc2);
QP()
Definition: s2_traces_quality.hpp:25
float AmplT
Definition: trace.hpp:21
std::map< int, std::map< int, std::map< PSC::Direction, QP > > > Quality
Definition: s2_traces_quality.hpp:35
S2TracesQuality(const S2AbstractDBAccess &dba_if, const Trace::TimeT &max_time_range, const Trace::TimeT &start_time, const Trace::TimeT &time_length)
Trace::TimeT m_start_time
Definition: s2_traces_quality.hpp:76
float TimeT
Definition: trace.hpp:22
Definition: s2_abstract_db_access.hpp:15
const QP & getQP(int nsp, int nrp, PSC::Direction dir, bool *rc=0x0) const
static bool calc_qp(const Trace &tr1, const Trace &tr2, const Trace::TimeT &max_time_range, QP &qp)
Trace::TimeT m_max_time_range
Definition: s2_traces_quality.hpp:73
bool getWeightsDistribution(PSC::Direction dir, std::map< int, Trace::AmplT > &weights) const
const Quality & getQuality() const
Definition: s2_traces_quality.hpp:55
Trace::AmplT min_neg
Definition: s2_traces_quality.hpp:31
Quality m_quality
Definition: s2_traces_quality.hpp:70
Trace::AmplT max_pos
Definition: s2_traces_quality.hpp:30
Trace::TimeT m_time_length
Definition: s2_traces_quality.hpp:79
Definition: s2_traces_quality.hpp:22
Definition: s2_traces_quality.hpp:17