ATLAS Offline Software
SubtractedPlaneLayer.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // SubtractedPlaneLayer.cxx, (c) ATLAS Detector software
8 
9 // Trk
11 
15 // CLHEP
17 
19  const SubtractedPlaneSurface* subtrPlaneSurf,
20  const Trk::LayerMaterialProperties& laymatprop, double thickness,
21  std::unique_ptr<Trk::OverlapDescriptor> olap, int laytyp)
22  : SubtractedPlaneSurface(*subtrPlaneSurf),
23  Layer(laymatprop, thickness, std::move(olap), laytyp) {}
24 
26  const Trk::SubtractedPlaneLayer& play) = default;
27 
29  const Trk::SubtractedPlaneLayer& play, const Amg::Transform3D& transf)
30  : SubtractedPlaneSurface(play, transf), Layer(play) {}
31 
33  const SubtractedPlaneLayer& play) {
34  if (this != &play) {
35  // call the assignments of the base classes
38  }
39  return (*this);
40 }
41 
44 {
45  return (*this);
46 }
47 
50 {
51  return (*this);
52 }
53 
55  const Trk::TrackParameters& parm, Trk::PropDirection dir) const {
58  dir * parm.momentum().normalized()) > 0.)
59  return Trk::Layer::m_layerMaterialProperties->alongPreFactor();
60  return Trk::Layer::m_layerMaterialProperties->oppositePreFactor();
61 }
62 
64  const Trk::TrackParameters& parm, Trk::PropDirection dir) const {
67  dir * parm.momentum().normalized()) > 0.)
68  return Trk::Layer::m_layerMaterialProperties->alongPostFactor();
69  return Trk::Layer::m_layerMaterialProperties->oppositePostFactor();
70 }
71 
73  m_transforms =
74  std::make_unique<Transforms>(shift * (m_transforms->transform));
75 }
TrackParameters.h
MaterialProperties.h
Trk::Layer::m_layerMaterialProperties
std::unique_ptr< LayerMaterialProperties > m_layerMaterialProperties
thickness of the Layer
Definition: Layer.h:289
Trk::SubtractedPlaneLayer::operator=
SubtractedPlaneLayer & operator=(const SubtractedPlaneLayer &)
Assignment operator for PlaneLayers.
Definition: SubtractedPlaneLayer.cxx:32
Trk::SubtractedPlaneLayer
Definition: SubtractedPlaneLayer.h:34
Trk::SubtractedPlaneLayer::moveLayer
virtual void moveLayer(Amg::Transform3D &shift) override final
move the Layer
Definition: SubtractedPlaneLayer.cxx:72
Trk::SubtractedPlaneLayer::SubtractedPlaneLayer
SubtractedPlaneLayer()
Default Constructor.
Definition: SubtractedPlaneLayer.h:37
GeoPrimitives.h
Trk::PropDirection
PropDirection
Definition: PropDirection.h:19
Trk::SubtractedPlaneSurface
Definition: SubtractedPlaneSurface.h:32
Trk::LayerMaterialProperties
Definition: LayerMaterialProperties.h:62
Amg::Transform3D
Eigen::Affine3d Transform3D
Definition: GeoPrimitives.h:46
Trk::Layer::operator=
Layer & operator=(const Layer &lay)
Assignment operator for Derived classes.
Definition: Layer.cxx:98
Trk::Surface::normal
virtual const Amg::Vector3D & normal() const
Returns the normal vector of the Surface (i.e.
Trk::ParametersBase
Definition: ParametersBase.h:55
SubtractedPlaneLayer.h
dot.dot
def dot(G, fn, nodesToHighlight=[])
Definition: dot.py:5
beamspotman.dir
string dir
Definition: beamspotman.py:623
Trk::SubtractedPlaneSurface::operator=
SubtractedPlaneSurface & operator=(const SubtractedPlaneSurface &psf)
Assignment operator.
Definition: SubtractedPlaneSurface.cxx:47
Trk::SubtractedPlaneLayer::preUpdateMaterialFactor
double preUpdateMaterialFactor(const Trk::TrackParameters &par, Trk::PropDirection dir) const override final
getting the MaterialProperties back - for pre-update
Definition: SubtractedPlaneLayer.cxx:54
Trk::ParametersBase::momentum
const Amg::Vector3D & momentum() const
Access method for the momentum.
Trk::SubtractedPlaneLayer::surfaceRepresentation
virtual const SubtractedPlaneSurface & surfaceRepresentation() const override final
Transforms the layer into a Surface representation for extrapolation.
Definition: SubtractedPlaneLayer.cxx:43
Trk::SubtractedPlaneLayer::postUpdateMaterialFactor
double postUpdateMaterialFactor(const Trk::TrackParameters &par, Trk::PropDirection dir) const override final
getting the MaterialProperties back - for post-update
Definition: SubtractedPlaneLayer.cxx:63
LayerMaterialProperties.h
Trk::Layer
Definition: Layer.h:73