76 CCorrelation(std::shared_ptr<CSite> correlationSite,
double correlationTime,
77 std::string correlationIdString, std::string phase,
78 double orgTime,
double orgLat,
double orgLon,
double orgZ,
128 bool initialize(std::shared_ptr<CSite> correlationSite,
129 double correlationTime, std::string correlationIdString,
130 std::string phase,
double orgTime,
double orgLat,
131 double orgLon,
double orgZ,
double corrVal);
250 const std::shared_ptr<CSite>
getSite()
const;
262 const std::string&
getID()
const;
282 std::weak_ptr<CSite> m_wpSite;
290 std::weak_ptr<CHypo> m_wpHypo;
295 std::string m_sPhaseName;
305 std::atomic<double> m_tCorrelation;
311 std::atomic<double> m_tOrigin;
316 std::atomic<double> m_dLatitude;
321 std::atomic<double> m_dLongitude;
327 std::atomic<double> m_dDepth;
332 std::atomic<double> m_dCorrelation;
338 std::atomic<double> m_tCreate;
345 std::shared_ptr<json::Object> m_JSONCorrelation;
354 mutable std::recursive_mutex m_CorrelationMutex;
357 #endif // CORRELATION_H void clearHypoReference()
Remove hypo reference to this correlation.
Definition: Correlation.cpp:406
double getLongitude() const
Get the correlation source longitude for this correlation.
Definition: Correlation.cpp:422
~CCorrelation()
CCorrelation destructor.
Definition: Correlation.cpp:302
const std::shared_ptr< json::Object > & getJSONCorrelation() const
Get input JSON correlation message.
Definition: Correlation.cpp:432
glasscore site list class
Definition: SiteList.h:40
double getTOrigin() const
Get the correlation source origin time for this correlation.
Definition: Correlation.cpp:468
void addHypoReference(std::shared_ptr< CHypo > hyp, bool force=false)
Add a hypo reference to this correlation.
Definition: Correlation.cpp:358
double getCorrelation() const
Get the correlation value for this correlation.
Definition: Correlation.cpp:412
CCorrelation()
CCorrelation default constructor.
Definition: Correlation.cpp:20
const std::string & getID() const
Get the ID of this correlation.
Definition: Correlation.cpp:453
void removeHypoReference(std::shared_ptr< CHypo > hyp)
Remove hypo specific reference to this correlation.
Definition: Correlation.cpp:378
double getLatitude() const
Get the correlation source latitude for this correlation.
Definition: Correlation.cpp:417
double getTCorrelation() const
Get the arrival time for this correlation.
Definition: Correlation.cpp:458
glasscore correlation class
Definition: Correlation.h:45
const std::shared_ptr< CHypo > getHypoReference() const
Get the current hypo reference to this correlation.
Definition: Correlation.cpp:437
glasscore hypocenter class
Definition: Hypo.h:75
void clear()
CCorrelation clear function.
Definition: Correlation.cpp:306
const std::shared_ptr< CSite > getSite() const
Get the site for this correlation.
Definition: Correlation.cpp:443
bool initialize(std::shared_ptr< CSite > correlationSite, double correlationTime, std::string correlationIdString, std::string phase, double orgTime, double orgLat, double orgLon, double orgZ, double corrVal)
CCorrelation initialization function.
Definition: Correlation.cpp:326
The namespace containing the core algorithm.
Definition: Correlation.h:17
const std::string & getPhaseName() const
Get the phase name for this correlation.
Definition: Correlation.cpp:448
glasscore site (station) class
Definition: Site.h:69
double getDepth() const
Get the correlation source depth for this correlation.
Definition: Correlation.cpp:427
double getTCreate() const
Get the creation (insertion) time of this correlation.
Definition: Correlation.cpp:463