50 fBoxMaterialName(boxMaterialName),
51 fWorldMaterialName(worldMaterialName),
52 fBoxDimensions(boxHx*2, boxHy*2, boxHz*2),
53 fWorldSizeFactor(worldSizeFactor),
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;
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;
virtual G4VPhysicalVolume * Construct()
G4Material * FindOrBuildMaterial(const G4String &name, G4bool isotopes=true, G4bool warning=false)
CLHEP::Hep3Vector G4ThreeVector
void SetWorldMaterial(const G4String &materialName)
void SetBoxDimensions(G4double hx, G4double hy, G4double hz)
G4String fBoxMaterialName
static G4NistManager * Instance()
G4ThreeVector fBoxDimensions
Definition of the ExG4DetectorConstruction02 class.
G4GLOB_DLL std::ostream G4cout
G4String fWorldMaterialName
void SetBoxMaterial(const G4String &materialName)
Definition of the ExG4DetectorConstruction02Messenger class.
void SetWorldSizeFactor(G4double factor)
G4LogicalVolume * fWorldVolume
void SetMaterial(G4Material *pMaterial)
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()
G4LogicalVolume * fBoxVolume
G4GLOB_DLL std::ostream G4cerr
G4double fWorldSizeFactor