Simple detector construction with a box volume placed in a world.
More...
#include <ExG4DetectorConstruction02.hh>
|
| ExG4DetectorConstruction02 (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) |
|
| ~ExG4DetectorConstruction02 () |
|
virtual G4VPhysicalVolume * | Construct () |
|
void | SetBoxMaterial (const G4String &materialName) |
|
void | SetWorldMaterial (const G4String &materialName) |
|
void | SetBoxDimensions (G4double hx, G4double hy, G4double hz) |
|
void | SetWorldSizeFactor (G4double factor) |
|
| ExG4DetectorConstruction02 (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) |
|
| ~ExG4DetectorConstruction02 () |
|
virtual G4VPhysicalVolume * | Construct () |
|
void | SetBoxMaterial (const G4String &materialName) |
|
void | SetWorldMaterial (const G4String &materialName) |
|
void | SetBoxDimensions (G4double hx, G4double hy, G4double hz) |
|
void | SetWorldSizeFactor (G4double factor) |
|
| ExG4DetectorConstruction02 (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) |
|
| ~ExG4DetectorConstruction02 () |
|
virtual G4VPhysicalVolume * | Construct () |
|
void | SetBoxMaterial (const G4String &materialName) |
|
void | SetWorldMaterial (const G4String &materialName) |
|
void | SetBoxDimensions (G4double hx, G4double hy, G4double hz) |
|
void | SetWorldSizeFactor (G4double factor) |
|
| G4VUserDetectorConstruction () |
|
virtual | ~G4VUserDetectorConstruction () |
|
virtual void | ConstructSDandField () |
|
virtual void | CloneSD () |
|
virtual void | CloneF () |
|
void | RegisterParallelWorld (G4VUserParallelWorld *) |
|
G4int | ConstructParallelGeometries () |
|
void | ConstructParallelSD () |
|
G4int | GetNumberOfParallelWorld () const |
|
G4VUserParallelWorld * | GetParallelWorld (G4int i) const |
|
Simple detector construction with a box volume placed in a world.
Definition at line 48 of file common/include/ExG4DetectorConstruction02.hh.
◆ ExG4DetectorConstruction02() [1/3]
Definition at line 43 of file common/src/ExG4DetectorConstruction02.cc.
G4LogicalVolume * fWorldVolume
G4String fBoxMaterialName
G4ThreeVector fBoxDimensions
G4String fWorldMaterialName
ExG4DetectorConstruction02Messenger fMessenger
G4VUserDetectorConstruction()
G4LogicalVolume * fBoxVolume
G4double fWorldSizeFactor
◆ ~ExG4DetectorConstruction02() [1/3]
ExG4DetectorConstruction02::~ExG4DetectorConstruction02 |
( |
| ) |
|
◆ ExG4DetectorConstruction02() [2/3]
◆ ~ExG4DetectorConstruction02() [2/3]
ExG4DetectorConstruction02::~ExG4DetectorConstruction02 |
( |
| ) |
|
◆ ExG4DetectorConstruction02() [3/3]
◆ ~ExG4DetectorConstruction02() [3/3]
ExG4DetectorConstruction02::~ExG4DetectorConstruction02 |
( |
| ) |
|
◆ Construct() [1/3]
Implements G4VUserDetectorConstruction.
Definition at line 67 of file common/src/ExG4DetectorConstruction02.cc.
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
CLHEP::Hep3Vector G4ThreeVector
G4LogicalVolume * fWorldVolume
G4String fBoxMaterialName
static G4NistManager * Instance()
G4ThreeVector fBoxDimensions
G4String fWorldMaterialName
G4LogicalVolume * fBoxVolume
G4double fWorldSizeFactor
◆ Construct() [2/3]
◆ Construct() [3/3]
◆ SetBoxDimensions() [1/3]
◆ SetBoxDimensions() [2/3]
Set box dimension (in half lengths). This setting has effect only if called in PreInit> phase
Definition at line 172 of file common/src/ExG4DetectorConstruction02.cc.
CLHEP::Hep3Vector G4ThreeVector
G4ThreeVector fBoxDimensions
◆ SetBoxDimensions() [3/3]
◆ SetBoxMaterial() [1/3]
void ExG4DetectorConstruction02::SetBoxMaterial |
( |
const G4String & |
materialName | ) |
|
Definition at line 134 of file common/src/ExG4DetectorConstruction02.cc.
141 if ( ! newMaterial ) {
142 G4cerr <<
"Material " << materialName <<
" not found." <<
G4endl;
143 G4cerr <<
"The box material was not changed." <<
G4endl;
148 G4cout <<
"Material of box changed to " << materialName <<
G4endl;
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
static G4NistManager * Instance()
G4GLOB_DLL std::ostream G4cout
void SetMaterial(G4Material *pMaterial)
G4LogicalVolume * fBoxVolume
G4GLOB_DLL std::ostream G4cerr
◆ SetBoxMaterial() [2/3]
void ExG4DetectorConstruction02::SetBoxMaterial |
( |
const G4String & |
materialName | ) |
|
◆ SetBoxMaterial() [3/3]
void ExG4DetectorConstruction02::SetBoxMaterial |
( |
const G4String & |
materialName | ) |
|
◆ SetWorldMaterial() [1/3]
void ExG4DetectorConstruction02::SetWorldMaterial |
( |
const G4String & |
materialName | ) |
|
Definition at line 153 of file common/src/ExG4DetectorConstruction02.cc.
160 if ( ! newMaterial ) {
161 G4cerr <<
"Material " << materialName <<
" not found." <<
G4endl;
162 G4cerr <<
"The box material was not changed." <<
G4endl;
167 G4cout <<
"Material of box changed to " << materialName <<
G4endl;
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
G4LogicalVolume * fWorldVolume
static G4NistManager * Instance()
G4GLOB_DLL std::ostream G4cout
void SetMaterial(G4Material *pMaterial)
G4GLOB_DLL std::ostream G4cerr
◆ SetWorldMaterial() [2/3]
void ExG4DetectorConstruction02::SetWorldMaterial |
( |
const G4String & |
materialName | ) |
|
◆ SetWorldMaterial() [3/3]
void ExG4DetectorConstruction02::SetWorldMaterial |
( |
const G4String & |
materialName | ) |
|
◆ SetWorldSizeFactor() [1/3]
void ExG4DetectorConstruction02::SetWorldSizeFactor |
( |
G4double |
factor | ) |
|
◆ SetWorldSizeFactor() [2/3]
void ExG4DetectorConstruction02::SetWorldSizeFactor |
( |
G4double |
factor | ) |
|
◆ SetWorldSizeFactor() [3/3]
void ExG4DetectorConstruction02::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 183 of file common/src/ExG4DetectorConstruction02.cc.
static const G4double factor
G4double fWorldSizeFactor
◆ fBoxDimensions
◆ fBoxMaterialName
G4String ExG4DetectorConstruction02::fBoxMaterialName |
|
private |
◆ fBoxVolume
◆ fMessenger
◆ fWorldMaterialName
G4String ExG4DetectorConstruction02::fWorldMaterialName |
|
private |
◆ fWorldSizeFactor
G4double ExG4DetectorConstruction02::fWorldSizeFactor |
|
private |
◆ fWorldVolume
The documentation for this class was generated from the following files: