ATLAS Offline Software
MvfFitInfo.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 namespace Trk
8 {
9 
10 //default constructor, setting all pointers to zero
11  MvfFitInfo::MvfFitInfo():m_constraintVertex(nullptr), m_seedVertex(nullptr), m_linearizationVertex(nullptr)
12  {}
13 
15  Amg::Vector3D* seedVertex,
16  Amg::Vector3D* linearizationVertex):
17  m_constraintVertex(constraintVertex),
18  m_seedVertex(seedVertex),
19  m_linearizationVertex(linearizationVertex)
20  {
21  // TODO: makePrivateStore() on constraintVertex here if not done so already?
22  }
23 
25  {
26  delete m_constraintVertex;
27  delete m_seedVertex;
28  delete m_linearizationVertex;
29  }//end of destructor
30 
32  m_constraintVertex(rhs.m_constraintVertex ? new xAOD::Vertex(*rhs.m_constraintVertex) : nullptr),
33  m_seedVertex(rhs.m_seedVertex ? new Amg::Vector3D(*rhs.m_seedVertex) : nullptr),
34  m_linearizationVertex(rhs.m_linearizationVertex ? new Amg::Vector3D(*rhs.m_linearizationVertex) : nullptr)
35  {}
36 
38  {
39  if (this!=&rhs)
40  {
41  delete m_constraintVertex;
43  delete m_seedVertex;
44  m_seedVertex = rhs.m_seedVertex? new Amg::Vector3D(*rhs.m_seedVertex) : nullptr;
45  delete m_linearizationVertex;
47  }
48  return *this;
49  }
50 
51 
53  {
54  if (m_seedVertex!=nullptr) { delete m_seedVertex;
55 }
57  }
58 
59 
61  {
62  if (m_linearizationVertex!=nullptr) { delete m_linearizationVertex;
63 }
65  }
66 
67 
68 }//end of namespace definitions
MvfFitInfo.h
Trk::Vertex
Definition: Tracking/TrkEvent/VxVertex/VxVertex/Vertex.h:26
Trk::MvfFitInfo::setSeedVertex
void setSeedVertex(Amg::Vector3D *)
Seed vertex set method.
Definition: MvfFitInfo.cxx:52
xAOD::Vertex
Vertex_v1 Vertex
Define the latest version of the vertex class.
Definition: Event/xAOD/xAODTracking/xAODTracking/Vertex.h:16
CSV_InDetExporter.new
new
Definition: CSV_InDetExporter.py:145
Trk::MvfFitInfo::MvfFitInfo
MvfFitInfo()
Default constructor and destructor.
Definition: MvfFitInfo.cxx:11
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
Trk::MvfFitInfo::m_constraintVertex
xAOD::Vertex * m_constraintVertex
Definition: MvfFitInfo.h:110
Trk::MvfFitInfo::operator=
MvfFitInfo & operator=(const MvfFitInfo &rhs)
Definition: MvfFitInfo.cxx:37
Trk::MvfFitInfo::seedVertex
const Amg::Vector3D * seedVertex(void) const
Const access to the seed vertex.
Definition: MvfFitInfo.h:133
Trk::MvfFitInfo::~MvfFitInfo
virtual ~MvfFitInfo()
Definition: MvfFitInfo.cxx:24
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
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
Trk::MvfFitInfo::m_seedVertex
Amg::Vector3D * m_seedVertex
Definition: MvfFitInfo.h:111
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
Trk::MvfFitInfo::m_linearizationVertex
Amg::Vector3D * m_linearizationVertex
Definition: MvfFitInfo.h:112
Trk::MvfFitInfo::linearizationVertex
const Amg::Vector3D * linearizationVertex(void) const
Const access to the linearization point.
Definition: MvfFitInfo.h:143
Trk::MvfFitInfo::setLinearizationVertex
void setLinearizationVertex(Amg::Vector3D *)
Linearization point set method.
Definition: MvfFitInfo.cxx:60
Trk::MvfFitInfo
Definition: MvfFitInfo.h:40