ATLAS Offline Software
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"
8 
9 namespace Trk {
12 {}
13 
16 {}
17 
18 const TrackParameters*
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 
33 {
34  return new LinkToTrack(*this);
35 }
36 
37 } // end of namespace definitions
LinkToTrack.h
Trk::Track
The ATLAS Track class.
Definition: Tracking/TrkEvent/TrkTrack/TrkTrack/Track.h:73
Trk::LinkToTrack::parameters
virtual const TrackParameters * parameters() const override final
return the track parameters of the track (to which the EL< TrackCollection points)
Definition: LinkToTrack.cxx:19
Track.h
TrackCollection.h
Trk::LinkToTrack
AUTO - An Undocumented Tracking Object.
Definition: LinkToTrack.h:20
Trk::LinkToTrack::LinkToTrack
LinkToTrack()
default constructor (needed for persistency)
Definition: LinkToTrack.cxx:10
Trk::LinkToTrack::clone
virtual LinkToTrack * clone() const override final
method to clone the LinkToTrack object
Definition: LinkToTrack.cxx:32
Trk::ParametersBase
Definition: ParametersBase.h:55
DataVector< Trk::Track >
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