ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Trk::Layer Class Referenceabstract

#include <Layer.h>

Inheritance diagram for Trk::Layer:
Collaboration diagram for Trk::Layer:

Public Member Functions

 Layer ()=default
 Default Constructor. More...
 
virtual ~Layer ()=default
 Destructor. More...
 
 Layer (const LayerMaterialProperties &laymatprop, double thickness=0., std::unique_ptr< OverlapDescriptor > od=nullptr, int ltype=int(passive))
 Constructor with MaterialProperties. More...
 
 Layer (std::unique_ptr< SurfaceArray > surfaceArray, double thickness=0., std::unique_ptr< OverlapDescriptor >=nullptr, int ltype=int(passive))
 Constructor with pointer to SurfaceArray (passing ownership) More...
 
 Layer (std::unique_ptr< SurfaceArray > surfaceArray, const LayerMaterialProperties &laymatprop, double thickness=0., std::unique_ptr< OverlapDescriptor > od=nullptr, int ltype=int(passive))
 Constructor with MaterialProperties and pointer SurfaceArray (passing ownership) More...
 
const SurfaceArraysurfaceArray () const
 Return the entire SurfaceArray, returns nullptr if no SurfaceArray. More...
 
SurfaceArraysurfaceArray ()
 Return the entire SurfaceArray, returns nullptr if no SurfaceArray. More...
 
const SurfacesubSurface (const Amg::Vector3D &gp) const
 If no subSurface array is defined or no subSurface can be found to the given Amg::Vector3D, it would return 0. More...
 
const SurfacesubSurface (const Amg::Vector2D &lp) const
 If no subSurface array is defined or no subSurface can be found to the given Amg::Vector2D, it would return 0. More...
 
const SurfacesubSurfaceReference (unsigned int idx=0) const
 Return a reference sub surface of the layer, usually the first one in the array. More...
 
virtual const SurfacesurfaceRepresentation () const =0
 Transforms the layer into a Surface representation for extrapolation. More...
 
virtual SurfacesurfaceRepresentation ()=0
 
double thickness () const
 Return the Thickness of the Layer. More...
 
template<class T >
bool onLayer (const T &parameters, const BoundaryCheck &bcheck=BoundaryCheck(true)) const
 templated on Layer method More...
 
virtual bool isOnLayer (const Amg::Vector3D &gp, const BoundaryCheck &bcheck=BoundaryCheck(true)) const
 isOnLayer() method, using isOnSurface() with Layer specific tolerance More...
 
const LayerMaterialPropertieslayerMaterialProperties () const
 getting the LayerMaterialProperties including full/pre/post update More...
 
const MaterialPropertiesfullUpdateMaterialProperties (const TrackParameters &par) const
 getting the MaterialProperties back - for full update More...
 
virtual double preUpdateMaterialFactor (const TrackParameters &, PropDirection) const
 getting the MaterialProperties back - for pre-update More...
 
virtual double postUpdateMaterialFactor (const TrackParameters &, PropDirection) const
 getting the MaterialProperties back - for pre-update More...
 
const OverlapDescriptoroverlapDescriptor () const
 gettint hte overlap descriptor More...
 
const LayerpreviousLayer (bool skipNavLayer=false) const
 getting what's stored to be the previous Layer, boolean to skip navigation layers More...
 
void setPreviousLayer (const Layer *)
 set the previous Layer More...
 
const LayernextLayer (const Amg::Vector3D &gp, const Amg::Vector3D &udir) const
 getting the next/previous Layer if registered - unit for direction vector required More...
 
const LayernextLayer (bool skipNavLayer=false) const
 getting what's stored to be the next Layer, boolean to skip navigation layers More...
 
void setNextLayer (const Layer *)
 set the next Layer More...
 
const BinUtilitybinUtility () const
 access the BinUtility More...
 
void setBinUtility (const BinUtility *)
 set the BinUtility More...
 
virtual const SurfacesurfaceOnApproach (const Amg::Vector3D &pos, const Amg::Vector3D &dir, PropDirection pdir, const BoundaryCheck &bcheck, bool resolveSubSurfaces=0, const ICompatibilityEstimator *ice=nullptr) const
 Surface seen on approach - if not defined differently, it is the surfaceRepresentation() More...
 
