50 fBoxMaterialName(boxMaterialName),
51 fWorldMaterialName(worldMaterialName),
52 fBoxDimensions(boxHx*2, boxHy*2, boxHz*2),
53 fWorldSizeFactor(worldSizeFactor),
81 G4ThreeVector worldDimensions = fBoxDimensions * fWorldSizeFactor;
141 if ( ! newMaterial ) {
142 G4cerr <<
"Material " << materialName <<
" not found." <<
G4endl;
143 G4cerr <<
"The box material was not changed." <<
G4endl;
147 if ( fBoxVolume ) fBoxVolume->
SetMaterial(newMaterial);
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;
166 if ( fWorldVolume ) fWorldVolume->
SetMaterial(newMaterial);
167 G4cout <<
"Material of box changed to " << materialName <<
G4endl;
188 fWorldSizeFactor = factor;
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)
static G4NistManager * Instance()
Definition of the ExG4DetectorConstruction02 class.
G4GLOB_DLL std::ostream G4cout
void SetBoxMaterial(const G4String &materialName)
Definition of the ExG4DetectorConstruction02Messenger class.
void SetWorldSizeFactor(G4double factor)
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()
G4GLOB_DLL std::ostream G4cerr