ATLAS Offline Software
Loading...
Searching...
No Matches
Trk::MVFVxCandidate Class Reference

#include <MVFVxCandidate.h>

Inheritance diagram for Trk::MVFVxCandidate:
Collaboration diagram for Trk::MVFVxCandidate:

Public Member Functions

 MVFVxCandidate ()
 Default constructor and destructor.
virtual ~MVFVxCandidate ()
 MVFVxCandidate (const Trk::RecVertex &recVertex, const std::vector< Trk::VxTrackAtVertex * > &vxTrackAtVertex)
 Reimplementation of the VxCandidate constructor.
 MVFVxCandidate (xAOD::Vertex *constraintVertex, Amg::Vector3D *seedVertex, Amg::Vector3D *linearizationVertex, const Trk::RecVertex &recVertex, std::vector< Trk::VxTrackAtVertex * > &vxTrackAtVertex)
 Constructors with additional information: constraint vertex, seed vertex, linearization point.
 MVFVxCandidate (xAOD::Vertex *constraintVertex, Amg::Vector3D *seedVertex, Amg::Vector3D *linearizationVertex)
 Constructors with additional information: constraint vertex, seed vertex, linearization point.
 MVFVxCandidate (const MVFVxCandidate &rhs)
 Copy-constructor.
MVFVxCandidateoperator= (const MVFVxCandidate &)
 Assignement operator.
const Trk::MvfFitInfovertexFitInfo (void) const
 Fit info const access.
Trk::MvfFitInfovertexFitInfo (void)
 Fit info unconst access.
void setVertexFitInfo (const Trk::MvfFitInfo &info)
 Fit info set method.
bool isInitialized (void)
 Intializaion check.
void setInitialized (bool what)
 Set intializaion.
virtual MVFVxCandidateclone () const
 Clone method.
virtual MsgStream & dump (MsgStream &sl) const
 Output Method for MsgStream, to be overloaded by child classes.
virtual std::ostream & dump (std::ostream &sl) const
 Output Method for std::ostream, to be overloaded by child classes.
const Trk::RecVertexrecVertex (void) const
 Returns a reference to reconstructed vertex.
Trk::RecVertexrecVertex (void)
 Returns unconst reference to a reconstructed vertex Required by some of the vertex fitters.
void setRecVertex (Trk::RecVertex &recVertex)
 RecVertex set method.
std::vector< Trk::VxTrackAtVertex * > * vxTrackAtVertex (void)
 Unconst pointer to the vector of tracks Required by some of the vertex fitters.
const std::vector< Trk::VxTrackAtVertex * > * vxTrackAtVertex (void) const
 Const access to the vector of tracks fitted to the vertex.
void setVertexType (VertexType vertexType)
 return the type of the vertex
VertexType vertexType () const
 return the type of the vertex

Static Public Member Functions

static std::size_t numberOfInstantiations ()

Static Public Attributes

static std::atomic_size_t s_numberOfInstantiations

Protected Attributes

Trk::VertexType m_vertexType
Trk::RecVertex m_recVertex
std::vector< Trk::VxTrackAtVertex * > m_vxTrackAtVertex

Private Attributes

Trk::MvfFitInfo m_fitInfo
bool m_initialized {}

Detailed Description

Definition at line 36 of file MVFVxCandidate.h.

Constructor & Destructor Documentation

◆ MVFVxCandidate() [1/5]

Trk::MVFVxCandidate::MVFVxCandidate ( )

Default constructor and destructor.

Definition at line 20 of file MVFVxCandidate.cxx.

20 :
21 VxCandidate(),
22 m_fitInfo(Trk::MvfFitInfo(nullptr,nullptr,nullptr)),
23 m_initialized(false)
24 {}
Trk::MvfFitInfo m_fitInfo
VxCandidate()
Default constructor for persistency.

◆ ~MVFVxCandidate()

Trk::MVFVxCandidate::~MVFVxCandidate ( )
virtualdefault

◆ MVFVxCandidate() [2/5]

Trk::MVFVxCandidate::MVFVxCandidate ( const Trk::RecVertex & recVertex,
const std::vector< Trk::VxTrackAtVertex * > & vxTrackAtVertex )

Reimplementation of the VxCandidate constructor.

