ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkEvent
VxVertex
VxVertex
VxCandidate.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef VXVERTEX_VXCANDIDATE_H
6
#define VXVERTEX_VXCANDIDATE_H
7
8
#include "
TrkEventPrimitives/TrkObjectCounter.h
"
9
#include "
TrkEventPrimitives/VertexType.h
"
10
#include "
VxVertex/RecVertex.h
"
11
#include <vector>
12
19
20
class
MsgStream;
21
22
namespace
Trk
{
23
24
class
VxTrackAtVertex;
25
26
class
VxCandidate
:
public
Trk::ObjectCounter
<Trk::VxCandidate>
27
{
28
public
:
32
VxCandidate
();
33
38
VxCandidate
(
const
Trk::RecVertex
&
recVertex
,
39
const
std::vector<Trk::VxTrackAtVertex*>&
vxTrackAtVertex
);
40
41
VxCandidate
(
Trk::RecVertex
&&
recVertex
, std::vector<Trk::VxTrackAtVertex*>&&
vxTrackAtVertex
);
42
46
virtual
~VxCandidate
();
47
VxCandidate
(
const
VxCandidate
& rhs);
48
VxCandidate
&
operator=
(
const
VxCandidate
&);
49
VxCandidate
&
operator=
(
VxCandidate
&&)
noexcept
;
50
virtual
VxCandidate
*
clone
()
const
;
51
53
virtual
MsgStream&
dump
(MsgStream& sl)
const
;
55
virtual
std::ostream&
dump
(std::ostream& sl)
const
;
56
60
const
Trk::RecVertex
&
recVertex
(
void
)
const
;
61
66
Trk::RecVertex
&
recVertex
(
void
);
67
71
void
setRecVertex
(
Trk::RecVertex
&
recVertex
);
72
77
std::vector<Trk::VxTrackAtVertex*>*
vxTrackAtVertex
(
void
);
78
82
const
std::vector<Trk::VxTrackAtVertex*>*
vxTrackAtVertex
(
void
)
const
;
83
87
void
setVertexType
(
VertexType
vertexType
);
88
92
VertexType
vertexType
()
const
;
93
94
protected
:
95
// the type of the vertex (see TrkEventPrimitives/VertexType.h for details)
96
Trk::VertexType
m_vertexType
;
97
98
// the fitted vertex (position plus error matrix)
99
Trk::RecVertex
m_recVertex
;
100
101
// information on used tracks
102
std::vector<Trk::VxTrackAtVertex*>
m_vxTrackAtVertex
;
103
104
};
// end of class definitions
105
108
MsgStream&
109
operator<<
(MsgStream& sl,
const
VxCandidate
& sf);
110
std::ostream&
111
operator<<
(std::ostream& sl,
const
VxCandidate
& sf);
112
113
inline
void
114
VxCandidate::setVertexType
(
VertexType
vertexType
)
115
{
116
m_vertexType
=
vertexType
;
117
}
118
119
inline
VertexType
120
VxCandidate::vertexType
()
const
121
{
122
return
m_vertexType
;
123
}
124
125
inline
void
126
VxCandidate::setRecVertex
(
Trk::RecVertex
&
recVertex
)
127
{
128
m_recVertex
=
recVertex
;
129
}
130
131
inline
const
Trk::RecVertex
&
132
VxCandidate::recVertex
(
void
)
const
133
{
134
return
m_recVertex
;
135
}
136
137
inline
Trk::RecVertex
&
138
VxCandidate::recVertex
(
void
)
139
{
140
return
m_recVertex
;
141
}
142
143
inline
std::vector<Trk::VxTrackAtVertex*>*
144
VxCandidate::vxTrackAtVertex
(
void
)
145
{
146
return
&
m_vxTrackAtVertex
;
147
}
148
149
inline
const
std::vector<Trk::VxTrackAtVertex*>*
150
VxCandidate::vxTrackAtVertex
(
void
)
const
151
{
152
return
&
m_vxTrackAtVertex
;
153
}
154
155
inline
Trk::VxCandidate
*
156
Trk::VxCandidate::clone
()
const
157
{
158
return
new
Trk::VxCandidate
(*
this
);
159
}
160
161
}
// end of namespace definitions
162
#endif
RecVertex.h
TrkObjectCounter.h
VertexType.h
Trk::ObjectCounter
Helper to enable counting number of instantiations in debug builds.
Definition
TrkObjectCounter.h:18
Trk::RecVertex
Trk::RecVertex inherits from Trk::Vertex.
Definition
RecVertex.h:44
Trk::VxCandidate
Definition
VxCandidate.h:27
Trk::VxCandidate::m_vxTrackAtVertex
std::vector< Trk::VxTrackAtVertex * > m_vxTrackAtVertex
Definition
VxCandidate.h:102
Trk::VxCandidate::setRecVertex
void setRecVertex(Trk::RecVertex &recVertex)
RecVertex set method.
Definition
VxCandidate.h:126
Trk::VxCandidate::setVertexType
void setVertexType(VertexType vertexType)
return the type of the vertex
Definition
VxCandidate.h:114
Trk::VxCandidate::vertexType
VertexType vertexType() const
return the type of the vertex
Definition
VxCandidate.h:120
Trk::VxCandidate::clone
virtual VxCandidate * clone() const
Definition
VxCandidate.h:156
Trk::VxCandidate::m_vertexType
Trk::VertexType m_vertexType
Definition
VxCandidate.h:96
Trk::VxCandidate::m_recVertex
Trk::RecVertex m_recVertex
Definition
VxCandidate.h:99
Trk::VxCandidate::~VxCandidate
virtual ~VxCandidate()
Virtual destructor, copy-constructor and assignement operator.
Definition
VxCandidate.cxx:91
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
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Trk::VertexType
VertexType
This file defines the enums in the Trk namespace for the different vertex types.
Definition
VertexType.h:25
Trk::operator<<
MsgStream & operator<<(MsgStream &sl, const AlignModule &alignModule)
overload of << operator for MsgStream for debug output
Definition
AlignModule.cxx:204
dump
-event-from-file
Generated on
for ATLAS Offline Software by
1.17.0