size_t compatibleSurfaces (std::vector< SurfaceIntersection > &cSurfaces, const TrackParameters &pars, PropDirection pdir, const BoundaryCheck &bcheck, bool materialSurfacesOnly=true, const Surface *startSurface=nullptr, const Surface *endSurface=nullptr, const ICompatibilityEstimator *ice=nullptr) const
 get compatible surfaces starting from charged parameters More...
 
size_t compatibleSurfaces (std::vector< SurfaceIntersection > &cSurfaces, const NeutralParameters &pars, PropDirection pdir, const BoundaryCheck &bcheck, bool materialSurfacesOnly=true, const Surface *startSurface=nullptr, const Surface *endSurface=nullptr, const ICompatibilityEstimator *ice=nullptr) const
 get compatible surfaces starting from neutral parameters More...
 
virtual bool hasSubStructure (bool resolveSensitive=false) const
 Has sub-structure method: More...
 
const TrackingVolumeenclosingTrackingVolume () const
 get the confining TrackingVolume More...
 
const DetachedTrackingVolumeenclosingDetachedTrackingVolume () const
 get the confining DetachedTrackingVolume More...
 
const LayerIndexlayerIndex () const
 get the layerIndex More...
 
int layerType () const
 get the Layer coding More...
 
void setLayerType (int identifier)
 set the Layer coding More...
 
void assignMaterialProperties (const LayerMaterialProperties &, double scale=1.0)
 assignMaterialPropeties More...
 
virtual void moveLayer (Amg::Transform3D &)=0
 move the Layer More...
 
void registerRepresentingVolume (const Volume *theVol)
 register Volume associated to the layer More...
 
const VolumerepresentingVolume () const
 get the Volume associated to the layer More...
 
void setRef (double)
 set the reference measure More...
 
double getRef () const
 get the reference measure More...
 
void encloseTrackingVolume (const TrackingVolume &tvol)
 private method to set the enclosed detached TV More...
 
void encloseDetachedTrackingVolume (const DetachedTrackingVolume &tvol)
 
template<class T >
size_t getCompatibleSurfaces (std::vector< SurfaceIntersection > &cSurfaces, const T &pars, PropDirection pdir, const BoundaryCheck &bcheck, bool materialSurfacesOnly=true, const Surface *startSurface=nullptr, const Surface *endSurface=nullptr, const ICompatibilityEstimator *ice=nullptr) const
 get compatible surfaces starting from charged parameters More...
 
void compactify (size_t &cSurfaces, size_t &tSurfaces)
 register layer index for material map registration More...
 
void registerLayerIndex (const LayerIndex &lIdx)
 
virtual void resizeLayer (const VolumeBounds &, double)=0
 private method to set enclosing TrackingVolume, called by friend class only optionally, the layer can be resized to the dimensions of the TrackingVolume More...
 
virtual void resizeAndRepositionLayer (const VolumeBounds &vBounds, const Amg::Vector3D &vCenter, double envelope=1.)=0
 resize and reposition layer : dedicated for entry layers More...
 

Protected Member Functions

 Layer (const Layer &lay)
 Copy Constructor for Derived classes. More...
 
Layeroperator= (const Layer &lay)
 Assignment operator for Derived classes. More...
 

Protected Attributes

std::unique_ptr< SurfaceArraym_surfaceArray {}
 MaterialPoperties of this layer Surface. More...
 
std::unique_ptr< LayerMaterialPropertiesm_layerMaterialProperties {}
 thickness of the Layer More...
 
double m_layerThickness {}
 descriptor for overlap/next surface (owning ptr) More...
 
std::unique_ptr< OverlapDescriptorm_overlapDescriptor {}
 
const Layerm_previousLayer = nullptr
 < the previous Layer according to BinGenUtils More...
 
const Layerm_nextLayer = nullptr
 BinUtility for next/previous decision. More...
 
const BinUtilitym_binUtility = nullptr
 Enclosing TrackingVolume. More...
 
const TrackingVolumem_enclosingTrackingVolume = nullptr
 Enclosing DetachedTrackingVolume. More...
 
