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