Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsExamples::GdmlDetectorConstruction Exception Referencefinal

Construct the Geant4 detector from a Gdml file. More...

#include <acts/blob/sPHENIX/Examples/Algorithms/Geant4/include/ActsExamples/Geant4/GdmlDetectorConstruction.hpp>

+ Inheritance diagram for ActsExamples::GdmlDetectorConstruction:
+ Collaboration diagram for ActsExamples::GdmlDetectorConstruction:

Public Member Functions

 GdmlDetectorConstruction (std::string path)
 
G4VPhysicalVolumeConstruct () override
 

Private Attributes

std::string m_path
 Path to the Gdml file.
 
G4VPhysicalVolumem_world = nullptr
 Cached worled volume.
 

Detailed Description

Construct the Geant4 detector from a Gdml file.

Definition at line 22 of file GdmlDetectorConstruction.hpp.

View newest version in sPHENIX GitHub at line 22 of file GdmlDetectorConstruction.hpp

Constructor & Destructor Documentation

GdmlDetectorConstruction::GdmlDetectorConstruction ( std::string  path)
Parameters
pathis the path to the Gdml file

Definition at line 19 of file GdmlDetectorConstruction.cpp.

View newest version in sPHENIX GitHub at line 19 of file GdmlDetectorConstruction.cpp

Member Function Documentation

G4VPhysicalVolume * GdmlDetectorConstruction::Construct ( )
override

Read the file and parse it to construct the Geant4 description

Note
to simplify further setup withiin the ACTS framework the world is cached when first constructed

Definition at line 22 of file GdmlDetectorConstruction.cpp.

View newest version in sPHENIX GitHub at line 22 of file GdmlDetectorConstruction.cpp

References m_path, m_world, and filter::parser.

Referenced by ActsExamples::MockupSectorBuilder::MockupSectorBuilder(), and PYBIND11_MODULE().

+ Here is the caller graph for this function:

Member Data Documentation

std::string ActsExamples::GdmlDetectorConstruction::m_path
private

Path to the Gdml file.

Definition at line 35 of file GdmlDetectorConstruction.hpp.

View newest version in sPHENIX GitHub at line 35 of file GdmlDetectorConstruction.hpp

Referenced by Construct().

G4VPhysicalVolume* ActsExamples::GdmlDetectorConstruction::m_world = nullptr
private

Cached worled volume.

Definition at line 37 of file GdmlDetectorConstruction.hpp.

View newest version in sPHENIX GitHub at line 37 of file GdmlDetectorConstruction.hpp

Referenced by Construct().


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