const DetachedTrackingVolumem_enclosingDetachedTrackingVolume = nullptr
 
LayerIndex m_index {-1}
 LayerIndex. More...
 
int m_layerType {Trk::active}
 active passive layer More...
 
double m_ref {}
 reference measure for local coordinate convertors More...
 

Detailed Description

Base Class for a Detector Layer in the Tracking realm. An actual implemented Detector Layer inheriting from this base class has to inherit from a specific type of Surface as well. In addition, a Layer can carry:

Author
Andre.nosp@m.as.S.nosp@m.alzbu.nosp@m.rger.nosp@m.@cern.nosp@m..ch
Christos Anastopoulos (Athena MT)

Definition at line 72 of file Layer.h.

Constructor & Destructor Documentation

◆ Layer() [1/5]

Trk::Layer::Layer ( )
default

Default Constructor.

◆ ~Layer()

virtual Trk::Layer::~Layer ( )
virtualdefault

Destructor.

◆ Layer() [2/5]

Trk::Layer::Layer ( const LayerMaterialProperties laymatprop,
double  thickness = 0.,
std::unique_ptr< OverlapDescriptor od = nullptr,
int  ltype = int(passive) 
)

Constructor with MaterialProperties.

Definition at line 18 of file Layer.cxx.

21  : m_surfaceArray(nullptr),
22  m_layerMaterialProperties(laymatprop.clone()),
24  m_overlapDescriptor(std::move(olap)),
25  m_previousLayer(nullptr),
26  m_nextLayer(nullptr),
27  m_binUtility(nullptr),
30  m_index(-1),
31  m_layerType(laytyp),
32  m_ref(0.) {}

◆ Layer() [3/5]

Trk::Layer::Layer ( std::unique_ptr< SurfaceArray surfaceArray,
double  thickness = 0.,
std::unique_ptr< OverlapDescriptor olap = nullptr,
int  ltype = int(passive) 
)

Constructor with pointer to SurfaceArray (passing ownership)

Definition at line 34 of file Layer.cxx.

36  : m_surfaceArray(std::move(surfaceArray)),
39  m_overlapDescriptor(std::move(olap)),
40  m_previousLayer(nullptr),
41  m_nextLayer(nullptr),
42  m_binUtility(nullptr),
45  m_index(-1),
46  m_layerType(laytyp),
47  m_ref(0.) {}

◆ Layer() [4/5]

Trk::Layer::Layer ( std::unique_ptr< SurfaceArray surfaceArray,
const LayerMaterialProperties laymatprop,
double  thickness = 0.,
std::unique_ptr< OverlapDescriptor od = nullptr,
int  ltype = int(passive) 
)

Constructor with MaterialProperties and pointer SurfaceArray (passing ownership)

Definition at line 49 of file Layer.cxx.

53  : m_surfaceArray(std::move(surfaceArray)),
54  m_layerMaterialProperties(laymatprop.clone()),
56  m_overlapDescriptor(std::move(olap)),
57  m_previousLayer(nullptr),
58  m_nextLayer(nullptr),
59  m_binUtility(nullptr),
62  m_index(-1),
63  m_layerType(laytyp),
64  m_ref(0.) {}

◆ Layer() [5/5]

Trk::Layer::Layer ( const Layer lay)
protected

Copy Constructor for Derived classes.

Definition at line 66 of file Layer.cxx.

67  : m_surfaceArray(lay.m_surfaceArray ? lay.m_surfaceArray->clone()
68  : nullptr),
69  m_layerMaterialProperties(lay.m_layerMaterialProperties
70  ? lay.m_layerMaterialProperties->clone()
71  : nullptr),
72  m_layerThickness(lay.m_layerThickness),
74  lay.m_overlapDescriptor ? lay.m_overlapDescriptor->clone() : nullptr),
75  m_previousLayer(nullptr),
76  m_nextLayer(nullptr),
77  m_binUtility(nullptr),
80  m_index(-1),
81  m_layerType(lay.m_layerType),
82  m_ref(lay.m_ref) {}

Member Function Documentation

◆ assignMaterialProperties()

