|
ACTS
Experiment-independent tracking
|
Trivial portal link links to a single target volume on every point on a surface. More...
#include <Acts/Geometry/TrivialPortalLink.hpp>
Public Member Functions | |
| TrivialPortalLink (std::shared_ptr< RegularSurface > surface, TrackingVolume &volume) | |
| Construct a trivial portal link from a surface and a volume. | |
| std::unique_ptr< GridPortalLink > | makeGrid (AxisDirection direction) const |
| Make a 1D grid portal link from this trivial portal link The grid size is automatically determined from the surface bounds. | |
| Result< const TrackingVolume * > | resolveVolume (const GeometryContext &gctx, const Vector2 &position, double tolerance=s_onSurfaceTolerance) const override |
| Resolve the volume for a 2D position. | |
| Result< const TrackingVolume * > | resolveVolume (const GeometryContext &gctx, const Vector3 &position, double tolerance=s_onSurfaceTolerance) const override |
| Resolve the volume for a 3D position. | |
| void | toStream (std::ostream &os) const override |
| Print the portal link to a stream. | |
| const TrackingVolume & | volume () const |
| Get the single volume that this trivial portal link is associated with. | |
| Public Member Functions inherited from Acts::PortalLinkBase | |
| virtual | ~PortalLinkBase ()=default |
| Virtual destructor in case the object is held as a derived. | |
| void | setSurface (std::shared_ptr< RegularSurface > surface) |
| Setter for the surface. | |
| const RegularSurface & | surface () const |
| Getter for the associated surface. | |
| const std::shared_ptr< RegularSurface > & | surfacePtr () const |
| Getter for the underlying shared pointer. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from Acts::PortalLinkBase | |
| static std::unique_ptr< PortalLinkBase > | merge (std::unique_ptr< PortalLinkBase > a, std::unique_ptr< PortalLinkBase > b, AxisDirection direction, const Logger &logger=getDummyLogger()) |
| Merge two portal link into a single one. | |
| Protected Member Functions inherited from Acts::PortalLinkBase | |
| PortalLinkBase (std::shared_ptr< RegularSurface > surface) | |
| Constructor from a surface. | |
| Static Protected Member Functions inherited from Acts::PortalLinkBase | |
| static void | checkMergePreconditions (const PortalLinkBase &a, const PortalLinkBase &b, AxisDirection direction) |
| Helper function to check a number of preconditions before merging is executed. | |
| Protected Attributes inherited from Acts::PortalLinkBase | |
| std::shared_ptr< RegularSurface > | m_surface |
| Surface associated with this portal link. | |
Trivial portal link links to a single target volume on every point on a surface.
| Acts::TrivialPortalLink::TrivialPortalLink | ( | std::shared_ptr< RegularSurface > | surface, |
| TrackingVolume & | volume ) |
Construct a trivial portal link from a surface and a volume.
| surface | is the surface |
| volume | is the target |
| std::unique_ptr< GridPortalLink > Acts::TrivialPortalLink::makeGrid | ( | AxisDirection | direction | ) | const |
Make a 1D grid portal link from this trivial portal link The grid size is automatically determined from the surface bounds.
| direction | The axis direction of the grid |
|
overridevirtual |
Resolve the volume for a 2D position.
| gctx | is the geometry context |
| position | is the 2D position |
| tolerance | is the tolerance |
Implements Acts::PortalLinkBase.
|
overridevirtual |
Resolve the volume for a 3D position.
| gctx | is the geometry context |
| position | is the 2D position |
| tolerance | is the tolerance |
Implements Acts::PortalLinkBase.
|
overridevirtual |
| const TrackingVolume & Acts::TrivialPortalLink::volume | ( | ) | const |
Get the single volume that this trivial portal link is associated with.