ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Tracking
TrkEvent
TrkTrack
src
LinkToTrack.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 "
TrkTrack/LinkToTrack.h
"
6
#include "
TrkTrack/Track.h
"
7
#include "
TrkTrack/TrackCollection.h
"
8
9
namespace
Trk
{
10
LinkToTrack::LinkToTrack
()
11
:
ElementLink
<
TrackCollection
>()
12
{}
13
14
LinkToTrack::LinkToTrack
(
ElementLink<TrackCollection>
& link)
15
:
ElementLink
<
TrackCollection
>(link)
16
{}
17
18
const
TrackParameters
*
19
LinkToTrack::parameters
()
const
20
{
21
if
(
isValid
()) {
22
const
Trk::Track
* trk = this->
cachedElement
();
23
if
(
nullptr
!= trk) {
24
return
trk->
perigeeParameters
();
25
}
26
return
nullptr
;
27
}
28
return
nullptr
;
29
}
// end of parameters method
30
31
Trk::LinkToTrack
*
32
Trk::LinkToTrack::clone
()
const
33
{
34
return
new
LinkToTrack
(*
this
);
35
}
36
37
}
// end of namespace definitions
LinkToTrack.h
TrackCollection.h
TrackCollection
DataVector< Trk::Track > TrackCollection
This typedef represents a collection of Trk::Track objects.
Definition
TrackCollection.h:19
Track.h
ElementLink< TrackCollection >::isValid
bool isValid() const
ElementLink< TrackCollection >::ElementLink
ElementLink()
ElementLink< TrackCollection >::cachedElement
ElementType cachedElement() const
Definition
A/AthLinks/ElementLink.h:192
Trk::LinkToTrack
AUTO - An Undocumented Tracking Object.
Definition
LinkToTrack.h:20
Trk::LinkToTrack::parameters
virtual const TrackParameters * parameters() const override final
return the track parameters of the track (to which the EL< TrackCollection
Definition
LinkToTrack.cxx:19
Trk::LinkToTrack::clone
virtual LinkToTrack * clone() const override final
method to clone the LinkToTrack object
Definition
LinkToTrack.cxx:32
Trk::LinkToTrack::LinkToTrack
LinkToTrack()
default constructor (needed for persistency)
Definition
LinkToTrack.cxx:10
Trk::Track
The ATLAS Track class.
Definition
Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
Trk::Track::perigeeParameters
const Perigee * perigeeParameters() const
return Perigee.
Definition
Tracking/TrkEvent/TrkTrack/src/Track.cxx:163
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition
FakeTrackBuilder.h:9
Trk::TrackParameters
ParametersBase< TrackParametersDim, Charged > TrackParameters
Definition
Tracking/TrkEvent/TrkParameters/TrkParameters/TrackParameters.h:27
Generated on
for ATLAS Offline Software by
1.17.0