ATLAS Offline Software
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 
30 class MsgStream;
31 class RecVertexCnv_p1;
32 
33 namespace Trk
34 {
35 
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;
79  RecVertex &operator = ( 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 
covarianceTool.ndf
ndf
Definition: covarianceTool.py:678
Trk::Vertex
Definition: Tracking/TrkEvent/VxVertex/VxVertex/Vertex.h:26
Trk::RecVertex::m_fitQuality
Trk::FitQuality m_fitQuality
Definition: RecVertex.h:115
Trk::RecVertex::AmgSymMatrix
const AmgSymMatrix(3) &covariancePosition() const
Weight and covariance matrix access method.
RecVertexCnv_p1
Definition: RecVertexCnv_p1.h:27
Trk::RecVertex::~RecVertex
virtual ~RecVertex()
Destructor.
plotBeamSpotVxVal.cov
cov
Definition: plotBeamSpotVxVal.py:201
Trk::RecVertex::scaleError
void scaleError(float factor)
Error scaling method.
Trk::RecVertex
Trk::RecVertex inherits from Trk::Vertex.
Definition: RecVertex.h:44
Trk::RecVertex::RecVertex
RecVertex()
Default constructor, if called initializes a RecVertex with all data members set to 0.
Definition: RecVertex.cxx:33
GeoPrimitives.h
Trk::RecVertex::fitQuality
const Trk::FitQuality & fitQuality() const
Fit quality access method.
Definition: RecVertex.cxx:74
Trk::RecVertex::RecVertex
RecVertex(const RecVertex &)=default
Copy constructor and assignement operator.
chi2
double chi2(TH1 *h0, TH1 *h1)
Definition: comparitor.cxx:523
Trk::FitQuality
Class to represent and store fit qualities from track reconstruction in terms of and number of degre...
Definition: FitQuality.h:97
Trk::RecVertex::operator=
RecVertex & operator=(const RecVertex &)=default
Trk::RecVertex::dump
virtual MsgStream & dump(MsgStream &sl) const
Output Method for MsgStream, to be overloaded by child classes.
Definition: RecVertex.cxx:56
EventPrimitives.h
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::RecVertex::AmgSymMatrix
AmgSymMatrix(3) m_positionCovariance
covariance matrix on vertex position
Trk::RecVertex::RecVertex
RecVertex(RecVertex &&)=default
Move constructor and assignment operator.
Vertex.h
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
FitQuality.h