void Trk::Layer::assignMaterialProperties ( const LayerMaterialProperties prop,
double  scale = 1.0 
)

assignMaterialPropeties

Definition at line 177 of file Layer.cxx.

178  {
179  m_layerMaterialProperties.reset(prop.clone());
180  if (scale != 1.0) {
182  }
183 }

◆ binUtility()

const BinUtility* Trk::Layer::binUtility ( ) const

access the BinUtility

◆ compactify()

void Trk::Layer::compactify ( size_t &  cSurfaces,
size_t &  tSurfaces 
)

register layer index for material map registration

Definition at line 186 of file Layer.cxx.

187 {
188  // set the layer surface representation
189  ++tSurfaces;
190  if (surfaceRepresentation().owner() == Trk::noOwn) {
192  ++cSurfaces;
193  }
194  // set the subsurface representation, usually already owned by DetElement
195  if (m_surfaceArray) {
196  std::span<Trk::Surface * const> surfaces = m_surfaceArray->arrayObjects();
197  for (Trk::Surface * const sIter : surfaces) {
198  if (sIter && (*sIter).owner() == Trk::noOwn) {
199  (*sIter).setOwner(Trk::TGOwn);
200  ++cSurfaces;
201  }
202  ++tSurfaces;
203  }
204  }
205 }

◆ compatibleSurfaces() [1/2]

size_t Trk::Layer::compatibleSurfaces ( std::vector< SurfaceIntersection > &  cSurfaces,
const NeutralParameters pars,
PropDirection  pdir,
const BoundaryCheck bcheck,
bool  materialSurfacesOnly = true,
const Surface startSurface = nullptr,
const Surface endSurface = nullptr,
const ICompatibilityEstimator *  ice = nullptr 
) const

get compatible surfaces starting from neutral parameters

◆ compatibleSurfaces() [2/2]

size_t Trk::Layer::compatibleSurfaces ( std::vector< SurfaceIntersection > &  cSurfaces,
const TrackParameters pars,
PropDirection  pdir,
const BoundaryCheck bcheck,
bool  materialSurfacesOnly = true,
const Surface startSurface = nullptr,
const Surface endSurface = nullptr,
const ICompatibilityEstimator *  ice = nullptr 
) const

get compatible surfaces starting from charged parameters

◆ encloseDetachedTrackingVolume()

void Trk::Layer::encloseDetachedTrackingVolume ( const DetachedTrackingVolume tvol)

◆ encloseTrackingVolume()

void Trk::Layer::encloseTrackingVolume ( const TrackingVolume tvol)

private method to set the enclosed detached TV

◆ enclosingDetachedTrackingVolume()

const DetachedTrackingVolume* Trk::Layer::enclosingDetachedTrackingVolume ( ) const

get the confining DetachedTrackingVolume

◆ enclosingTrackingVolume()

const TrackingVolume* Trk::Layer::enclosingTrackingVolume ( ) const

get the confining TrackingVolume

◆ fullUpdateMaterialProperties()

const Trk::MaterialProperties * Trk::Layer::fullUpdateMaterialProperties ( const TrackParameters par) const

getting the MaterialProperties back - for full update

Definition at line 169 of file Layer.cxx.

170  {
172  return m_layerMaterialProperties->fullMaterial(parm.position());
173  }
174  return nullptr;
175 }

◆ getCompatibleSurfaces()

template<class T >
size_t Trk::Layer::getCompatibleSurfaces ( std::vector< SurfaceIntersection > &  cSurfaces,
const T &  pars,
PropDirection  pdir,
const BoundaryCheck bcheck,
bool  materialSurfacesOnly = true,
const Surface startSurface = nullptr,
const Surface endSurface = nullptr,
const ICompatibilityEstimator *  ice = nullptr 
) const

get compatible surfaces starting from charged parameters

propagate TrackingGeometry owner downstream

◆ getRef()

double Trk::Layer::getRef ( ) const

get the reference measure

◆ hasSubStructure()

bool Trk::Layer::hasSubStructure ( bool  resolveSensitive = false) const
virtual

Has sub-structure method:

  • sub-structure depending on : (a) only when required to resolve sub surfaces for sensitive hits (b) also material is ordered with sub structure

