Analysis Software
Documentation for sPHENIX simulation software
|
Construct the Geant4 detector from a DD4hep description. More...
#include <acts/blob/sPHENIX/Examples/Algorithms/Geant4/include/ActsExamples/DDG4/DDG4DetectorConstruction.hpp>
Public Member Functions | |
DDG4DetectorConstruction (std::shared_ptr< DD4hep::DD4hepDetector > detector) | |
~DDG4DetectorConstruction () final | |
G4VPhysicalVolume * | Construct () final |
Private Member Functions | |
dd4hep::Detector & | dd4hepDetector () const |
The DD4hep detector instance. | |
Private Attributes | |
std::shared_ptr < DD4hep::DD4hepDetector > | m_detector |
The Acts DD4hep detector instance. | |
G4VPhysicalVolume * | m_world = nullptr |
The world volume. | |
Construct the Geant4 detector from a DD4hep description.
Definition at line 29 of file DDG4DetectorConstruction.hpp.
View newest version in sPHENIX GitHub at line 29 of file DDG4DetectorConstruction.hpp
ActsExamples::DDG4DetectorConstruction::DDG4DetectorConstruction | ( | std::shared_ptr< DD4hep::DD4hepDetector > | detector | ) |
Definition at line 25 of file DDG4DetectorConstruction.cpp.
View newest version in sPHENIX GitHub at line 25 of file DDG4DetectorConstruction.cpp
|
finaldefault |
|
final |
Convert the stored DD4hep detector to a Geant4 description.
Transfers ownership of the created object as all volumes (including world) are deleted in ~G4PhysicalVolumeStore().
Definition at line 37 of file DDG4DetectorConstruction.cpp.
View newest version in sPHENIX GitHub at line 37 of file DDG4DetectorConstruction.cpp
References VERBOSE.
|
private |
The DD4hep detector instance.
Definition at line 31 of file DDG4DetectorConstruction.cpp.
View newest version in sPHENIX GitHub at line 31 of file DDG4DetectorConstruction.cpp
|
private |
The Acts DD4hep detector instance.
Definition at line 45 of file DDG4DetectorConstruction.hpp.
View newest version in sPHENIX GitHub at line 45 of file DDG4DetectorConstruction.hpp
|
private |
The world volume.
Definition at line 47 of file DDG4DetectorConstruction.hpp.
View newest version in sPHENIX GitHub at line 47 of file DDG4DetectorConstruction.hpp