Code documentation of YourDetectorConstruction of the application
This section contains the code documentation of the
detector construction of the application developed during the course.
The YourDetectorConstruction class
-
class YourDetectorConstruction : public G4VUserDetectorConstruction
Implementation of the
Geant4G4VUserDetectorConstructionmandatory interface for this user application.- Author
M. Novak
- Date
December 2019
The description of the application detector geometry must be implemented in the Construct() interface.
Public Functions
-
YourDetectorConstruction()
Constructor.
-
~YourDetectorConstruction() override
Destructor.
-
G4VPhysicalVolume *Construct() override
It’s interface method to construct the detector.
The base class has the Construct() (only one) pure virtual method which is invoked by the G4RunManager when it’s Initialize() method is invoked. The Construct() method must return the G4VPhysicalVolume pointer which represents the world volume.
Your entire detector description must be implemented here in this method.