ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::ShiftedCenterReferenceGenerator Struct Reference

A struct to access the shifted center of surface applying a shift on the corresponding coordinate. More...

#include <Acts/Geometry/ReferenceGenerators.hpp>

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

Public Member Functions

const std::vector< Vector3 > references (const GeometryContext &gctx, const Surface &surface) const override
 Helper to access the Center point of for filling the grid.

Public Attributes

Transform3 globalToLocal {Transform3::Identity()}
 The global to local volume's frame.
AxisDirection layerDir {AxisDirection::AxisY}
 The direction orthogonal to the shift direction.
double layerLow {0.}
 The lowest bin edge in the grid along the direction opposite to the shift direction, it is needed to extract the correct index of the shifts vector.
double layerPitch {0.}
 The layer pitch it is needed to extract the correct index of the shifts vector.
AxisDirection shiftDir {AxisDirection::AxisX}
 The direction along the shift direction.
std::vector< double > shifts
 The vector with the shifts per layer if empty, exception is thrown.

Detailed Description

A struct to access the shifted center of surface applying a shift on the corresponding coordinate.

This generator will provide only one filling point and hence only a single bin in the indexed grid.

Member Function Documentation

◆ references()

const std::vector< Vector3 > Acts::ShiftedCenterReferenceGenerator::references ( const GeometryContext & gctx,
const Surface & surface ) const
overridevirtual

Helper to access the Center point of for filling the grid.

Parameters
gctxthe geometry context of this operation
surfacethe surface for which the reference point is to be accessed
Returns
a vector of reference points for filling

Implements Acts::IReferenceGenerator.