Definition at line 26 of file MVFVxCandidate.cxx.

27 :
29 m_fitInfo(Trk::MvfFitInfo(nullptr,nullptr,nullptr)),
30 m_initialized(true){}
std::vector< Trk::VxTrackAtVertex * > * vxTrackAtVertex(void)
Unconst pointer to the vector of tracks Required by some of the vertex fitters.
const Trk::RecVertex & recVertex(void) const
Returns a reference to reconstructed vertex.

◆ MVFVxCandidate() [3/5]

Trk::MVFVxCandidate::MVFVxCandidate ( xAOD::Vertex * constraintVertex,
Amg::Vector3D * seedVertex,
Amg::Vector3D * linearizationVertex,
const Trk::RecVertex & recVertex,
std::vector< Trk::VxTrackAtVertex * > & vxTrackAtVertex )

Constructors with additional information: constraint vertex, seed vertex, linearization point.

Definition at line 32 of file MVFVxCandidate.cxx.

36 :
38 m_fitInfo(Trk::MvfFitInfo(constraintVertex,seedVertex,linearizationVertex)),
39 m_initialized(true){}

◆ MVFVxCandidate() [4/5]

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

Constructors with additional information: constraint vertex, seed vertex, linearization point.

Definition at line 41 of file MVFVxCandidate.cxx.

43 :
45 m_fitInfo(Trk::MvfFitInfo(constraintVertex,seedVertex,linearizationVertex)),
46 m_initialized(false){}

◆ MVFVxCandidate() [5/5]

Trk::MVFVxCandidate::MVFVxCandidate ( const MVFVxCandidate & rhs)
default

Copy-constructor.

Member Function Documentation

◆ clone()

Trk::MVFVxCandidate * Trk::MVFVxCandidate::clone ( ) const
inlinevirtual

Clone method.

Reimplemented from Trk::VxCandidate.

Definition at line 144 of file MVFVxCandidate.h.

145 {
146 return new Trk::MVFVxCandidate(*this);
147 }

◆ dump() [1/2]

MsgStream & Trk::MVFVxCandidate::dump ( MsgStream & sl) const
virtual

Output Method for MsgStream, to be overloaded by child classes.

Reimplemented from Trk::VxCandidate.

Definition at line 67 of file MVFVxCandidate.cxx.

67 {
68 sl << "Printing Trk::MVFVxCandidate:" << endmsg;
69 // for now just print base class
71 return sl;
72 }
#define endmsg
virtual MsgStream & dump(MsgStream &sl) const
Output Method for MsgStream, to be overloaded by child classes.

◆ dump() [2/2]

std::ostream & Trk::MVFVxCandidate::dump ( std::ostream & sl) const
virtual

Output Method for std::ostream, to be overloaded by child classes.

Reimplemented from Trk::VxCandidate.

Definition at line 74 of file MVFVxCandidate.cxx.

74 {
75 sl << "Printing Trk::MVFVxCandidate:" << std::endl;
76 // for now just print base class
78 return sl;
79 }

◆ isInitialized()

bool Trk::MVFVxCandidate::isInitialized ( void )
inline

Intializaion check.

Definition at line 121 of file MVFVxCandidate.h.

121 {
122 return m_initialized;
123 }

◆ numberOfInstantiations()

std::size_t Trk::ObjectCounter< Trk::VxCandidate >::numberOfInstantiations ( )
inlinestaticinherited

Definition at line 25 of file TrkObjectCounter.h.

26 {
27#ifndef NDEBUG
28 return s_numberOfInstantiations.load();
29#endif
30 return 0;
31 }
Helper to enable counting number of instantiations in debug builds.

◆ operator=()

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

Assignement operator.

Definition at line 53 of file MVFVxCandidate.cxx.

54 {
55 if (this!=&rhs)
56 {
57 this->operator=(rhs);
58 m_fitInfo = rhs.m_fitInfo;
59 m_initialized = rhs.m_initialized;
60 }
61 return *this;
62 }
MVFVxCandidate & operator=(const MVFVxCandidate &)
Assignement operator.

◆ recVertex() [1/2]

Trk::RecVertex & Trk::VxCandidate::recVertex ( void )
inlineinherited

Returns unconst reference to a reconstructed vertex Required by some of the vertex fitters.

