ATLAS Offline Software
LinkToXAODNeutralParticle.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
8 
9 namespace Trk {
12 {}
13 
17 {}
18 
19 const NeutralParameters*
21 {
22  if (isValid()) {
23  const xAOD::NeutralParticle* neut = this->cachedElement();
24  if (nullptr != neut) {
25  return &(neut->perigeeParameters());
26  }
27  return nullptr;
28  }
29  return nullptr;
30 } // end of parameters method
31 
34 {
35  return new LinkToXAODNeutralParticle(*this);
36 }
37 
38 } // end of namespace definitions
xAOD::NeutralParticle_v1::perigeeParameters
const Trk::NeutralPerigee & perigeeParameters() const
Returns the Trk::NeutralPerigee track parameters.
Definition: NeutralParticle_v1.cxx:188
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
Trk::LinkToXAODNeutralParticle::LinkToXAODNeutralParticle
LinkToXAODNeutralParticle()
default constructor (needed for persistency)
Definition: LinkToXAODNeutralParticle.cxx:10
Trk::LinkToXAODNeutralParticle::neutralParameters
const NeutralParameters * neutralParameters() const override final
return the neutral parameters of the neutral (to which the EL< NeutralCollection > points)
Definition: LinkToXAODNeutralParticle.cxx:20
Trk::ParametersBase
Definition: ParametersBase.h:55
LinkToXAODNeutralParticle.h
xAOD::NeutralParticleContainer
NeutralParticleContainer_v1 NeutralParticleContainer
Definition of the current "NeutralParticle container version".
Definition: NeutralParticleContainer.h:14
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
NeutralParticle.h
NeutralParticleContainer.h
Trk::LinkToXAODNeutralParticle
Element link to XAOD NeutralParticle.
Definition: LinkToXAODNeutralParticle.h:32
Trk::LinkToXAODNeutralParticle::clone
LinkToXAODNeutralParticle * clone() const override final
method to clone the LinkToXAODNeutralParticle object
Definition: LinkToXAODNeutralParticle.cxx:33
xAOD::NeutralParticle_v1
Class describing a NeutralParticle.
Definition: NeutralParticle_v1.h:40