Celeritas 0.7.0-dev.79+develop.b3dc2e108
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::DetectorConstruction Class Reference

Load a GDML file and construct sensitive detectors. More...

#include <DetectorConstruction.hh>

Inheritance diagram for celeritas::DetectorConstruction:
Inheritance graph
[legend]

Public Types

Type aliases
using UPSD = std::unique_ptr< G4VSensitiveDetector >
 
using SDBuilder = std::function< UPSD(std::string const &)>
 

Public Member Functions

 DetectorConstruction (std::string const &filename, SDBuilder build_worker_sd)
 Set up Celeritas SD options during construction.
 
G4VPhysicalVolumeConstruct () override
 Load geometry and sensitive detector volumes.
 
void ConstructSDandField () override
 Construct thread-local sensitive detectors and field.
 
std::string constfilename () const
 Get the filename used by the GDML loader.
 
G4VPhysicalVolumeworld () const
 Access the constructed world.
 

Detailed Description

Load a GDML file and construct sensitive detectors.

Constructor & Destructor Documentation

◆ DetectorConstruction()

celeritas::DetectorConstruction::DetectorConstruction ( std::string const filename,
SDBuilder  build_worker_sd 
)

Set up Celeritas SD options during construction.

This should be done only during the main/serial thread.

Member Function Documentation

◆ Construct()

G4VPhysicalVolume * celeritas::DetectorConstruction::Construct ( )
override

Load geometry and sensitive detector volumes.

This should only be called once from the master thread, toward the very beginning of the program.


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