ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::GenericApproachDescriptor Class Reference

Class to decide and return which approaching surface to be taken, it's a generic descriptor for n surfaces. More...

#include <Acts/Geometry/GenericApproachDescriptor.hpp>

Inheritance diagram for Acts::GenericApproachDescriptor:
[legend]
Collaboration diagram for Acts::GenericApproachDescriptor:
[legend]

Public Member Functions

 GenericApproachDescriptor (std::vector< std::shared_ptr< const Surface > > aSurfaces)
 A generic approach descriptor for new Acts::Surface objects passing ownership.
NavigationTarget approachSurface (const GeometryContext &gctx, const Vector3 &position, const Vector3 &direction, const BoundaryTolerance &boundaryTolerance, double nearLimit, double farLimit) const override
 Get the approach surface to the layer.
const std::vector< const Surface * > & containedSurfaces () const override
 return all contained surfaces of this approach descriptor
std::vector< const Surface * > & containedSurfaces () override
 Non-const version.
void registerLayer (const Layer &lay) override
 Register the Layer to the surfaces.
Public Member Functions inherited from Acts::ApproachDescriptor
 ApproachDescriptor ()=default
virtual ~ApproachDescriptor ()=default

Detailed Description

Class to decide and return which approaching surface to be taken, it's a generic descriptor for n surfaces.

Constructor & Destructor Documentation

◆ GenericApproachDescriptor()

Acts::GenericApproachDescriptor::GenericApproachDescriptor ( std::vector< std::shared_ptr< const Surface > > aSurfaces)
explicit

A generic approach descriptor for new Acts::Surface objects passing ownership.

Parameters
aSurfacesare the approach surfaces

Member Function Documentation

◆ approachSurface()

NavigationTarget Acts::GenericApproachDescriptor::approachSurface ( const GeometryContext & gctx,
const Vector3 & position,
const Vector3 & direction,
const BoundaryTolerance & boundaryTolerance,
double nearLimit,
double farLimit ) const
overridevirtual

Get the approach surface to the layer.

Parameters
gctxThe current geometry context object, e.g. alignment
positionThe global position to start the approach from
directionThe momentum vector
boundaryToleranceThe boundary check prescription
nearLimitThe minimum distance for an intersection to be considered
farLimitThe maximum distance for an intersection to be considered
Returns
: a NavigationTarget

Implements Acts::ApproachDescriptor.

◆ containedSurfaces() [1/2]

const std::vector< const Surface * > & Acts::GenericApproachDescriptor::containedSurfaces ( ) const
overridevirtual

return all contained surfaces of this approach descriptor

Returns
Const reference to vector of contained surface pointers

Implements Acts::ApproachDescriptor.

◆ containedSurfaces() [2/2]

std::vector< const Surface * > & Acts::GenericApproachDescriptor::containedSurfaces ( )
overridevirtual

Non-const version.

Returns
Mutable reference to vector of contained surface pointers

Implements Acts::ApproachDescriptor.

◆ registerLayer()

void Acts::GenericApproachDescriptor::registerLayer ( const Layer & lay)
overridevirtual

Register the Layer to the surfaces.

Parameters
layis the layer to be registered

Implements Acts::ApproachDescriptor.