Definition at line 238 of file Layer.cxx.

238  {
239  return resolveSensitive && m_surfaceArray;
240 }

◆ isOnLayer()

bool Trk::Layer::isOnLayer ( const Amg::Vector3D gp,
const BoundaryCheck bcheck = BoundaryCheck(true) 
) const
virtual

isOnLayer() method, using isOnSurface() with Layer specific tolerance

Reimplemented in Trk::MaterialLayer, Trk::MaterialLayerNoOwnSurf, Trk::MaterialLayerOwnSurf, and Trk::NavigationLayer.

Definition at line 135 of file Layer.cxx.

136  {
137  return (surfaceRepresentation())
138  .isOnSurface(gp, bchk, 0.5 * m_layerThickness);
139 }

◆ layerIndex()

const LayerIndex& Trk::Layer::layerIndex ( ) const

get the layerIndex

◆ layerMaterialProperties()

const LayerMaterialProperties* Trk::Layer::layerMaterialProperties ( ) const

getting the LayerMaterialProperties including full/pre/post update

◆ layerType()

int Trk::Layer::layerType ( ) const

get the Layer coding

◆ moveLayer()

virtual void Trk::Layer::moveLayer ( Amg::Transform3D )
pure virtual

◆ nextLayer() [1/2]

const Trk::Layer * Trk::Layer::nextLayer ( bool  skipNavLayer = false) const

getting what's stored to be the next Layer, boolean to skip navigation layers

Definition at line 151 of file Layer.cxx.

151  {
152  if (!skipNavLayer) return m_nextLayer;
153  const Trk::Layer* nextMatLayer = m_nextLayer;
154  // get the next Material layer
155  while (nextMatLayer && !nextMatLayer->layerMaterialProperties() &&
156  !nextMatLayer->surfaceArray())
157  nextMatLayer = nextMatLayer->nextLayer();
158  return nextMatLayer;
159 }

◆ nextLayer() [2/2]

const Trk::Layer * Trk::Layer::nextLayer ( const Amg::Vector3D gp,
const Amg::Vector3D udir 
) const

getting the next/previous Layer if registered - unit for direction vector required

Definition at line 161 of file Layer.cxx.

162  {
163  // no binutility -> no chance to find out the direction
164  if (!m_binUtility) return nullptr;
166  : m_previousLayer;
167 }

◆ onLayer()

template<class T >
bool Trk::Layer::onLayer ( const T &  parameters,
const BoundaryCheck bcheck = BoundaryCheck(true) 
) const

templated on Layer method

◆ operator=()

Trk::Layer & Trk::Layer::operator= ( const Layer lay)
protected

Assignment operator for Derived classes.

SurfaceArray on this layer Surface (owning ptr)

Definition at line 84 of file Layer.cxx.

84  {
85  if (this != &lay) {
86  m_layerThickness = lay.m_layerThickness;
87  m_enclosingDetachedTrackingVolume = lay.m_enclosingDetachedTrackingVolume;
88  m_overlapDescriptor.reset(
89  (lay.m_overlapDescriptor) ? lay.m_overlapDescriptor->clone() : nullptr);
90  m_surfaceArray.reset((lay.m_surfaceArray) ? lay.m_surfaceArray->clone()
91  : nullptr);
92  m_layerMaterialProperties.reset(lay.m_layerMaterialProperties->clone());
93 
94  // just assign by pointer
97  m_binUtility = lay.m_binUtility;
98  m_enclosingTrackingVolume = lay.m_enclosingTrackingVolume;
99  //
100  m_index = lay.m_index;
101  m_layerType = lay.m_layerType;
102  m_ref = lay.m_ref;
103  }
104  return (*this);
105 }

◆ overlapDescriptor()

const OverlapDescriptor* Trk::Layer::overlapDescriptor ( ) const

gettint hte overlap descriptor

◆ postUpdateMaterialFactor()

virtual double Trk::Layer::postUpdateMaterialFactor ( const TrackParameters ,
PropDirection   
) const
inlinevirtual

getting the MaterialProperties back - for pre-update

