ATLAS Offline Software
NIMatEffUpdator.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // NIMatEffUpdator.cxx, (c) ATLAS Detector software
8 
9 // class header
11 
12 // Trk include
15 #include "TrkGeometry/Layer.h"
17 
18 // constructor
19 Trk::NIMatEffUpdator::NIMatEffUpdator(const std::string &t, const std::string &n, const IInterface *p) :
20  AthAlgTool(t, n, p) {
21  declareInterface<ITimedMatEffUpdator>(this);
22 }
23 
24 // destructor
26 
27 // Athena standard methods
28 // initialize
31  ATH_MSG_INFO("initialize()");
32 
33  // retrieve the material updator tool
34  if (m_matUpdator.retrieve().isFailure()) {
35  ATH_MSG_FATAL("Could not retrieve " << m_matUpdator);
36  return StatusCode::FAILURE;
37  }
38  ATH_MSG_DEBUG("Successfully retrieved " << m_matUpdator);
39 
40 
41  return StatusCode::SUCCESS;
42 }
43 
44 // finalize
47  ATH_MSG_INFO("finalize() successful");
48  return StatusCode::SUCCESS;
49 }
50 
51 std::unique_ptr<Trk::TrackParameters>
53  const Trk::Layer &lay,
54  Trk::TimeLimit & /*timeLim*/,
55  Trk::PathLimit & /*pathLim*/,
56  Trk::GeometrySignature /*geoID*/,
59  return m_matUpdator->update(parm, lay, dir, particle);
60 }
61 
62 // update method
63 std::unique_ptr<Trk::TrackParameters>
65  const Trk::TrackParameters &parm,
66  const Trk::MaterialProperties &matprop,
67  double pathCorrection,
71  return m_matUpdator->update(parm, matprop, pathCorrection, dir, particle);
72 }
73 
74 std::unique_ptr<Trk::TrackParameters>
76  const Trk::TrackParameters *parm,
77  const Trk::MaterialEffectsOnTrack &meff,
80  return m_matUpdator->update(parm, meff, particle);
81 }
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition: ParticleHypothesis.h:79
TrackParameters.h
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
Trk::NIMatEffUpdator::finalize
StatusCode finalize()
AlgTool finalize method.
Definition: NIMatEffUpdator.cxx:46
MaterialProperties.h
Trk::NIMatEffUpdator::initialize
StatusCode initialize()
AlgTool initailize method.
Definition: NIMatEffUpdator.cxx:30
Layer.h
Trk::MaterialUpdateMode
MaterialUpdateMode
This is a steering enum to force the material update it can be: (1) addNoise (-1) removeNoise Second ...
Definition: MaterialUpdateMode.h:18
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
ParamDefs.h
Trk::ParticleHypothesis
ParticleHypothesis
Definition: ParticleHypothesis.h:28
Trk::MaterialEffectsOnTrack
represents the full description of deflection and e-loss of a track in material.
Definition: MaterialEffectsOnTrack.h:40
Trk::PropDirection
PropDirection
Definition: PropDirection.h:19
Trk::GeometrySignature
GeometrySignature
Definition: GeometrySignature.h:24
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:209
beamspotman.n
n
Definition: beamspotman.py:729
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
Trk::ParametersBase
Definition: ParametersBase.h:55
Trk::TimeLimit
Definition: HelperStructs.h:58
NIMatEffUpdator.h
beamspotman.dir
string dir
Definition: beamspotman.py:621
Trk::NIMatEffUpdator::NIMatEffUpdator
NIMatEffUpdator(const std::string &, const std::string &, const IInterface *)
AlgTool constructor for NIMatEffUpdator.
Definition: NIMatEffUpdator.cxx:19
Trk::NIMatEffUpdator::update
std::unique_ptr< Trk::TrackParameters > update(const Trk::TrackParameters *parm, const Trk::Layer &sf, Trk::TimeLimit &time, Trk::PathLimit &path, Trk::GeometrySignature geoID, Trk::PropDirection dir=Trk::alongMomentum, Trk::ParticleHypothesis particle=Trk::pion) const
Updator interface (full update for a layer): given track parameters are deleted internally,...
Definition: NIMatEffUpdator.cxx:52
Trk::NIMatEffUpdator::~NIMatEffUpdator
virtual ~NIMatEffUpdator()
Destructor.
Trk::PathLimit
Definition: HelperStructs.h:34
Trk::MaterialProperties
Definition: MaterialProperties.h:40
AthAlgTool
Definition: AthAlgTool.h:26
Trk::Layer
Definition: Layer.h:72