ATLAS Offline Software
TrkExtrapolator.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // TrkExtrapolator.h, (c) ATLAS Detector software
8 
9 #ifndef ISF_TRACKINGTOOLS_TRKEXTRAPOLATOR_H
10 #define ISF_TRACKINGTOOLS_TRKEXTRAPOLATOR_H 1
11 
12 // class header
14 
15 // STL includes
16 #include <string>
17 
18 // FrameWork includes
19 #include "GaudiKernel/ToolHandle.h"
21 #include "CxxUtils/CachedPointer.h"
23 
24 // ISF includes
25 #include "ISF_Event/ISFParticle.h"
27 
28 namespace Trk {
29  class IExtrapolator;
30  class TrackingGeometry;
31  class TrackingVolume;
32  class PdgToParticleHypothesis;
33 }
34 
35 namespace ISF {
36 
37  class ISFParticle;
38 
39 
46  class TrkExtrapolator : public extends<AthAlgTool, ISF::ITrkExtrapolator> {
47 
48  public:
50  TrkExtrapolator( const std::string& t, const std::string& n, const IInterface* p );
51 
54 
56  virtual StatusCode initialize() override;
58  virtual StatusCode finalize() override;
59 
61  virtual ISF::ISFParticle* extrapolate( const ISF::ISFParticle &particle ) const override;
62 
63  private:
64 
66  SG::ReadCondHandleKey<Trk::TrackingGeometry> m_trackingGeometryReadKey{this, "TrackingGeometryReadKey", "AtlasTrackingGeometry", "Key of input TrackingGeometry"};
67 
69  ToolHandle<Trk::IExtrapolator> m_extrapolator;
70 
71  std::string m_trackingVolumeName;
73 
75 
76 
77  };
78 
79 }
80 
81 
82 #endif //> !ISF_TRACKINGTOOLS_TRKEXTRAPOLATOR_H
ISF::TrkExtrapolator::m_pdgToParticleHypothesis
Trk::PdgToParticleHypothesis * m_pdgToParticleHypothesis
converts PDG ID to hypothesis for TrackParameters
Definition: TrkExtrapolator.h:74
ISF::TrkExtrapolator::finalize
virtual StatusCode finalize() override
Athena AlgTool finalization.
Definition: TrkExtrapolator.cxx:57
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition: ParticleHypothesis.h:76
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
ITrkExtrapolator.h
ISF::ISFParticle
Definition: ISFParticle.h:42
ISF::TrkExtrapolator::m_extrapolator
ToolHandle< Trk::IExtrapolator > m_extrapolator
extrapolation to calo entry
Definition: TrkExtrapolator.h:69
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ISF::TrkExtrapolator::extrapolate
virtual ISF::ISFParticle * extrapolate(const ISF::ISFParticle &particle) const override
Extrapolate the given ISFParticle.
Definition: TrkExtrapolator.cxx:66
ISF::TrkExtrapolator
Definition: TrkExtrapolator.h:46
CachedPointer.h
Cached pointer with atomic update.
ISF::TrkExtrapolator::TrkExtrapolator
TrkExtrapolator(const std::string &t, const std::string &n, const IInterface *p)
Constructor with parameters.
Definition: TrkExtrapolator.cxx:17
ISFParticle.h
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
ISF::TrkExtrapolator::m_trackingVolumeName
std::string m_trackingVolumeName
name of the volume within the extrapolation is carried out
Definition: TrkExtrapolator.h:71
ISF::TrkExtrapolator::initialize
virtual StatusCode initialize() override
Athena AlgTool initialization.
Definition: TrkExtrapolator.cxx:40
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
ISF::TrkExtrapolator::ATLAS_THREAD_SAFE
CxxUtils::CachedPointer< const Trk::TrackingVolume > m_trackingVolume ATLAS_THREAD_SAFE
volume within the extrapolation is carried out
Definition: TrkExtrapolator.h:72
Trk::PdgToParticleHypothesis
Definition: PdgToParticleHypothesis.h:29
ISF::TrkExtrapolator::m_trackingGeometryReadKey
SG::ReadCondHandleKey< Trk::TrackingGeometry > m_trackingGeometryReadKey
tracking geometry for geometry signature
Definition: TrkExtrapolator.h:66
SG::ReadCondHandleKey< Trk::TrackingGeometry >
ISF
ISFParticleOrderedQueue.
Definition: PrimaryParticleInformation.h:13
CxxUtils::CachedPointer< const Trk::TrackingVolume >
TrackingGeometry.h
checker_macros.h
Define macros for attributes used to control the static checker.
ISF::TrkExtrapolator::~TrkExtrapolator
~TrkExtrapolator()
Destructor.
Definition: TrkExtrapolator.cxx:33