Reimplemented in Trk::CylinderLayer, Trk::DiscLayer, Trk::ConeLayer, Trk::PlaneLayer, Trk::NavigationLayer, Trk::SubtractedCylinderLayer, and Trk::SubtractedPlaneLayer.

Definition at line 150 of file Layer.h.

151  {
152  return 0.;
153  }

◆ preUpdateMaterialFactor()

virtual double Trk::Layer::preUpdateMaterialFactor ( const TrackParameters ,
PropDirection   
) const
inlinevirtual

getting the MaterialProperties back - for pre-update

Reimplemented in Trk::CylinderLayer, Trk::DiscLayer, Trk::ConeLayer, Trk::PlaneLayer, Trk::NavigationLayer, Trk::SubtractedCylinderLayer, and Trk::SubtractedPlaneLayer.

Definition at line 144 of file Layer.h.

145  {
146  return 1.;
147  }

◆ previousLayer()

const Trk::Layer * Trk::Layer::previousLayer ( bool  skipNavLayer = false) const

getting what's stored to be the previous Layer, boolean to skip navigation layers

Definition at line 141 of file Layer.cxx.

141  {
142  if (!skipNavLayer) return m_previousLayer;
143  const Trk::Layer* prevMatLayer = m_previousLayer;
144  // get the previoys Material layer
145  while (prevMatLayer && !prevMatLayer->layerMaterialProperties() &&
146  !prevMatLayer->surfaceArray())
147  prevMatLayer = prevMatLayer->previousLayer();
148  return prevMatLayer;
149 }

◆ registerLayerIndex()

void Trk::Layer::registerLayerIndex ( const LayerIndex lIdx)

◆ registerRepresentingVolume()

void Trk::Layer::registerRepresentingVolume ( const Volume theVol)

register Volume associated to the layer

◆ representingVolume()

const Volume* Trk::Layer::representingVolume ( ) const

get the Volume associated to the layer

◆ resizeAndRepositionLayer()

virtual void Trk::Layer::resizeAndRepositionLayer ( const VolumeBounds vBounds,
const Amg::Vector3D vCenter,
double  envelope = 1. 
)
pure virtual

◆ resizeLayer()

virtual void Trk::Layer::resizeLayer ( const VolumeBounds ,
double   
)
pure virtual

private method to set enclosing TrackingVolume, called by friend class only optionally, the layer can be resized to the dimensions of the TrackingVolume

  • Bounds of the Surface are resized
  • MaterialProperties dimensions are resized
  • SubSurface array boundaries are NOT resized resize layer to the TrackingVolume dimensions - to be overloaded by the extended classes

Implemented in Trk::CylinderLayer, Trk::DiscLayer, Trk::ConeLayer, Trk::PlaneLayer, Trk::NavigationLayer, Trk::SubtractedCylinderLayer, Trk::SubtractedPlaneLayer, and Trk::MaterialLayer.

◆ setBinUtility()

void Trk::Layer::setBinUtility ( const BinUtility )

set the BinUtility

◆ setLayerType()

void Trk::Layer::setLayerType ( int  identifier)

set the Layer coding

◆ setNextLayer()

void Trk::Layer::setNextLayer ( const Layer )

set the next Layer

◆ setPreviousLayer()

void Trk::Layer::setPreviousLayer ( const Layer )

set the previous Layer

◆ setRef()

void Trk::Layer::setRef ( double  )

set the reference measure

◆ subSurface() [1/2]

const Trk::Surface * Trk::Layer::subSurface ( const Amg::Vector2D lp) const

If no subSurface array is defined or no subSurface can be found to the given Amg::Vector2D, it would return 0.

Definition at line 112 of file Layer.cxx.

112  {
113  if (m_surfaceArray) return m_surfaceArray->object(lp);
114  return nullptr;
115 }

◆ subSurface() [2/2]

const Trk::Surface * Trk::Layer::subSurface ( const Amg::Vector3D gp) const

If no subSurface array is defined or no subSurface can be found to the given Amg::Vector3D, it would return 0.

Definition at line 107 of file Layer.cxx.

107  {
108  if (m_surfaceArray) return m_surfaceArray->object(gp);
109  return nullptr;
110 }

