8#include <tracking/trackFindingCDC/geometry/Vector3D.h>
10#include <tracking/trackFindingCDC/geometry/Vector2D.h>
18using namespace TrackFindingCDC;
20Vector3D::Vector3D(
const TVector3& tVector3)
21 : m_xy(tVector3.X(), tVector3.Y())
27 : m_xy(b2Vector3.X(), b2Vector3.Y())
32Vector3D::Vector3D(
const ROOT::Math::XYZVector& xyzVector3)
33 : m_xy(xyzVector3.X(), xyzVector3.Y())
38Vector3D& Vector3D::operator=(
const TVector3& tVector3)
54Vector3D& Vector3D::operator=(
const ROOT::Math::XYZVector& xyzVector3)
62Vector3D::operator
const TVector3()
const
64 return TVector3(x(), y(), z());
72Vector3D::operator
const ROOT::Math::XYZVector()
const
74 return ROOT::Math::XYZVector(x(), y(), z());
77std::ostream& TrackFindingCDC::operator<<(std::ostream& output,
const Vector3D& vector3D)
79 return output <<
"Vector3D(" << vector3D.
x() <<
"," << vector3D.
y() <<
"," << vector3D.
z() <<
")";
82std::string Vector3D::__str__()
const
84 std::stringstream sstream;
DataType Z() const
access variable Z (= .at(2) without boundary check)
DataType X() const
access variable X (= .at(0) without boundary check)
DataType Y() const
access variable Y (= .at(1) without boundary check)
void setY(const double y)
Setter for the y coordinate.
void setX(const double x)
Setter for the x coordinate.
A three dimensional vector.
Vector2D m_xy
Memory for the first and second coordinate available as a vector.
double x() const
Getter for the x coordinate.
double y() const
Getter for the y coordinate.
double m_z
Memory for the third coordinate.
double z() const
Getter for the z coordinate.
B2Vector3< double > B2Vector3D
typedef for common usage with double
Abstract base class for different kinds of events.