Jpp  16.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JPoint4D.hh
Go to the documentation of this file.
1 #ifndef __JPOINT4D__
2 #define __JPOINT4D__
3 
5 
6 
7 /**
8  * \author mdejong
9  */
10 
11 namespace JFIT {}
12 namespace JPP { using namespace JFIT; }
13 
14 namespace JFIT {
15 
17 
18 
19  /**
20  * Data structure for vertex fit.
21  */
22  class JPoint4D :
23  public JVertex3D
24  {
25  public:
26  /**
27  * Default constructor.
28  */
30  JVertex3D()
31  {}
32 
33 
34  /**
35  * Constructor
36  *
37  * \param pos position
38  * \param t time at position
39  */
40  JPoint4D(const JVector3D& pos,
41  const double t) :
42  JVertex3D(pos, t)
43  {}
44 
45 
46  /**
47  * Constructor
48  *
49  * \param vertex vertex
50  */
51  JPoint4D(const JVertex3D& vertex) :
52  JVertex3D(vertex)
53  {}
54 
55 
56  typedef double JPoint4D::*parameter_type;
57 
58  static parameter_type pX() { return &JPoint4D::__x; }
59  static parameter_type pY() { return &JPoint4D::__y; }
60  static parameter_type pZ() { return &JPoint4D::__z; }
61  static parameter_type pT() { return &JPoint4D::__t; }
62  };
63 }
64 #endif
JPoint4D()
Default constructor.
Definition: JPoint4D.hh:29
JPoint4D(const JVertex3D &vertex)
Constructor.
Definition: JPoint4D.hh:51
double JPoint4D::* parameter_type
Definition: JPoint4D.hh:56
Data structure for vertex fit.
Definition: JPoint4D.hh:22
static parameter_type pT()
Definition: JPoint4D.hh:61
static parameter_type pZ()
Definition: JPoint4D.hh:60
Data structure for vector in three dimensions.
Definition: JVector3D.hh:34
static parameter_type pX()
Definition: JPoint4D.hh:58
static parameter_type pY()
Definition: JPoint4D.hh:59
JPoint4D(const JVector3D &pos, const double t)
Constructor.
Definition: JPoint4D.hh:40