Definition at line 138 of file VxCandidate.h.

139{
140 return m_recVertex;
141}
Trk::RecVertex m_recVertex
Definition VxCandidate.h:99

◆ recVertex() [2/2]

const Trk::RecVertex & Trk::VxCandidate::recVertex ( void ) const
inlineinherited

Returns a reference to reconstructed vertex.

Definition at line 132 of file VxCandidate.h.

133{
134 return m_recVertex;
135}

◆ setInitialized()

void Trk::MVFVxCandidate::setInitialized ( bool what)
inline

Set intializaion.

Definition at line 125 of file MVFVxCandidate.h.

125 {
127 }

◆ setRecVertex()

void Trk::VxCandidate::setRecVertex ( Trk::RecVertex & recVertex)
inlineinherited

RecVertex set method.

Definition at line 126 of file VxCandidate.h.

127{
129}

◆ setVertexFitInfo()

void Trk::MVFVxCandidate::setVertexFitInfo ( const Trk::MvfFitInfo & info)
inline

Fit info set method.

Definition at line 139 of file MVFVxCandidate.h.

◆ setVertexType()

void Trk::VxCandidate::setVertexType ( VertexType vertexType)
inlineinherited

return the type of the vertex

Definition at line 114 of file VxCandidate.h.

115{
117}
VertexType vertexType() const
return the type of the vertex
Trk::VertexType m_vertexType
Definition VxCandidate.h:96

◆ vertexFitInfo() [1/2]

Trk::MvfFitInfo & Trk::MVFVxCandidate::vertexFitInfo ( void )
inline

Fit info unconst access.

Definition at line 134 of file MVFVxCandidate.h.

135 {
136 return m_fitInfo;
137 }

◆ vertexFitInfo() [2/2]

const Trk::MvfFitInfo & Trk::MVFVxCandidate::vertexFitInfo ( void ) const
inline

Fit info const access.

Definition at line 129 of file MVFVxCandidate.h.

130 {
131 return m_fitInfo;
132 }

◆ vertexType()

VertexType Trk::VxCandidate::vertexType ( ) const
inlineinherited

return the type of the vertex

Definition at line 120 of file VxCandidate.h.

121{
122 return m_vertexType;
123}

◆ vxTrackAtVertex() [1/2]

std::vector< Trk::VxTrackAtVertex * > * Trk::VxCandidate::vxTrackAtVertex ( void )
inlineinherited

Unconst pointer to the vector of tracks Required by some of the vertex fitters.

Definition at line 144 of file VxCandidate.h.

145{
146 return &m_vxTrackAtVertex;
147}
std::vector< Trk::VxTrackAtVertex * > m_vxTrackAtVertex

◆ vxTrackAtVertex() [2/2]

const std::vector< Trk::VxTrackAtVertex * > * Trk::VxCandidate::vxTrackAtVertex ( void ) const
inlineinherited

Const access to the vector of tracks fitted to the vertex.

Definition at line 150 of file VxCandidate.h.

151{
152 return &m_vxTrackAtVertex;
153}

Member Data Documentation

◆ m_fitInfo

Trk::MvfFitInfo Trk::MVFVxCandidate::m_fitInfo
private

Definition at line 116 of file MVFVxCandidate.h.

◆ m_initialized

bool Trk::MVFVxCandidate::m_initialized {}
private

Definition at line 117 of file MVFVxCandidate.h.

117{};

◆ m_recVertex

Trk::RecVertex Trk::VxCandidate::m_recVertex
protectedinherited

Definition at line 99 of file VxCandidate.h.

◆ m_vertexType

Trk::VertexType Trk::VxCandidate::m_vertexType
protectedinherited

Definition at line 96 of file VxCandidate.h.

◆ m_vxTrackAtVertex

std::vector<Trk::VxTrackAtVertex*> Trk::VxCandidate::m_vxTrackAtVertex
protectedinherited

Definition at line 102 of file VxCandidate.h.

◆ s_numberOfInstantiations

std::atomic_size_t Trk::ObjectCounter< Trk::VxCandidate >::s_numberOfInstantiations
inlinestaticinherited

Definition at line 22 of file TrkObjectCounter.h.


The documentation for this class was generated from the following files: