QwAnalysis
QwVertex.h
Go to the documentation of this file.
1 /**
2  * \class QwVertex QwVertex.h
3  *
4  * \brief Contains vertex information
5  *
6  * A QwVertex contains the coordinates and uncertainties of a vertex. It could
7  * link back to the tracks and partial tracks that intersect at this vertex.
8  *
9  * \ingroup QwTracking
10  *
11  */
12 
13 #ifndef QWVERTEX_H
14 #define QWVERTEX_H
15 
16 // ROOT headers
17 #include "TObject.h"
18 #include "TVector3.h"
19 
20 // Forward declarations
21 class QwTrack;
22 
23 class QwVertex: public TObject {
24 
25  public:
26 
27  QwVertex();
28  QwVertex(const TVector3& position);
29  QwVertex(const QwTrack& track1, const QwTrack& track2);
30  QwVertex(double x, double y, double z);
31  virtual ~QwVertex() { };
32 
33  /// Return the distance between the tracks at the vertex
34  double GetDistance();
35 
36  public:
37 
38  double fCoord[3]; ///< coordinates of vertex
39  double fCov[3][3]; ///< error matrix
40  double maxresidue; ///< max residue of tracks
41  int fNTracks; ///< number of tracks in vertex
42 
43 };
44 
45 #endif // QWVERTEX_H
Contains vertex information.
Definition: QwVertex.h:23
double maxresidue
max residue of tracks
Definition: QwVertex.h:40
Contains the complete track as a concatenation of partial tracks.
Definition: QwTrack.h:30
int fNTracks
number of tracks in vertex
Definition: QwVertex.h:41
double fCov[3][3]
error matrix
Definition: QwVertex.h:39
QwVertex()
Definition: QwVertex.cc:5
virtual ~QwVertex()
Definition: QwVertex.h:31
double fCoord[3]
coordinates of vertex
Definition: QwVertex.h:38
double GetDistance()
Return the distance between the tracks at the vertex.