◆ subSurfaceReference()

const Trk::Surface * Trk::Layer::subSurfaceReference ( unsigned int  idx = 0) const

Return a reference sub surface of the layer, usually the first one in the array.

  • if an index is given (and the index is in range), this surface is returned

Definition at line 117 of file Layer.cxx.

117  {
118  // the reference surface
119  const Trk::Surface* referenceSurface = nullptr;
120  if (m_surfaceArray) {
121  // get a reference surface
122  std::span<Trk::Surface const * const> surfaces = std::as_const(*m_surfaceArray).arrayObjects();
123  // get a reference surface
124  unsigned int rfSurfaces = surfaces.size();
125  if (idx && idx < rfSurfaces) return surfaces[idx];
126  // get the first one which is non zero
127  for (unsigned int rsf = 0; rsf < rfSurfaces; ++rsf) {
128  referenceSurface = surfaces[rsf];
129  if (referenceSurface) break;
130  }
131  }
132  return referenceSurface;
133 }

◆ surfaceArray() [1/2]

SurfaceArray* Trk::Layer::surfaceArray ( )

Return the entire SurfaceArray, returns nullptr if no SurfaceArray.

◆ surfaceArray() [2/2]

const SurfaceArray* Trk::Layer::surfaceArray ( ) const

Return the entire SurfaceArray, returns nullptr if no SurfaceArray.

◆ surfaceOnApproach()

const Trk::Surface & Trk::Layer::surfaceOnApproach ( const Amg::Vector3D pos,
const Amg::Vector3D dir,
PropDirection  pdir,
const BoundaryCheck bcheck,
bool  resolveSubSurfaces = 0,
const ICompatibilityEstimator *  ice = nullptr 
) const
virtual

Surface seen on approach - if not defined differently, it is the surfaceRepresentation()

Reimplemented in Trk::DiscLayer, and Trk::CylinderLayer.

Definition at line 209 of file Layer.cxx.

212  {
213  return surfaceRepresentation();
214 }

◆ surfaceRepresentation() [1/2]

virtual const Surface& Trk::Layer::surfaceRepresentation ( ) const
pure virtual

◆ surfaceRepresentation() [2/2]

virtual Surface& Trk::Layer::surfaceRepresentation ( )
pure virtual

◆ thickness()

double Trk::Layer::thickness ( ) const

Return the Thickness of the Layer.

Member Data Documentation

◆ m_binUtility

const BinUtility* Trk::Layer::m_binUtility = nullptr
protected

Enclosing TrackingVolume.

Definition at line 300 of file Layer.h.

◆ m_enclosingDetachedTrackingVolume

const DetachedTrackingVolume* Trk::Layer::m_enclosingDetachedTrackingVolume = nullptr
protected

Definition at line 304 of file Layer.h.

◆ m_enclosingTrackingVolume

const TrackingVolume* Trk::Layer::m_enclosingTrackingVolume = nullptr
protected

Enclosing DetachedTrackingVolume.

Definition at line 302 of file Layer.h.

◆ m_index

LayerIndex Trk::Layer::m_index {-1}
protected

LayerIndex.

Definition at line 306 of file Layer.h.

◆ m_layerMaterialProperties

std::unique_ptr<LayerMaterialProperties> Trk::Layer::m_layerMaterialProperties {}
protected

thickness of the Layer

Definition at line 288 of file Layer.h.

◆ m_layerThickness

double Trk::Layer::m_layerThickness {}
protected

descriptor for overlap/next surface (owning ptr)

Definition at line 290 of file Layer.h.

◆ m_layerType

int Trk::Layer::m_layerType {Trk::active}
protected

active passive layer

Definition at line 307 of file Layer.h.

◆ m_nextLayer

const Layer* Trk::Layer::m_nextLayer = nullptr
protected

BinUtility for next/previous decision.

Definition at line 298 of file Layer.h.

◆ m_overlapDescriptor

std::unique_ptr<OverlapDescriptor> Trk::Layer::m_overlapDescriptor {}
protected

Definition at line 292 of file Layer.h.

◆ m_previousLayer

