Vertex.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////////////////
2 /// \file Vertex.h
3 /// \brief Vertex location in position and time
4 /// \version $Id: Vertex.h,v 1.8 2012-10-26 21:31:55 bckhouse Exp $
5 /// \author eniner@indiana.edu
6 /////////////////////////////////////////////////////////////////////////////////////
7 #ifndef RB_VERTEX_H
8 #define RB_VERTEX_H
9 
10 #include "TVector3.h"
11 
12 namespace rb
13 {
14  /// \brief A 3D position and time representing an interaction vertex
15  class Vertex
16  {
17  public:
18  Vertex();
19 #ifndef __GCCXML__
20  Vertex(TVector3 xyz, double t);
21  Vertex(double x, double y, double z, double t);
22 
23  double GetX() const {return fX;}
24  double GetY() const {return fY;}
25  double GetZ() const {return fZ;}
26  double GetT() const {return fT;}
27  TVector3 GetXYZ() const;
28 
29  void SetX(double x){fX = x;}
30  void SetY(double y){fY = y;}
31  void SetZ(double z){fZ = z;}
32  void SetT(double t){fT = t;}
33  void SetXYZ(double x, double y, double z);
34  void SetXYZ(TVector3 xyz);
35 #endif // __GCCXML__
36  protected:
37  double fX; ///< X coordinate (cm)
38  double fY; ///< Y coordinate (cm)
39  double fZ; ///< Z coordinate (cm)
40  double fT; ///< Time (ns)
41  };
42 
43 } // end namespace rb
44 
45 #endif
46 ////////////////////////////////////////////////////////////////////////
A 3D position and time representing an interaction vertex.
Definition: Vertex.h:15
void SetT(double t)
Definition: Vertex.h:32
void SetXYZ(double x, double y, double z)
Definition: Vertex.cxx:52
double GetX() const
Definition: Vertex.h:23
double GetY() const
Definition: Vertex.h:24
double fZ
Z coordinate (cm)
Definition: Vertex.h:39
double fX
X coordinate (cm)
Definition: Vertex.h:37
double GetZ() const
Definition: Vertex.h:25
TVector3 GetXYZ() const
Definition: Vertex.cxx:45
double fT
Time (ns)
Definition: Vertex.h:40
Perform a "2 point" Hough transform on a collection of hits.
z
Definition: test.py:28
double fY
Y coordinate (cm)
Definition: Vertex.h:38
void SetX(double x)
Definition: Vertex.h:29
void SetZ(double z)
Definition: Vertex.h:31
double GetT() const
Definition: Vertex.h:26
void SetY(double y)
Definition: Vertex.h:30