ATLAS Offline Software
Loading...
Searching...
No Matches
RecVertexPositions.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5/***************************************************************************
6 RecVertexPositions.h - Description
7 -------------------
8 begin : Autumn 2006
9 authors : Giacinto Piacquadio (Freiburg University)
10 email : Giacinto.Piacquadio@cern.ch
11 changes :
12
13
14 ***************************************************************************/
15
16#ifndef VxJetVertex_RecVertexPositions_H
17#define VxJetVertex_RecVertexPositions_H
18
21
22#include <iosfwd>
23
24class MsgStream;
25
26
27namespace Trk {
28
30 public:
33 RecVertexPositions(const RecVertexPositions & pos) = default;
37 RecVertexPositions(const Amg::VectorX &pos, const Amg::MatrixX &cov,
38 const double ndf = 0.,
39 const double chi2 = 0.,bool isWeightTimesPosition=false);
40 //-> added support for non integer degrees of freedom
41 // Additional constructor for truth ?
42 RecVertexPositions(const Amg::VectorX &pos, const double ndf = 0., const double chi2 =0.);
43
45 virtual MsgStream& dump(MsgStream& sl) const;
47 virtual std::ostream& dump(std::ostream& sl) const;
48
50
51 Amg::MatrixX const &covariancePosition() const;
52
54
55 void setFitQuality(const Trk::FitQuality &);
56
60 const Trk::FitQuality& fitQuality() const;
61
63
64 // Use storing weight matrix * position instead of position
65 // saves you from inverting the weight matrix at every fit iteration
66 // Then transparently, asking the position for the first time,
67 // the m_position will be restored to the correct value of position
68 // (using the invertion of the weight matrix only once...)
70
71 //the finalizePosition() method is used to ask the RecVertexPositions class
72 //to invert the weight matrix and fill the m_position vector with the real
73 //position, in order to finalize the position (and make it available)
74 void finalizePosition();
75
76 private:
78 Trk::FitQuality m_fitQuality; //chi2 and number of degrees of freedom of the fit
79 };
80
81
82} // end of namespace
83#endif
Class to represent and store fit qualities from track reconstruction in terms of and number of degre...
Definition FitQuality.h:97
RecVertexPositions(const RecVertexPositions &pos)=default
virtual ~RecVertexPositions()
default destructor
RecVertexPositions(RecVertexPositions &&pos)=default
RecVertexPositions()
default constructor, if called initializes a RecVertexPositions with all data members set to 0.
Amg::MatrixX const & covariancePosition() const
return the covDeltaV matrix of the vertex fit
void setWeightTimesPosition(const Amg::VectorX &)
const Amg::VectorX & weightTimesPosition()
void setFitQuality(const Trk::FitQuality &)
const Trk::FitQuality & fitQuality() const
Fit quality access method.
Amg::MatrixX m_positionError
cov matrix on vertex position (primary vtx+jet dir+distance)
RecVertexPositions & operator=(const RecVertexPositions &pos)=default
void setCovariancePosition(const Amg::MatrixX &)
RecVertexPositions & operator=(RecVertexPositions &&pos)=default
VertexPositions()
default constructor
double chi2(TH1 *h0, TH1 *h1)
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Eigen::Matrix< double, Eigen::Dynamic, 1 > VectorX
Dynamic Vector - dynamic allocation.
Ensure that the ATLAS eigen extensions are properly loaded.
-event-from-file