ATLAS Offline Software
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
RecVertex.h
Amg::MatrixX
Eigen::Matrix< double, Eigen::Dynamic, Eigen::Dynamic > MatrixX
Dynamic Matrix - dynamic allocation.
Definition:
EventPrimitives.h:27
CSV_InDetExporter.new
new
Definition:
CSV_InDetExporter.py:145
Trk::VxCandidate::operator=
VxCandidate & operator=(const VxCandidate &)
Definition:
VxCandidate.cxx:66
Trk::RecVertex
Trk::RecVertex inherits from Trk::Vertex.
Definition:
RecVertex.h:44
VxTrackAtVertex.h
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition:
FakeTrackBuilder.h:9
Amg
Definition of ATLAS Math & Geometry primitives (Amg)
Definition:
AmgStringHelpers.h:19
Trk::VxCandidate
Definition:
VxCandidate.h:27
ExtendedVxCandidate.h
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::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
Definition:
ExtendedVxCandidate.h:33
Generated on Sun Dec 22 2024 21:10:23 for ATLAS Offline Software by
1.8.18