ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::TryAllNavigationPolicy Class Referencefinal

Policy which adds all candidates of the configured type to the stream. More...

#include <Acts/Navigation/TryAllNavigationPolicy.hpp>

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

Classes

struct  Config

Public Member Functions

 TryAllNavigationPolicy (const GeometryContext &gctx, const TrackingVolume &volume, const Logger &logger)
 Constructor from a volume.
 TryAllNavigationPolicy (const GeometryContext &gctx, const TrackingVolume &volume, const Logger &logger, const Config &config)
 Constructor from a volume.
void connect (NavigationDelegate &delegate) const override
 Connect the policy to a navigation delegate.
void initializeCandidates (const GeometryContext &gctx, const NavigationArguments &args, AppendOnlyNavigationStream &stream, const Logger &logger) const
 Add all candidates to the stream.
Public Member Functions inherited from Acts::INavigationPolicy
virtual ~INavigationPolicy ()=default
 Virtual destructor so policies can be held through this base class.
virtual void visit (const std::function< void(const INavigationPolicy &)> &visitor) const
 Convenience function to walk over all navigation policies.

Additional Inherited Members

Static Public Member Functions inherited from Acts::INavigationPolicy
static void noopInitializeCandidates (const GeometryContext &, const NavigationArguments &, const AppendOnlyNavigationStream &, const Logger &)
 Noop update function that is suitable as a default for default navigation delegates.
Protected Member Functions inherited from Acts::INavigationPolicy
template<NavigationPolicyConcept T>
void connectDefault (NavigationDelegate &delegate) const
 Internal helper function for derived classes that conform to the concept and have a conventional updateState method.

Detailed Description

Policy which adds all candidates of the configured type to the stream.

Constructor & Destructor Documentation

◆ TryAllNavigationPolicy() [1/2]

Acts::TryAllNavigationPolicy::TryAllNavigationPolicy ( const GeometryContext & gctx,
const TrackingVolume & volume,
const Logger & logger,
const Config & config )

Constructor from a volume.

Parameters
gctxis the geometry context
volumeis the volume to navigate
loggeris the logger
configThe configuration for the policy

◆ TryAllNavigationPolicy() [2/2]

Acts::TryAllNavigationPolicy::TryAllNavigationPolicy ( const GeometryContext & gctx,
const TrackingVolume & volume,
const Logger & logger )

Constructor from a volume.

Parameters
gctxis the geometry context
volumeis the volume to navigate
loggeris the logger

Member Function Documentation

◆ connect()

void Acts::TryAllNavigationPolicy::connect ( NavigationDelegate & delegate) const
overridevirtual

Connect the policy to a navigation delegate.

Parameters
delegateis the navigation delegate

Implements Acts::INavigationPolicy.

◆ initializeCandidates()

void Acts::TryAllNavigationPolicy::initializeCandidates ( const GeometryContext & gctx,
const NavigationArguments & args,
AppendOnlyNavigationStream & stream,
const Logger & logger ) const

Add all candidates to the stream.

Parameters
gctxis the geometry context
argsare the navigation arguments
streamis the navigation stream to update
loggeris the logger