ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::GeometryObject Class Referenceabstract

Base class to provide GeometryIdentifier interface: More...

#include <Acts/Geometry/GeometryObject.hpp>

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

Public Member Functions

 GeometryObject ()=default
 Defaulted constructor.
 GeometryObject (const GeometryIdentifier &geometryId)
 Constructor from a value.
 GeometryObject (const GeometryObject &)=default
 Defaulted copy constructor.
virtual ~GeometryObject () noexcept=default
void assignGeometryId (const GeometryIdentifier &geometryId)
 Set the value.
GeometryIdentifier geometryId () const
virtual Vector3 referencePosition (const GeometryContext &gctx, AxisDirection aDir) const =0
 Force a binning position method.
virtual double referencePositionValue (const GeometryContext &gctx, AxisDirection aDir) const
 Implement the binningValue.

Protected Attributes

GeometryIdentifier m_geometryId
 Unique geometry identifier for this object.

Detailed Description

Base class to provide GeometryIdentifier interface:

  • simple set and get

It also provides the referencePosition method for Geometry geometrical object to be binned in BinnedArrays

Constructor & Destructor Documentation

◆ GeometryObject() [1/3]

Acts::GeometryObject::GeometryObject ( )
default

Defaulted constructor.

◆ GeometryObject() [2/3]

Acts::GeometryObject::GeometryObject ( const GeometryObject & )
default

Defaulted copy constructor.

◆ GeometryObject() [3/3]

Acts::GeometryObject::GeometryObject ( const GeometryIdentifier & geometryId)
explicit

Constructor from a value.

Parameters
geometryIdthe geometry identifier of the object

◆ ~GeometryObject()

virtual Acts::GeometryObject::~GeometryObject ( )
virtualdefaultnoexcept

Member Function Documentation

◆ assignGeometryId()

void Acts::GeometryObject::assignGeometryId ( const GeometryIdentifier & geometryId)

Set the value.

Parameters
geometryIdthe geometry identifier to be assigned

◆ geometryId()

GeometryIdentifier Acts::GeometryObject::geometryId ( ) const
Returns
the geometry id by reference

◆ referencePosition()

virtual Vector3 Acts::GeometryObject::referencePosition ( const GeometryContext & gctx,
AxisDirection aDir ) const
pure virtual

Force a binning position method.

Parameters
gctxThe current geometry context object, e.g. alignment
aDiris the value for which the reference position is requested
Returns
vector 3D used for the binning schema

Implemented in Acts::ConeSurface, Acts::CylinderSurface, Acts::DiscSurface, Acts::LineSurface, Acts::NavigationLayer, Acts::PlaneSurface, and Acts::Volume.

◆ referencePositionValue()

double Acts::GeometryObject::referencePositionValue ( const GeometryContext & gctx,
AxisDirection aDir ) const
virtual

Implement the binningValue.

Parameters
gctxThe current geometry context object, e.g. alignment
aDiris the dobule in which you want to bin
Returns
float to be used for the binning schema

Reimplemented in Acts::DiscSurface.

Member Data Documentation

◆ m_geometryId

GeometryIdentifier Acts::GeometryObject::m_geometryId
protected

Unique geometry identifier for this object.