Mandatory class for the construction of geometry. More...
#include <Doxymodules_medical.h>
Public Member Functions | |
DetectorConstruction () | |
~DetectorConstruction () | |
G4VPhysicalVolume * | Construct () override |
Method overriding pure virtual G4VUserDetectorConstruction one. | |
void | ConstructSDandField () override |
Method overriding pure virtual G4VUserDetectorConstruction one. | |
void | SetSize (G4double) |
Method to set the world volume to be cubical with given side. | |
void | SetSize (G4ThreeVector) |
Method to set the world volume to be a box with given (potentially different) sides. | |
void | SetSizeX (G4double x) |
Method to set the X width of the world volume. | |
void | SetSizeY (G4double y) |
Method to set the Y width of the world volume. | |
void | SetSizeZ (G4double z) |
Method to set the Z width of the world volume. | |
void | SetMaterial (G4String mat) |
Method to set the world material. | |
const G4VPhysicalVolume * | GetWorld () |
Returns a pointer to the world physical volume. | |
G4double | GetSizeX () const |
G4double | GetSizeY () const |
G4double | GetSizeZ () const |
G4Material * | GetMaterial () |
Returns a pointer to the world material. | |
void | PrintParameters () |
Prints on screen some parameters for this class. | |
Private Member Functions | |
G4VPhysicalVolume * | ConstructVolumes () |
Private method to construct geometry. | |
Private Attributes | |
G4VPhysicalVolume * | fPBox = nullptr |
G4LogicalVolume * | fLBox = nullptr |
G4double | fBoxSizeX = 1. * m |
G4double | fBoxSizeY = 1. * m |
G4double | fBoxSizeZ = 1. * m |
G4Material * | fMaterial = nullptr |
DetectorMessenger * | fDetectorMessenger = nullptr |
Mandatory class for the construction of geometry.
This class is used to create the world volume and keep track of some dimensions. World volume is the only one created and saved here, whereas voxels and sensitiveness are accounted for by another class.
Definition at line 127 of file Doxymodules_medical.h.
RadioBio::DetectorConstruction::DetectorConstruction | ( | ) |
Definition at line 55 of file DetectorConstruction.cc.
RadioBio::DetectorConstruction::~DetectorConstruction | ( | ) |
Definition at line 69 of file DetectorConstruction.cc.
|
override |
Method overriding pure virtual G4VUserDetectorConstruction one.
Definition at line 76 of file DetectorConstruction.cc.
|
override |
Method overriding pure virtual G4VUserDetectorConstruction one.
Definition at line 83 of file DetectorConstruction.cc.
void RadioBio::DetectorConstruction::SetSize | ( | G4double | value | ) |
Method to set the world volume to be cubical with given side.
Definition at line 166 of file DetectorConstruction.cc.
void RadioBio::DetectorConstruction::SetSize | ( | G4ThreeVector | size | ) |
Method to set the world volume to be a box with given (potentially different) sides.
Definition at line 175 of file DetectorConstruction.cc.
void RadioBio::DetectorConstruction::SetSizeX | ( | G4double | x | ) |
Method to set the X width of the world volume.
x | X width of the box |
Definition at line 184 of file DetectorConstruction.cc.
void RadioBio::DetectorConstruction::SetSizeY | ( | G4double | y | ) |
Method to set the Y width of the world volume.
y | Y width of the box |
Definition at line 191 of file DetectorConstruction.cc.
void RadioBio::DetectorConstruction::SetSizeZ | ( | G4double | z | ) |
Method to set the Z width of the world volume.
z | Z width of the box |
Definition at line 198 of file DetectorConstruction.cc.
void RadioBio::DetectorConstruction::SetMaterial | ( | G4String | mat | ) |
Method to set the world material.
mat | string containing the name of the material according to NIST database |
Definition at line 140 of file DetectorConstruction.cc.
|
inline |
Returns a pointer to the world physical volume.
Definition at line 103 of file DetectorConstruction.hh.
|
inline |
Definition at line 105 of file DetectorConstruction.hh.
|
inline |
Definition at line 106 of file DetectorConstruction.hh.
|
inline |
Definition at line 107 of file DetectorConstruction.hh.
|
inline |
Returns a pointer to the world material.
Definition at line 111 of file DetectorConstruction.hh.
void RadioBio::DetectorConstruction::PrintParameters | ( | ) |
Prints on screen some parameters for this class.
Definition at line 128 of file DetectorConstruction.cc.
|
private |
Private method to construct geometry.
Definition at line 90 of file DetectorConstruction.cc.
|
private |
Definition at line 121 of file DetectorConstruction.hh.
|
private |
Definition at line 122 of file DetectorConstruction.hh.
|
private |
Definition at line 125 of file DetectorConstruction.hh.
|
private |
Definition at line 126 of file DetectorConstruction.hh.
|
private |
Definition at line 127 of file DetectorConstruction.hh.
|
private |
Definition at line 130 of file DetectorConstruction.hh.
|
private |
Definition at line 133 of file DetectorConstruction.hh.