31 #include "ExG4DetectorConstruction02.hh"
32 #include "ExG4DetectorConstruction02Messenger.hh"
49 fBoxMaterialName(boxMaterialName),
50 fWorldMaterialName(worldMaterialName),
51 fBoxDimensions(boxHx*2, boxHy*2, boxHz*2),
52 fWorldSizeFactor(worldSizeFactor),
80 G4ThreeVector worldDimensions = fBoxDimensions * fWorldSizeFactor;
140 if ( ! newMaterial ) {
141 G4cerr <<
"Material " << materialName <<
" not found." <<
G4endl;
142 G4cerr <<
"The box material was not changed." <<
G4endl;
146 if ( fBoxVolume ) fBoxVolume->
SetMaterial(newMaterial);
147 G4cout <<
"Material of box changed to " << materialName <<
G4endl;
159 if ( ! newMaterial ) {
160 G4cerr <<
"Material " << materialName <<
" not found." <<
G4endl;
161 G4cerr <<
"The box material was not changed." <<
G4endl;
165 if ( fWorldVolume ) fWorldVolume->
SetMaterial(newMaterial);
166 G4cout <<
"Material of box changed to " << materialName <<
G4endl;
187 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()
G4GLOB_DLL std::ostream G4cout
void SetBoxMaterial(const G4String &materialName)
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