ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
Trk::MvfFitInfo Class Reference

#include <MvfFitInfo.h>

Collaboration diagram for Trk::MvfFitInfo:

Public Member Functions

 MvfFitInfo ()
 Default constructor and destructor. More...
 
 MvfFitInfo (xAOD::Vertex *constraintVertex, Amg::Vector3D *seedVertex, Amg::Vector3D *linearizationVertex)
 Constructor taking pointers to constraint vertex, seed vertex and linearization point. More...
 
virtual ~MvfFitInfo ()
 
 MvfFitInfo (const MvfFitInfo &rhs)
 Copy-constructor and assignement operator. More...
 
MvfFitInfooperator= (const MvfFitInfo &rhs)
 
const xAOD::VertexconstraintVertex (void) const
 Const access to the constraint vertex. More...
 
xAOD::VertexconstraintVertex (void)
 Unconst access to the constraint vertex. More...
 
void setConstraintVertex (xAOD::Vertex *)
 Constraint vertex set method. More...
 
const Amg::Vector3DseedVertex (void) const
 Const access to the seed vertex. More...
 
Amg::Vector3DseedVertex (void)
 Unconst access to the seed vertex. More...
 
void setSeedVertex (Amg::Vector3D *)
 Seed vertex set method. More...
 
const Amg::Vector3DlinearizationVertex (void) const
 Const access to the linearization point. More...
 
Amg::Vector3DlinearizationVertex (void)
 Unconst access to the linearization point. More...
 
void setLinearizationVertex (Amg::Vector3D *)
 Linearization point set method. More...
 

Private Attributes

xAOD::Vertexm_constraintVertex
 
Amg::Vector3Dm_seedVertex
 
Amg::Vector3Dm_linearizationVertex
 

Detailed Description

Definition at line 39 of file MvfFitInfo.h.

Constructor & Destructor Documentation

◆ MvfFitInfo() [1/3]

Trk::MvfFitInfo::MvfFitInfo ( )

Default constructor and destructor.

Definition at line 11 of file MvfFitInfo.cxx.

11  :m_constraintVertex(nullptr), m_seedVertex(nullptr), m_linearizationVertex(nullptr)
12  {}

◆ MvfFitInfo() [2/3]

Trk::MvfFitInfo::MvfFitInfo ( xAOD::Vertex constraintVertex,
Amg::Vector3D seedVertex,
Amg::Vector3D linearizationVertex 
)

Constructor taking pointers to constraint vertex, seed vertex and linearization point.

Definition at line 14 of file MvfFitInfo.cxx.

16  :
20  {
21  // TODO: makePrivateStore() on constraintVertex here if not done so already?
22  }

◆ ~MvfFitInfo()

Trk::MvfFitInfo::~MvfFitInfo ( )
virtual

Definition at line 24 of file MvfFitInfo.cxx.

25  {
26  delete m_constraintVertex;
27  delete m_seedVertex;
28  delete m_linearizationVertex;
29  }//end of destructor

◆ MvfFitInfo() [3/3]

Trk::MvfFitInfo::MvfFitInfo ( const MvfFitInfo rhs)

Copy-constructor and assignement operator.

Definition at line 31 of file MvfFitInfo.cxx.

31  :
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  {}

Member Function Documentation

◆ constraintVertex() [1/2]

xAOD::Vertex * Trk::MvfFitInfo::constraintVertex ( void  )
inline

Unconst access to the constraint vertex.

Definition at line 128 of file MvfFitInfo.h.

129  {
130  return m_constraintVertex;
131  }

◆ constraintVertex() [2/2]

const xAOD::Vertex * Trk::MvfFitInfo::constraintVertex ( void  ) const
inline

Const access to the constraint vertex.

Definition at line 123 of file MvfFitInfo.h.

124  {
125  return m_constraintVertex;
126  }

◆ linearizationVertex() [1/2]

Amg::Vector3D * Trk::MvfFitInfo::linearizationVertex ( void  )
inline

Unconst access to the linearization point.

Definition at line 148 of file MvfFitInfo.h.

