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

This class is the base of all detector elements that are usable by ACTS. More...

#include <Acts/Geometry/DetectorElementBase.hpp>

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

Public Member Functions

 DetectorElementBase ()=default
bool isSensitive () const override
 Returns whether the detector element corresponds to a sensitive surface on which measurements are expressed.
const Transform3localToGlobalTransform (const GeometryContext &gctx) const override
 Return the transform for the Element proxy mechanism.
virtual double thickness () const =0
 Returns the thickness of the module.
virtual const Transform3transform (const GeometryContext &gctx) const
 Return the transform for the Element proxy mechanism.
Public Member Functions inherited from Acts::SurfacePlacementBase
virtual ~SurfacePlacementBase ()=default
 Virtual default constructor.
virtual const Surfacesurface () const =0
 Get a reference to the surface that is associated with this placement element.
virtual Surfacesurface ()=0
 Get a reference to the surface that is associated with this placement element.

Detailed Description

This class is the base of all detector elements that are usable by ACTS.

All experiment-specific detector element classes are expected to inherit from it.

Deprecated
: This class is deprecated in favour of SurfacePlacementBase
Remarks
It is possible toe replace this base class by defining a ACTS_DETECTOR_ELEMENT_BASE_REPLACEMENT pre-processor replacement. If found, SurfacePlacementBase.hpp will instead include that file.

Constructor & Destructor Documentation

◆ DetectorElementBase()

Acts::DetectorElementBase::DetectorElementBase ( )
default

Member Function Documentation

◆ isSensitive()

bool Acts::DetectorElementBase::isSensitive ( ) const
overridevirtual

Returns whether the detector element corresponds to a sensitive surface on which measurements are expressed.

Implements Acts::SurfacePlacementBase.

◆ localToGlobalTransform()

const Transform3 & Acts::DetectorElementBase::localToGlobalTransform ( const GeometryContext & gctx) const
overridevirtual

Return the transform for the Element proxy mechanism.

Parameters
gctxThe current geometry context object, e.g. alignment
Returns
reference to the transform to switch from the element's coordinates to the experiment's global coordinate system

Implements Acts::SurfacePlacementBase.

◆ thickness()

virtual double Acts::DetectorElementBase::thickness ( ) const
pure virtual

Returns the thickness of the module.

Returns
double that indicates the thickness of the module

◆ transform()

virtual const Transform3 & Acts::DetectorElementBase::transform ( const GeometryContext & gctx) const
virtual

Return the transform for the Element proxy mechanism.

Parameters
gctxThe current geometry context object, e.g. alignment
Returns
reference to the transform of this detector element