ATLAS Offline Software
Loading...
Searching...
No Matches
LinkToTrackParticleBase.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
7
8namespace Trk {
9
13
18
19const TrackParameters*
21{
22 if (isValid()) {
23 const Trk::TrackParticleBase* trk = this->cachedElement();
24 if (nullptr != trk) {
25 return &(trk->definingParameters());
26 }
27 return nullptr;
28 } // end of validity check
29 return nullptr;
30} // end of parameters method
31
37
38} // end of namespace definitions
LinkToTrackParticleBase()
default constructor (needed for persistency)
virtual const TrackParameters * parameters() const override final
return the track parameters of the track (to which the EL< TrackParticleBaseCollection > points)
virtual LinkToTrackParticleBase * clone() const override final
method to clone the LinkToTrack object
const TrackParameters & definingParameters() const
Returns the 'defining' parameter of this TrackParticle.
Ensure that the ATLAS eigen extensions are properly loaded.
DataVector< TrackParticleBase > TrackParticleBaseCollection
ParametersBase< TrackParametersDim, Charged > TrackParameters