8 #include <tracking/trackFindingCDC/geometry/Vector3D.h>
10 #include <tracking/trackFindingCDC/geometry/Vector2D.h>
18 using namespace TrackFindingCDC;
21 : m_xy(tVector3.X(), tVector3.Y())
27 : m_xy(b2Vector3.X(), b2Vector3.Y())
33 : m_xy(xyzVector3.X(), xyzVector3.Y())
62 Vector3D::operator
const TVector3()
const
64 return TVector3(x(), y(), z());
72 Vector3D::operator
const ROOT::Math::XYZVector()
const
74 return ROOT::Math::XYZVector(x(), y(), z());
79 return output <<
"Vector3D(" << vector3D.
x() <<
"," << vector3D.
y() <<
"," << vector3D.
z() <<
")";
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.
Vector3D & operator=(const TVector3 &tVector3)
Assignment translating from a TVector3 instance.
std::string __str__() const
Output operator for python.
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.
Vector3D()
Default constructor for ROOT compatibility.
std::ostream & operator<<(std::ostream &output, const IntervalOfValidity &iov)
B2Vector3< double > B2Vector3D
typedef for common usage with double
Abstract base class for different kinds of events.