Vertex.cxx
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////////////
2 /// \file Vertex.cxx
3 /// \brief Defining a Vertex Position
4 /// \version \$Id: Vertex.cxx,v 1.7 2011-11-18 01:52:11 bckhouse Exp \$
5 /// \author eniner@indiana.edu
6 ////////////////////////////////////////////////////////////////////////////////
7 #include "RecoBase/Vertex.h"
8
9 #include <cassert>
10
11 namespace rb
12 {
13  //.....................................................................
14
16  fX(0),
17  fY(0),
18  fZ(0),
19  fT(0)
20  {
21  }
22
23  //......................................................................
24
25  Vertex::Vertex(TVector3 xyz, double t) :
26  fX(xyz.X()),
27  fY(xyz.Y()),
28  fZ(xyz.Z()),
29  fT(t)
30  {
31  }
32
33  //......................................................................
34
35  Vertex::Vertex(double x, double y, double z, double t) :
36  fX(x),
37  fY(y),
38  fZ(z),
39  fT(t)
40  {
41  }
42
43  //......................................................................
44
45  TVector3 Vertex::GetXYZ() const
46  {
47  return TVector3(fX, fY, fZ);
48  }
49
50  //......................................................................
51
52  void Vertex::SetXYZ(double x, double y, double z)
53  {
54  fX = x;
55  fY = y;
56  fZ = z;
57  }
58
59  //......................................................................
60
61  void Vertex::SetXYZ(TVector3 xyz)
62  {
63  fX = xyz.X();
64  fY = xyz.Y();
65  fZ = xyz.Z();
66  }
67
68 } // end namespace rb
69 ////////////////////////////////////////////////////////////////////////
void SetXYZ(double x, double y, double z)
Definition: Vertex.cxx:52
double fZ
Z coordinate (cm)
Definition: Vertex.h:39
double fX
X coordinate (cm)
Definition: Vertex.h:37
Float_t Y
Definition: plot.C:38
Float_t Z
Definition: plot.C:38
TVector3 GetXYZ() const
Definition: Vertex.cxx:45
double fT
Time (ns)
Definition: Vertex.h:40
Vertex location in position and time.
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
Float_t X
Definition: plot.C:38