Simple detector construction with a box volume placed in a world. More...
#include <Doxymodules_common.h>
Public Member Functions | |
DetectorConstruction (const G4String &boxMaterialName="G4_AIR", G4double boxHx=40 *CLHEP::cm, G4double boxHy=40 *CLHEP::cm, G4double boxHz=40 *CLHEP::cm, const G4String &worldMaterialName="G4_AIR", G4double worldSizeFactor=1.25) | |
~DetectorConstruction () override | |
G4VPhysicalVolume * | Construct () override |
void | SetBoxMaterial (const G4String &materialName) |
void | SetWorldMaterial (const G4String &materialName) |
void | SetBoxDimensions (G4ThreeVector dimensions) |
void | SetWorldSizeFactor (G4double factor) |
Private Member Functions | |
void | DefineCommands () |
Private Attributes | |
G4GenericMessenger * | fMessenger = nullptr |
G4String | fBoxMaterialName |
G4String | fWorldMaterialName |
G4ThreeVector | fBoxDimensions |
G4double | fWorldSizeFactor = 0. |
G4LogicalVolume * | fBoxVolume = nullptr |
G4LogicalVolume * | fWorldVolume = nullptr |
Simple detector construction with a box volume placed in a world.
Definition at line 12 of file Doxymodules_common.h.
Common::DetectorConstruction::DetectorConstruction | ( | const G4String & | boxMaterialName = "G4_AIR" , |
G4double | boxHx = 40*CLHEP::cm , |
||
G4double | boxHy = 40*CLHEP::cm , |
||
G4double | boxHz = 40*CLHEP::cm , |
||
const G4String & | worldMaterialName = "G4_AIR" , |
||
G4double | worldSizeFactor = 1.25 |
||
) |
Definition at line 44 of file DetectorConstruction.cc.
|
override |
Definition at line 59 of file DetectorConstruction.cc.
|
override |
Definition at line 66 of file DetectorConstruction.cc.
void Common::DetectorConstruction::SetBoxMaterial | ( | const G4String & | materialName | ) |
Definition at line 129 of file DetectorConstruction.cc.
void Common::DetectorConstruction::SetWorldMaterial | ( | const G4String & | materialName | ) |
Definition at line 146 of file DetectorConstruction.cc.
void Common::DetectorConstruction::SetBoxDimensions | ( | G4ThreeVector | dimensions | ) |
Set box dimension (in half lengths). This setting has effect only if called in PreInit> phase
Definition at line 163 of file DetectorConstruction.cc.
void Common::DetectorConstruction::SetWorldSizeFactor | ( | G4double | factor | ) |
Set the multiplication factor from box dimensions to world dimensions. This setting has effect only if called in PreInit> phase
Definition at line 173 of file DetectorConstruction.cc.
|
private |
Definition at line 183 of file DetectorConstruction.cc.
|
private |
Definition at line 71 of file DetectorConstruction.hh.
|
private |
Definition at line 72 of file DetectorConstruction.hh.
|
private |
Definition at line 73 of file DetectorConstruction.hh.
|
private |
Definition at line 74 of file DetectorConstruction.hh.
|
private |
Definition at line 75 of file DetectorConstruction.hh.
|
private |
Definition at line 76 of file DetectorConstruction.hh.
|
private |
Definition at line 77 of file DetectorConstruction.hh.