149  {
150  return m_linearizationVertex;
151  }

◆ linearizationVertex() [2/2]

const Amg::Vector3D * Trk::MvfFitInfo::linearizationVertex ( void  ) const
inline

Const access to the linearization point.

Definition at line 143 of file MvfFitInfo.h.

144  {
145  return m_linearizationVertex;
146  }

◆ operator=()

MvfFitInfo & Trk::MvfFitInfo::operator= ( const MvfFitInfo rhs)

Definition at line 37 of file MvfFitInfo.cxx.

38  {
39  if (this!=&rhs)
40  {
41  delete m_constraintVertex;
42  m_constraintVertex = rhs.m_constraintVertex ? new xAOD::Vertex(*rhs.m_constraintVertex) : nullptr;
43  delete m_seedVertex;
44  m_seedVertex = rhs.m_seedVertex? new Amg::Vector3D(*rhs.m_seedVertex) : nullptr;
45  delete m_linearizationVertex;
46  m_linearizationVertex = rhs.m_linearizationVertex ? new Amg::Vector3D(*rhs.m_linearizationVertex) : nullptr;
47  }
48  return *this;
49  }

◆ seedVertex() [1/2]

Amg::Vector3D * Trk::MvfFitInfo::seedVertex ( void  )
inline

Unconst access to the seed vertex.

Definition at line 138 of file MvfFitInfo.h.

139  {
140  return m_seedVertex;
141  }

◆ seedVertex() [2/2]

const Amg::Vector3D * Trk::MvfFitInfo::seedVertex ( void  ) const
inline

Const access to the seed vertex.

Definition at line 133 of file MvfFitInfo.h.

134  {
135  return m_seedVertex;
136  }

◆ setConstraintVertex()

void Trk::MvfFitInfo::setConstraintVertex ( xAOD::Vertex constraintVertex)
inline

Constraint vertex set method.

Definition at line 117 of file MvfFitInfo.h.

118  {
120  }

◆ setLinearizationVertex()

void Trk::MvfFitInfo::setLinearizationVertex ( Amg::Vector3D linearizationVertex)

Linearization point set method.

Definition at line 60 of file MvfFitInfo.cxx.

61  {
62  if (m_linearizationVertex!=nullptr) { delete m_linearizationVertex;
63 }
65  }

◆ setSeedVertex()

void Trk::MvfFitInfo::setSeedVertex ( Amg::Vector3D seedVertex)

Seed vertex set method.

Definition at line 52 of file MvfFitInfo.cxx.

53  {
54  if (m_seedVertex!=nullptr) { delete m_seedVertex;
55 }
57  }

Member Data Documentation

◆ m_constraintVertex

xAOD::Vertex* Trk::MvfFitInfo::m_constraintVertex
private

Definition at line 110 of file MvfFitInfo.h.

◆ m_linearizationVertex

Amg::Vector3D* Trk::MvfFitInfo::m_linearizationVertex
private

Definition at line 112 of file MvfFitInfo.h.

◆ m_seedVertex

Amg::Vector3D* Trk::MvfFitInfo::m_seedVertex
private

Definition at line 111 of file MvfFitInfo.h.


The documentation for this class was generated from the following files:
xAOD::Vertex
Vertex_v1 Vertex
Define the latest version of the vertex class.
Definition: Event/xAOD/xAODTracking/xAODTracking/Vertex.h:16
Trk::MvfFitInfo::m_constraintVertex
xAOD::Vertex * m_constraintVertex
Definition: MvfFitInfo.h:110
Trk::MvfFitInfo::seedVertex
const Amg::Vector3D * seedVertex(void) const
Const access to the seed vertex.
Definition: MvfFitInfo.h:133
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::constraintVertex
const xAOD::Vertex * constraintVertex(void) const
Const access to the constraint vertex.
Definition: MvfFitInfo.h:123
Trk::MvfFitInfo::linearizationVertex
const Amg::Vector3D * linearizationVertex(void) const
Const access to the linearization point.
Definition: MvfFitInfo.h:143