25#include "G4LogicalVolume.hh"
26#include "G4Material.hh"
33 const std::string& materialName,
const std::string& mediumName)
37 fMediumName(mediumName)
48 G4Material* g4Material = G4Material::GetMaterial(materialName);
51 std::cerr <<
" Geant4GM::Volume::Volume:" << std::endl;
52 std::cerr <<
" Material \"" << materialName <<
"\" not found."
54 std::cerr <<
"*** Error: Aborting execution ***" << std::endl;
59 fLogicalVolume =
new G4LogicalVolume(g4Solid, g4Material, name);
67 VGM::ISolid* solid, G4LogicalVolume* lv,
const std::string& mediumName)
71 fMediumName(mediumName)
106 return fLogicalVolume->GetName();
113 return fLogicalVolume->GetMaterial()->GetName();
129 fLogicalVolume->SetSolid(g4Solid);
virtual void ResetSolid(VGM::ISolid *solid)
G4VSolid * GetSolid(VGM::ISolid *iSolid) const
static SolidMap * Instance()
void AddVolume(VGM::IVolume *, G4LogicalVolume *)
static VolumeMap * Instance()
VGM implementation for Geant4 volume.
virtual std::string MediumName() const
Return the name of the associated medium.
virtual std::string Name() const
Return the name of this volume.
virtual void ResetSolid(VGM::ISolid *solid)
virtual std::string MaterialName() const
Return the name of the associated material.
The VGM interface to solids.