25#include "G4Material.hh"
68 fG4Materials[iMaterial] = g4Material;
69 fVgmMaterials[g4Material] = iMaterial;
77 std::cout <<
"G4 Materials Map: " << std::endl;
81 for (i = fG4Materials.begin(); i != fG4Materials.end(); i++) {
83 G4Material* g4Material = (*i).second;
85 std::cout <<
" " << counter++ <<
"th entry:"
86 <<
" vgmMaterial " << iMaterial <<
" " << iMaterial->
Name()
87 <<
" g4Material " << g4Material <<
" " << g4Material->GetName()
98 if (i != fG4Materials.end())
110 if (i != fVgmMaterials.end())
The map between VGM and Geant4 material.
G4MaterialMap::const_iterator G4MaterialMapCIterator
static MaterialMap * Instance()
G4Material * GetMaterial(VGM::IMaterial *iMaterial) const
VgmMaterialMap::const_iterator VgmMaterialMapCIterator
void AddMaterial(VGM::IMaterial *, G4Material *)
The VGM interface to materials.
virtual std::string Name() const =0
Return the name of this element.