ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkEvent
VxJetVertex
VxJetVertex
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
19
#include "
VxJetVertex/VertexPositions.h
"
20
#include "
TrkEventPrimitives/FitQuality.h
"
21
22
#include <iosfwd>
23
24
class
MsgStream;
25
26
27
namespace
Trk
{
28
29
class
RecVertexPositions
:
public
VertexPositions
{
30
public
:
31
RecVertexPositions
();
32
RecVertexPositions
(
const
VertexPositions
& pos);
33
RecVertexPositions
(
const
RecVertexPositions
& pos) =
default
;
34
RecVertexPositions
(
RecVertexPositions
&& pos) =
default
;
35
RecVertexPositions
&
operator=
(
const
RecVertexPositions
& pos) =
default
;
36
RecVertexPositions
&
operator=
(
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
49
virtual
~RecVertexPositions
();
50
51
Amg::MatrixX
const
&
covariancePosition
()
const
;
52
53
void
setCovariancePosition
(
const
Amg::MatrixX
&);
54
55
void
setFitQuality
(
const
Trk::FitQuality
&);
56
60
const
Trk::FitQuality
&
fitQuality
()
const
;
61
62
const
Amg::VectorX
&
weightTimesPosition
();
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...)
69
void
setWeightTimesPosition
(
const
Amg::VectorX
&);
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
:
77
Amg::MatrixX
m_positionError
;
78
Trk::FitQuality
m_fitQuality
;
//chi2 and number of degrees of freedom of the fit
79
};
80
81
82
}
// end of namespace
83
#endif
FitQuality.h
VertexPositions.h
Trk::FitQuality
Class to represent and store fit qualities from track reconstruction in terms of and number of degre...
Definition
FitQuality.h:97
Trk::RecVertexPositions::RecVertexPositions
RecVertexPositions(const RecVertexPositions &pos)=default
Trk::RecVertexPositions::m_fitQuality
Trk::FitQuality m_fitQuality
Definition
RecVertexPositions.h:78
Trk::RecVertexPositions::~RecVertexPositions
virtual ~RecVertexPositions()
default destructor
Trk::RecVertexPositions::RecVertexPositions
RecVertexPositions(RecVertexPositions &&pos)=default
Trk::RecVertexPositions::RecVertexPositions
RecVertexPositions()
default constructor, if called initializes a RecVertexPositions with all data members set to 0.
Definition
RecVertexPositions.cxx:24
Trk::RecVertexPositions::covariancePosition
Amg::MatrixX const & covariancePosition() const
return the covDeltaV matrix of the vertex fit
Definition
RecVertexPositions.cxx:123
Trk::RecVertexPositions::setWeightTimesPosition
void setWeightTimesPosition(const Amg::VectorX &)
Definition
RecVertexPositions.cxx:65
Trk::RecVertexPositions::weightTimesPosition
const Amg::VectorX & weightTimesPosition()
Definition
RecVertexPositions.cxx:50
Trk::RecVertexPositions::setFitQuality
void setFitQuality(const Trk::FitQuality &)
Definition
RecVertexPositions.cxx:131
Trk::RecVertexPositions::fitQuality
const Trk::FitQuality & fitQuality() const
Fit quality access method.
Definition
RecVertexPositions.cxx:119
Trk::RecVertexPositions::m_positionError
Amg::MatrixX m_positionError
cov matrix on vertex position (primary vtx+jet dir+distance)
Definition
RecVertexPositions.h:77
Trk::RecVertexPositions::operator=
RecVertexPositions & operator=(const RecVertexPositions &pos)=default
Trk::RecVertexPositions::setCovariancePosition
void setCovariancePosition(const Amg::MatrixX &)
Definition
RecVertexPositions.cxx:127
Trk::RecVertexPositions::operator=
RecVertexPositions & operator=(RecVertexPositions &&pos)=default
Trk::RecVertexPositions::finalizePosition
void finalizePosition()
Definition
RecVertexPositions.cxx:73
Trk::VertexPositions::VertexPositions
VertexPositions()
default constructor
Definition
VertexPositions.cxx:20
chi2
double chi2(TH1 *h0, TH1 *h1)
Definition
comparitor.cxx:525
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition
EventPrimitives.h:27
Amg::VectorX
Eigen::Matrix< double, Eigen::Dynamic, 1 > VectorX
Dynamic Vector - dynamic allocation.
Definition
EventPrimitives.h:30
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
dump
-event-from-file
Generated on
for ATLAS Offline Software by
1.17.0