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

This class is designed to parse a vector of Surfaces and sort them into corresponding proto layers. More...

#include <Acts/Geometry/ProtoLayerHelper.hpp>

Classes

struct  Config

Public Types

using SortingConfig = std::pair<AxisDirection, double>
 Type alias for sorting configuration with axis direction and tolerance.

Public Member Functions

 ProtoLayerHelper (const Config &, std::unique_ptr< const Logger > logger=getDefaultLogger("ProtoLayerHelper", Logging::INFO))
 Constructor with explicit config.
 ~ProtoLayerHelper ()=default
std::vector< ProtoLayerprotoLayers (const GeometryContext &gctx, const std::vector< const Surface * > &surfaces, const SortingConfig &sorting) const
 Sort the surfaces into ProtoLayers.
std::vector< ProtoLayerprotoLayers (const GeometryContext &gctx, const std::vector< const Surface * > &surfaces, const std::vector< SortingConfig > &sortings) const
 Sort the surfaces into ProtoLayers, sequential sorting.

Detailed Description

This class is designed to parse a vector of Surfaces and sort them into corresponding proto layers.

Todo
write more documentation on how this is done

Member Typedef Documentation

◆ SortingConfig

Type alias for sorting configuration with axis direction and tolerance.

Constructor & Destructor Documentation

◆ ProtoLayerHelper()

Acts::ProtoLayerHelper::ProtoLayerHelper ( const Config & ,
std::unique_ptr< const Logger > logger = getDefaultLogger("ProtoLayerHelper",                                                 Logging::INFO) )
explicit

Constructor with explicit config.

Parameters
loggerlogging instance

◆ ~ProtoLayerHelper()

Acts::ProtoLayerHelper::~ProtoLayerHelper ( )
default

Member Function Documentation

◆ protoLayers() [1/2]

std::vector< ProtoLayer > Acts::ProtoLayerHelper::protoLayers ( const GeometryContext & gctx,
const std::vector< const Surface * > & surfaces,
const SortingConfig & sorting ) const

Sort the surfaces into ProtoLayers.

Parameters
gctxThe geometry context (usually building context at this stage)
surfacesThe surfaces to be sorted into arrays
sortingThe sorting setup, one single sorting
Returns
A vector of ProtoLayers

◆ protoLayers() [2/2]

std::vector< ProtoLayer > Acts::ProtoLayerHelper::protoLayers ( const GeometryContext & gctx,
const std::vector< const Surface * > & surfaces,
const std::vector< SortingConfig > & sortings ) const

Sort the surfaces into ProtoLayers, sequential sorting.

Parameters
gctxThe geometry context (usually building context at this stage)
surfacesThe surfaces to be sorted into arrays
sortingsThe sequential sorting setup
Returns
A vector of ProtoLayers