23#include "G4Element.hh"
68 fG4Elements[iElement] = g4Element;
69 fVgmElements[g4Element] = iElement;
77 std::cout <<
"Geant4 Elements Map: " << std::endl;
81 for (i = fG4Elements.begin(); i != fG4Elements.end(); i++) {
83 G4Element* element = (*i).second;
85 std::cout <<
" " << counter++ <<
"th entry:"
86 <<
" vgmElement " << iElement <<
" " << iElement->
Name()
87 <<
" LV " << element <<
" " << element->GetName() << std::endl;
97 if (i != fG4Elements.end())
109 if (i != fVgmElements.end())
The map between VGM and Geant4 elements.
VgmElementMap::const_iterator VgmElementMapCIterator
G4ElementMap::const_iterator G4ElementMapCIterator
void AddElement(VGM::IElement *, G4Element *)
static ElementMap * Instance()
G4Element * GetElement(VGM::IElement *iElement) const
The VGM interface to elements.
virtual std::string Name() const =0
Return the name of this element.