const Layer* Trk::Layer::m_previousLayer = nullptr
protected

< the previous Layer according to BinGenUtils

next Layer according to BinGenUtils

Definition at line 296 of file Layer.h.

◆ m_ref

double Trk::Layer::m_ref {}
protected

reference measure for local coordinate convertors

Definition at line 308 of file Layer.h.

◆ m_surfaceArray

std::unique_ptr<SurfaceArray> Trk::Layer::m_surfaceArray {}
protected

MaterialPoperties of this layer Surface.

Definition at line 286 of file Layer.h.


The documentation for this class was generated from the following files:
Trk::BinUtility::orderDirection
LayerOrder orderDirection(const Amg::Vector3D &position, const Amg::Vector3D &direction, size_t ba=0) const
Return the oder direciton for fast interlinking.
Definition: BinUtility.h:165
Trk::Layer::m_previousLayer
const Layer * m_previousLayer
< the previous Layer according to BinGenUtils
Definition: Layer.h:296
Trk::Surface::setOwner
void setOwner(SurfaceOwner x)
set Ownership
Trk::noOwn
@ noOwn
Definition: Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h:57
Trk::next
@ next
Definition: BinningData.h:33
Trk::Layer::m_layerMaterialProperties
std::unique_ptr< LayerMaterialProperties > m_layerMaterialProperties
thickness of the Layer
Definition: Layer.h:288
Trk::Layer::m_overlapDescriptor
std::unique_ptr< OverlapDescriptor > m_overlapDescriptor
Definition: Layer.h:292
Trk::Layer::m_surfaceArray
std::unique_ptr< SurfaceArray > m_surfaceArray
MaterialPoperties of this layer Surface.
Definition: Layer.h:286
yodamerge_tmp.scale
scale
Definition: yodamerge_tmp.py:138
Trk::Layer::surfaceArray
const SurfaceArray * surfaceArray() const
Return the entire SurfaceArray, returns nullptr if no SurfaceArray.
ParticleGun_EoverP_Config.mom
mom
Definition: ParticleGun_EoverP_Config.py:63
Trk::Layer::surfaceRepresentation
virtual const Surface & surfaceRepresentation() const =0
Transforms the layer into a Surface representation for extrapolation.
Trk::Layer::m_layerType
int m_layerType
active passive layer
Definition: Layer.h:307
Trk::Layer::nextLayer
const Layer * nextLayer(const Amg::Vector3D &gp, const Amg::Vector3D &udir) const
getting the next/previous Layer if registered - unit for direction vector required
Definition: Layer.cxx:161
Trk::Layer::m_enclosingTrackingVolume
const TrackingVolume * m_enclosingTrackingVolume
Enclosing DetachedTrackingVolume.
Definition: Layer.h:302
Trk::Layer::m_ref
double m_ref
reference measure for local coordinate convertors
Definition: Layer.h:308
Trk::TGOwn
@ TGOwn
Definition: Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h:58
Trk::Layer::thickness
double thickness() const
Return the Thickness of the Layer.
Trk::Layer::m_nextLayer
const Layer * m_nextLayer
BinUtility for next/previous decision.
Definition: Layer.h:298
Trk::Layer::m_binUtility
const BinUtility * m_binUtility
Enclosing TrackingVolume.
Definition: Layer.h:300
Trk::Layer::previousLayer
const Layer * previousLayer(bool skipNavLayer=false) const
getting what's stored to be the previous Layer, boolean to skip navigation layers
Definition: Layer.cxx:141
Trk::Layer::m_index
LayerIndex m_index
LayerIndex.
Definition: Layer.h:306
Trk::Layer::layerMaterialProperties
const LayerMaterialProperties * layerMaterialProperties() const
getting the LayerMaterialProperties including full/pre/post update
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
Trk::Layer::m_layerThickness
double m_layerThickness
descriptor for overlap/next surface (owning ptr)
Definition: Layer.h:290
Trk::Surface
Definition: Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h:79
Trk::Layer::m_enclosingDetachedTrackingVolume
const DetachedTrackingVolume * m_enclosingDetachedTrackingVolume
Definition: Layer.h:304
Trk::Layer
Definition: Layer.h:72