ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::ProtoAxisHelpers Namespace Reference

Functions

std::size_t binFromProtoAxis (const Acts::DirectedProtoAxis &axis, const Acts::Vector2 &lp)
 Get the bin index from a ProtoAxis using local coordinates.
std::size_t binFromProtoAxis (const Acts::DirectedProtoAxis &axis, const Acts::Vector3 &gp)
 Get the bin index from a ProtoAxis using global coordinates.
std::size_t binsFromProtoAxes (std::span< const Acts::DirectedProtoAxis > axes, std::size_t ba)
 Get the number of bins from a specific ProtoAxis in a collection.
std::size_t binsOfProtoAxis (const Acts::DirectedProtoAxis &axis)
 Get the number of bins from a ProtoAxis.
std::array< std::size_t, 3 > binTripleFromProtoAxes (std::span< const Acts::DirectedProtoAxis > axes, const Acts::Vector3 &gp)
 Get the bin triple from multiple ProtoAxes using global coordinates.
std::size_t maxBin (std::span< const Acts::DirectedProtoAxis > axes, std::size_t ba=0)
 Get the maximum bin index from a specific ProtoAxis in a collection.
std::size_t totalBinsFromProtoAxes (std::span< const Acts::DirectedProtoAxis > axes)
 Get the total number of bins from multiple ProtoAxes.

Function Documentation

◆ binFromProtoAxis() [1/2]

std::size_t Acts::ProtoAxisHelpers::binFromProtoAxis ( const Acts::DirectedProtoAxis & axis,
const Acts::Vector2 & lp )

Get the bin index from a ProtoAxis using local coordinates.

Parameters
axisDirectedProtoAxis object
lpLocal position vector
Returns
Bin index corresponding to the local position

◆ binFromProtoAxis() [2/2]

std::size_t Acts::ProtoAxisHelpers::binFromProtoAxis ( const Acts::DirectedProtoAxis & axis,
const Acts::Vector3 & gp )

Get the bin index from a ProtoAxis using global coordinates.

Parameters
axisDirectedProtoAxis object
gpGlobal position vector
Returns
Bin index corresponding to the global position

◆ binsFromProtoAxes()

std::size_t Acts::ProtoAxisHelpers::binsFromProtoAxes ( std::span< const Acts::DirectedProtoAxis > axes,
std::size_t ba )

Get the number of bins from a specific ProtoAxis in a collection.

Parameters
axesDirectedProtoAxis span
baBin axis index
Returns
Number of bins in the specified axis

◆ binsOfProtoAxis()

std::size_t Acts::ProtoAxisHelpers::binsOfProtoAxis ( const Acts::DirectedProtoAxis & axis)

Get the number of bins from a ProtoAxis.

Parameters
axisDirectedProtoAxis object
Returns
Number of bins in the axis

◆ binTripleFromProtoAxes()

std::array< std::size_t, 3 > Acts::ProtoAxisHelpers::binTripleFromProtoAxes ( std::span< const Acts::DirectedProtoAxis > axes,
const Acts::Vector3 & gp )

Get the bin triple from multiple ProtoAxes using global coordinates.

Parameters
axesSpan of DirectedProtoAxis objects
gpGlobal position vector
Returns
Array of bin indices corresponding to the global position for each axis

◆ maxBin()

std::size_t Acts::ProtoAxisHelpers::maxBin ( std::span< const Acts::DirectedProtoAxis > axes,
std::size_t ba = 0 )

Get the maximum bin index from a specific ProtoAxis in a collection.

Parameters
axesDirectedProtoAxis span
baBin axis index
Returns
Maximum bin index in the specified axis

◆ totalBinsFromProtoAxes()

std::size_t Acts::ProtoAxisHelpers::totalBinsFromProtoAxes ( std::span< const Acts::DirectedProtoAxis > axes)

Get the total number of bins from multiple ProtoAxes.

Parameters
axesSpan of DirectedProtoAxis objects
Returns
Total number of bins across all axes