Go to the documentation of this file. 1 #ifndef __JDETECTOR__JANCHOR__
2 #define __JDETECTOR__JANCHOR__
65 if (in >>
id >> x >> y)
81 out << anchor.
getID();
friend std::ostream & operator<<(std::ostream &out, const JAnchor &anchor)
Write JAnchor to output.
double getLengthSquared() const
Get length squared.
bool operator<(const JAnchor &first, const JAnchor &second)
Sort anchors in ascending distance from (0,0).
Data structure for anchor position on sea bed.
JAnchor()
Default constructor.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Data structure for position in two dimensions.
int getID() const
Get identifier.
Auxiliary class for object identification.
double getX() const
Get x position.
JAnchor(const int id, const double x, const double y)
Constructor.
double getY() const
Get y position.
Auxiliary classes and methods for detector calibration.
friend std::istream & operator>>(std::istream &in, JAnchor &anchor)
Read JAnchor from input.