ATLAS Offline Software
ExtrapolationCache.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 // ExtrapolationCache.h
8 
9 #ifndef TRKEXUTILS_EXTRAPOLATIONCACHE_H
10 #define TRKEXUTILS_EXTRAPOLATIONCACHE_H
11 
20 
21 namespace Trk {
22 
23 class Energyloss;
24 
26 {
27 
28 public:
29  //
30  // Constructor
31  //
32  ExtrapolationCache() = default;
37 
40  ~ExtrapolationCache() = default;
41 
44 
45  // total X0
46  double x0tot() const;
47  // total Eloss
48  const EnergyLoss* eloss() const;
49  // reset to zero
50  void reset();
51  // add X0 value
52  void updateX0(double x0);
53  // add Eloss values
54  void updateEloss(double ioni, double sigi, double rad, double sigr);
55 
56 private:
57  double m_x0tot{};
58  EnergyLoss* m_eloss{}; // We do not own this ptr
59 };
60 
61 }
63 #endif
Trk::ExtrapolationCache::updateX0
void updateX0(double x0)
Trk::ExtrapolationCache::~ExtrapolationCache
~ExtrapolationCache()=default
EnergyLoss.h
Trk::ExtrapolationCache::m_x0tot
double m_x0tot
Definition: ExtrapolationCache.h:57
Trk::ExtrapolationCache::m_eloss
EnergyLoss * m_eloss
Definition: ExtrapolationCache.h:58
Trk::ExtrapolationCache::reset
void reset()
Trk::ExtrapolationCache::operator=
ExtrapolationCache & operator=(const ExtrapolationCache &other)=default
Trk::ExtrapolationCache::clone
ExtrapolationCache * clone() const
Destructor.
Trk::ExtrapolationCache::ExtrapolationCache
ExtrapolationCache(double x0tot)
Trk::ExtrapolationCache::ExtrapolationCache
ExtrapolationCache(double x0tot, EnergyLoss *eloss)
Trk::ExtrapolationCache::ExtrapolationCache
ExtrapolationCache(const ExtrapolationCache &other)=default
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::EnergyLoss
This class describes energy loss material effects in the ATLAS tracking EDM.
Definition: EnergyLoss.h:34
ExtrapolationCache.icc
Trk::ExtrapolationCache::updateEloss
void updateEloss(double ioni, double sigi, double rad, double sigr)
Trk::ExtrapolationCache::operator=
ExtrapolationCache & operator=(ExtrapolationCache &&other)=default
InDetDD::other
@ other
Definition: InDetDD_Defs.h:16
Trk::ExtrapolationCache::x0tot
double x0tot() const
Trk::ExtrapolationCache::ExtrapolationCache
ExtrapolationCache(ExtrapolationCache &&other)=default
Trk::ExtrapolationCache
Definition: ExtrapolationCache.h:26
Trk::ExtrapolationCache::ExtrapolationCache
ExtrapolationCache()=default
python.SystemOfUnits.rad
int rad
Definition: SystemOfUnits.py:111
Trk::ExtrapolationCache::eloss
const EnergyLoss * eloss() const