#ifndef __JPOINT4D__ #define __JPOINT4D__ #include "JGeometry3D/JVertex3D.hh" /** * \author mdejong */ namespace JFIT {} namespace JPP { using namespace JFIT; } namespace JFIT { using JGEOMETRY3D::JVertex3D; /** * Data structure for vertex fit. */ class JPoint4D : public JVertex3D { public: /** * Default constructor. */ JPoint4D() : JVertex3D() {} /** * Constructor * * \param pos position * \param t time at position */ JPoint4D(const JVector3D& pos, const double t) : JVertex3D(pos, t) {} /** * Constructor * * \param vertex vertex */ JPoint4D(const JVertex3D& vertex) : JVertex3D(vertex) {} typedef double JPoint4D::*parameter_type; static parameter_type pX() { return &JPoint4D::__x; } static parameter_type pY() { return &JPoint4D::__y; } static parameter_type pZ() { return &JPoint4D::__z; } static parameter_type pT() { return &JPoint4D::__t; } }; } #endif