Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts/blob/sPHENIX/Plugins/Geant4/include/Acts/Plugins/Geant4/Geant4DetectorElement.hpp>
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 Transform3 & | transform (const GeometryContext &gctx) const override |
const Surface & | surface () const override |
Return surface associated with this detector element. | |
Surface & | surface () override |
Non-const access to surface associated with this detector element. | |
ActsScalar | thickness () const override |
Return the thickness of this detector element. | |
const G4VPhysicalVolume & | g4PhysicalVolume () const |
Public Member Functions inherited from Acts::DetectorElementBase | |
DetectorElementBase ()=default | |
virtual | ~DetectorElementBase ()=default |
Private Attributes | |
std::shared_ptr< Surface > | m_surface |
Corresponding Surface. | |
const G4VPhysicalVolume * | m_g4physVol {nullptr} |
The GEant4 physical volume. | |
Transform3 | m_toGlobal |
The global transformation before the volume. | |
ActsScalar | m_thickness {0.} |
Thickness of this detector element. | |
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
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
Acts::Geant4DetectorElement::Geant4DetectorElement | ( | std::shared_ptr< Surface > | surface, |
const G4VPhysicalVolume & | g4physVol, | ||
const Transform3 & | toGlobal, | ||
ActsScalar | thickness | ||
) |
Constructor with arguments.
thickness | the thickness of this detector element |
toGlobal | the global transformation before the volume |
g4phys | the 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
const G4VPhysicalVolume & Acts::Geant4DetectorElement::g4PhysicalVolume | ( | ) | const |
Definition at line 40 of file Geant4DetectorElement.cpp.
View newest version in sPHENIX GitHub at line 40 of file Geant4DetectorElement.cpp
|
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
|
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
|
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
|
overridevirtual |
Return local to global transform associated with this detector element
gctx | The 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
|
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
|
private |
Corresponding Surface.
Definition at line 62 of file Geant4DetectorElement.hpp.
View newest version in sPHENIX GitHub at line 62 of file Geant4DetectorElement.hpp
|
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
|
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