ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
ActsPlugins::Geant4DetectorElement Class Reference

Detector element representative for Geant4 sensitive elements. More...

#include <ActsPlugins/Geant4/Geant4DetectorElement.hpp>

Inheritance diagram for ActsPlugins::Geant4DetectorElement:
[legend]
Collaboration diagram for ActsPlugins::Geant4DetectorElement:
[legend]

Public Types

using ContextType = Acts::GeometryContext
 Broadcast the context type.

Public Member Functions

 Geant4DetectorElement (std::shared_ptr< Acts::Surface > surface, const G4VPhysicalVolume &g4physVol, const Acts::Transform3 &toGlobal, double thickness)
 Constructor with arguments.
const G4VPhysicalVolume & g4PhysicalVolume () const
bool isSensitive () const final
 Is the detector element a sensitive element.
const Acts::Transform3localToGlobalTransform (const Acts::GeometryContext &gctx) const override
 Return local to global transform associated with this detector element.
const Acts::Surfacesurface () const override
 Return surface associated with this detector element.
Acts::Surfacesurface () override
 Non-const access to surface associated with this detector element.
virtual double thickness () const
 Return the thickness of this detector element.
Public Member Functions inherited from Acts::SurfacePlacementBase
virtual ~SurfacePlacementBase ()=default
 Virtual default constructor.

Detailed Description

Detector element representative for Geant4 sensitive elements.

Member Typedef Documentation

◆ ContextType

Constructor & Destructor Documentation

◆ Geant4DetectorElement()

ActsPlugins::Geant4DetectorElement::Geant4DetectorElement ( std::shared_ptr< Acts::Surface > surface,
const G4VPhysicalVolume & g4physVol,
const Acts::Transform3 & toGlobal,
double thickness )

Constructor with arguments.

Parameters
surfacethe surface representing this detector element
g4physVolthe physical volume representing this detector element
toGlobalthe global transformation before the volume
thicknessthe thickness of this detector element

Member Function Documentation

◆ g4PhysicalVolume()

const G4VPhysicalVolume & ActsPlugins::Geant4DetectorElement::g4PhysicalVolume ( ) const
Returns
to the Geant4 physical volume

◆ isSensitive()

bool ActsPlugins::Geant4DetectorElement::isSensitive ( ) const
finalvirtual

Is the detector element a sensitive element.

Implements Acts::SurfacePlacementBase.

◆ localToGlobalTransform()

const Acts::Transform3 & ActsPlugins::Geant4DetectorElement::localToGlobalTransform ( const Acts::GeometryContext & gctx) const
overridevirtual

Return local to global transform associated with this detector element.

Parameters
gctxThe current geometry context object, e.g. alignment

Implements Acts::SurfacePlacementBase.

◆ surface() [1/2]

const Acts::Surface & ActsPlugins::Geant4DetectorElement::surface ( ) const
overridevirtual

Return surface associated with this detector element.

Returns
Reference to the local-to-global transformation matrix

Implements Acts::SurfacePlacementBase.

◆ surface() [2/2]

Acts::Surface & ActsPlugins::Geant4DetectorElement::surface ( )
overridevirtual

Non-const access to surface associated with this detector element.

Returns
Const reference to the associated surface

Implements Acts::SurfacePlacementBase.

◆ thickness()

virtual double ActsPlugins::Geant4DetectorElement::thickness ( ) const
virtual

Return the thickness of this detector element.

Returns
Mutable reference to the associated surface
The thickness value in length units