Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::Geant4DetectorElement Class Reference

#include <acts/blob/sPHENIX/Plugins/Geant4/include/Acts/Plugins/Geant4/Geant4DetectorElement.hpp>

+ Inheritance diagram for Acts::Geant4DetectorElement:
+ Collaboration diagram for Acts::Geant4DetectorElement:

Public Types

using ContextType = GeometryContext
 Broadcast the context type.
 

Public Member Functions

 Geant4DetectorElement (std::shared_ptr< Surface > surface, const G4VPhysicalVolume &g4physVol, const Transform3 &toGlobal, ActsScalar thickness)
 Constructor with arguments.
 
const Transform3transform (const GeometryContext &gctx) const override
 
const Surfacesurface () const override
 Return surface associated with this detector element.
 
Surfacesurface () override
 Non-const access to surface associated with this detector element.
 
ActsScalar thickness () const override
 Return the thickness of this detector element.
 
const G4VPhysicalVolumeg4PhysicalVolume () const
 
- Public Member Functions inherited from Acts::DetectorElementBase
 DetectorElementBase ()=default
 
virtual ~DetectorElementBase ()=default
 

Private Attributes

std::shared_ptr< Surfacem_surface
 Corresponding Surface.
 
const G4VPhysicalVolumem_g4physVol {nullptr}
 The GEant4 physical volume.
 
Transform3 m_toGlobal
 The global transformation before the volume.
 
ActsScalar m_thickness {0.}
 Thickness of this detector element.
 

Detailed Description

Detector element representative for Geant4 sensitive elements.

Definition at line 30 of file Geant4DetectorElement.hpp.

View newest version in sPHENIX GitHub at line 30 of file Geant4DetectorElement.hpp

Member Typedef Documentation

Broadcast the context type.

Definition at line 33 of file Geant4DetectorElement.hpp.

View newest version in sPHENIX GitHub at line 33 of file Geant4DetectorElement.hpp

Constructor & Destructor Documentation

Acts::Geant4DetectorElement::Geant4DetectorElement ( std::shared_ptr< Surface surface,
const G4VPhysicalVolume g4physVol,
const Transform3 toGlobal,
ActsScalar  thickness 
)

Constructor with arguments.

Parameters
thicknessthe thickness of this detector element
toGlobalthe global transformation before the volume
g4physthe physical volume representing this detector element

Definition at line 15 of file Geant4DetectorElement.cpp.

View newest version in sPHENIX GitHub at line 15 of file Geant4DetectorElement.cpp

Member Function Documentation

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

Definition at line 40 of file Geant4DetectorElement.cpp.

View newest version in sPHENIX GitHub at line 40 of file Geant4DetectorElement.cpp

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

Return surface associated with this detector element.

Implements Acts::DetectorElementBase.

Definition at line 28 of file Geant4DetectorElement.cpp.

View newest version in sPHENIX GitHub at line 28 of file Geant4DetectorElement.cpp

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

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

Implements Acts::DetectorElementBase.

Definition at line 32 of file Geant4DetectorElement.cpp.

View newest version in sPHENIX GitHub at line 32 of file Geant4DetectorElement.cpp

Acts::ActsScalar Acts::Geant4DetectorElement::thickness ( ) const
overridevirtual

Return the thickness of this detector element.

Implements Acts::DetectorElementBase.

Definition at line 36 of file Geant4DetectorElement.cpp.

View newest version in sPHENIX GitHub at line 36 of file Geant4DetectorElement.cpp

const Acts::Transform3 & Acts::Geant4DetectorElement::transform ( const 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::DetectorElementBase.

Definition at line 23 of file Geant4DetectorElement.cpp.

View newest version in sPHENIX GitHub at line 23 of file Geant4DetectorElement.cpp

Member Data Documentation

const G4VPhysicalVolume* Acts::Geant4DetectorElement::m_g4physVol {nullptr}
private

The GEant4 physical volume.

Definition at line 64 of file Geant4DetectorElement.hpp.

View newest version in sPHENIX GitHub at line 64 of file Geant4DetectorElement.hpp

std::shared_ptr<Surface> Acts::Geant4DetectorElement::m_surface
private

Corresponding Surface.

Definition at line 62 of file Geant4DetectorElement.hpp.

View newest version in sPHENIX GitHub at line 62 of file Geant4DetectorElement.hpp

ActsScalar Acts::Geant4DetectorElement::m_thickness {0.}
private

Thickness of this detector element.

Definition at line 68 of file Geant4DetectorElement.hpp.

View newest version in sPHENIX GitHub at line 68 of file Geant4DetectorElement.hpp

Transform3 Acts::Geant4DetectorElement::m_toGlobal
private

The global transformation before the volume.

Definition at line 66 of file Geant4DetectorElement.hpp.

View newest version in sPHENIX GitHub at line 66 of file Geant4DetectorElement.hpp


The documentation for this class was generated from the following files: