ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkEvent
VxVertex
src
ExtendedVxCandidate.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
VxVertex/ExtendedVxCandidate.h
"
6
#include "
VxVertex/RecVertex.h
"
7
#include "
VxVertex/VxTrackAtVertex.h
"
8
9
namespace
Trk
10
{
11
12
//default constructor for persistensy
13
ExtendedVxCandidate::ExtendedVxCandidate
() :
VxCandidate
(),
m_fullCovariance
(nullptr)
14
{}
15
16
17
//real working constructor
18
ExtendedVxCandidate::ExtendedVxCandidate
(
const
Trk::RecVertex
&
recVertex
,
19
const
std::vector<Trk::VxTrackAtVertex *>&
vxTrackAtVertex
,
20
const
Amg::MatrixX
* fullCov) :
21
VxCandidate
(
recVertex
,
vxTrackAtVertex
),
22
m_fullCovariance
(fullCov) {}
23
24
ExtendedVxCandidate::~ExtendedVxCandidate
()
25
{
26
if
(
m_fullCovariance
!=
nullptr
) {
delete
m_fullCovariance
;
27
}
28
}
29
30
ExtendedVxCandidate::ExtendedVxCandidate
(
const
ExtendedVxCandidate
& rhs):
31
VxCandidate
(rhs),
32
m_fullCovariance
(rhs.
m_fullCovariance
? new
Amg
::MatrixX(*rhs.
m_fullCovariance
) : nullptr)
33
{}
34
35
ExtendedVxCandidate
&
ExtendedVxCandidate::operator=
(
const
ExtendedVxCandidate
& rhs)
36
{
37
if
(
this
!=&rhs)
38
{
39
this->
VxCandidate::operator=
(rhs);
40
delete
m_fullCovariance
;
41
m_fullCovariance
= rhs.
m_fullCovariance
?
new
Amg::MatrixX
(*rhs.
m_fullCovariance
) :
nullptr
;
42
}
43
return
*
this
;
44
}
//end of assignement operator
45
46
47
}
//end of namespace definitions
ExtendedVxCandidate.h
RecVertex.h
VxTrackAtVertex.h
Trk::ExtendedVxCandidate::ExtendedVxCandidate
ExtendedVxCandidate()
Standard constructor for persistency.
Definition
ExtendedVxCandidate.cxx:13
Trk::ExtendedVxCandidate::operator=
ExtendedVxCandidate & operator=(const ExtendedVxCandidate &)
Assignement operator.
Definition
ExtendedVxCandidate.cxx:35
Trk::ExtendedVxCandidate::~ExtendedVxCandidate
virtual ~ExtendedVxCandidate()
Virtual calss destructor.
Definition
ExtendedVxCandidate.cxx:24
Trk::ExtendedVxCandidate::m_fullCovariance
const Amg::MatrixX * m_fullCovariance
Full covariance matrix of the vertex and all corresponding tracks.
Definition
ExtendedVxCandidate.h:83
Trk::RecVertex
Trk::RecVertex inherits from Trk::Vertex.
Definition
RecVertex.h:44
Trk::VxCandidate::vxTrackAtVertex
std::vector< Trk::VxTrackAtVertex * > * vxTrackAtVertex(void)
Unconst pointer to the vector of tracks Required by some of the vertex fitters.
Definition
VxCandidate.h:144
Trk::VxCandidate::recVertex
const Trk::RecVertex & recVertex(void) const
Returns a reference to reconstructed vertex.
Definition
VxCandidate.h:132
Trk::VxCandidate::operator=
VxCandidate & operator=(const VxCandidate &)
Definition
VxCandidate.cxx:59
Trk::VxCandidate::VxCandidate
VxCandidate()
Default constructor for persistency.
Definition
VxCandidate.cxx:20
Amg
Definition of ATLAS Math & Geometry primitives (Amg).
Definition
AmgStringHelpers.h:19
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition
EventPrimitives.h:27
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Generated on
for ATLAS Offline Software by
1.17.0