ATLAS Offline Software
Loading...
Searching...
No Matches
RecVertex.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
5
6#ifndef VXVERTEX_RECVERTEX_H
7#define VXVERTEX_RECVERTEX_H
8
9#include "VxVertex/Vertex.h"
13
28
29
30class MsgStream;
31class RecVertexCnv_p1;
32
33namespace Trk
34{
35
42
43 class RecVertex : public Vertex
44 {
45 public:
46
51 RecVertex();
52
56 RecVertex(const Vertex& pos);
57
61 RecVertex(const Amg::Vector3D &pos, const AmgSymMatrix(3) &cov,
62 const double ndf = 0., const double chi2 = 0.);
63
67 RecVertex(const Amg::Vector3D &pos, const double ndf = 0., const double chi2 =0.);
68
72 RecVertex(const RecVertex& ) = default;
73 RecVertex &operator= (const RecVertex &) = default;
74
78 RecVertex ( RecVertex && ) = default;
80
81
85 virtual MsgStream& dump(MsgStream& sl) const;
86
90 virtual std::ostream& dump(std::ostream& sl) const;
91
95 virtual ~RecVertex();
96
100 const AmgSymMatrix(3)& covariancePosition() const;
101
105 const Trk::FitQuality& fitQuality() const;
106
110 void scaleError(float factor);
111
112 private:
113 friend class ::RecVertexCnv_p1;
114 AmgSymMatrix(3) m_positionCovariance;
115 Trk::FitQuality m_fitQuality; //chi2 and number of degrees of freedom of the fit
116
117 };
118} // end of namespace
119#endif
120
#define AmgSymMatrix(dim)
Class to represent and store fit qualities from track reconstruction in terms of and number of degre...
Definition FitQuality.h:97
RecVertex(RecVertex &&)=default
Move constructor and assignment operator.
RecVertex & operator=(const RecVertex &)=default
virtual ~RecVertex()
Destructor.
AmgSymMatrix(3) m_positionCovariance
covariance matrix on vertex position
Trk::FitQuality m_fitQuality
Definition RecVertex.h:115
void scaleError(float factor)
Error scaling method.
RecVertex()
Default constructor, if called initializes a RecVertex with all data members set to 0.
Definition RecVertex.cxx:23
RecVertex(const RecVertex &)=default
Copy constructor and assignement operator.
const AmgSymMatrix(3) &covariancePosition() const
Weight and covariance matrix access method.
const Trk::FitQuality & fitQuality() const
Fit quality access method.
Definition RecVertex.cxx:64
Vertex()
Contructors: default, copy and a constructor taking a vertex position (Amg::Vector3D) as argument.
Definition Vertex.cxx:21
double chi2(TH1 *h0, TH1 *h1)
Eigen::Matrix< double, 3, 1 > Vector3D
Ensure that the ATLAS eigen extensions are properly loaded.
-event-from-file